1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-21 10:24:55 +00:00
Commit Graph

125691 Commits

Author SHA1 Message Date
Jö Fahlke
912e915981 Regexps for matching CMake output
* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Add
regexps for matching CMake output.
* test/lisp/progmodes/compile-tests.el (compile-tests--test-regexps-data): Add
CMake test cases.
* etc/compilation.txt (CMake): Add CMake examples.

Copyright-paperwork-exempt: yes
2016-04-23 03:10:46 +02:00
Artur Malabarba
6e790b71ef * lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Fix docstring quotes.
2016-04-22 11:17:00 -03:00
Paul Eggert
bd1c7ca67e Improve character name escapes
* doc/lispref/nonascii.texi (Character Properties):
Avoid duplication of Unicode names.  Reformat examples to fit in
narrow pages.
* doc/lispref/objects.texi (General Escape Syntax):
Simplify and better-organize explanation of \N{...} escapes.
* src/character.h (CHAR_SURROGATE_PAIR_P): Remove; unused.
(char_surrogate_p): New inline function.
* src/lread.c: Do not include string.h; no longer needed.
(invalid_character_name, check_scalar_value): Remove; the ideas
behind these functions are now bundled into character_name_to_code.
(character_name_to_code): Remove undocumented support for "CJK
IDEOGRAPH-XXXX" names, as "U+XXXX" suffices.  Reject monstrosities
like "\N{U+-0}" and null bytes in \N escapes.  Reject floating
point in \N escapes instead of returning garbage.  Use
AUTO_STRING_WITH_LEN to lessen pressure on the garbage collector.
* test/src/lread-tests.el (lread-char-number, lread-char-name)
(lread-string-char-number, lread-string-char-name):
Test runtime behavior, not compile-time, as the test framework
is not set up to test compile-time.
(lread-char-surrogate-1, lread-char-surrogate-2)
(lread-char-surrogate-3, lread-char-surrogate-4)
(lread-string-char-number-2, lread-string-char-number-3):
New tests.
(lread-string-char-number-1): Rename from lread-string-char-number.
2016-04-21 19:29:41 -07:00
Philipp Stephani
e7cb38edc9 Use 'ucs-names' for character name escapes
* lread.c (invalid_character_name, check_scalar_value)
(parse_code_after_prefix, character_name_to_code): New helper
functions that use 'ucs-names' and parsing for CJK ideographs.
(read_escape): Use helper functions.
(syms_of_lread): New symbol 'ucs-names'.
* test/src/lread-tests.el: New tests; fix a couple of bugs in
existing tests.
2016-04-21 19:29:40 -07:00
Philipp Stephani
753c875714 Minor cleanups for character name escapes
* src/lread.c (init_character_names): Add missing 'void'.
Remove top-level 'const'.
(read_escape): Simplify loop a bit.  Remove top-level 'const'.
2016-04-21 19:29:40 -07:00
Philipp Stephani
a58d4e3c0f Add documentation for character name escapes 2016-04-21 19:29:40 -07:00
Philipp Stephani
de7d5f36e0 Implement named character escapes, similar to Perl
* lread.c (init_character_names): New function.
(read_escape): Read Perl-style named character escape sequences.
(syms_of_lread): Initialize new variable 'character_names'.
* test/src/lread-tests.el (lread-char-empty-name): Add test file
for src/lread.c.
2016-04-21 19:29:40 -07:00
Paul Eggert
7621a52145 ; Spelling fixes 2016-04-21 14:45:01 -07:00
Fabrice Popineau
798caa12af Avoid run-time dependency on libwinpthread DLL on MS-Windows
* nt/mingw-cfg.site (ac_cv_search_clock_gettime)
(ac_cv_func_clock_gettime, ac_cv_func_clock_settime): Force to not
present, so that MinGW64 builds don't depend on libwinpthread.
(Bug#22959)
2016-04-21 19:23:00 +03:00
Matthew Leach
f24004906e Add LIBSYSTEMD to the list of supported features
* configure.ac: Add LIBSYSTEMD to EMACS_CONFIG_FEATURES and print a
message at the end of configure stating whether Emacs will be build
with libsystemd support.
2016-04-21 19:16:41 +03:00
Vasilij Schneidermann
caa31fcaa2 Support absolute column movement in 'ansi-term'
* lisp/term.el (term-handle-ansi-escape): Handle the "\E[G" sequence
for absolute column movement.  (Bug#23303)
2016-04-21 18:59:37 +03:00
Jorgen Schaefer
928f51945d Add Python 3.5 keyword "await"
* lisp/progmodes/python.el (python-font-lock-keywords): Add await as
keyword.
2016-04-21 10:05:26 +02:00
Simen Heggestøyl
0c9f35a9b0 Add "keyframes" to list of CSS at-rules
* lisp/textmodes/css-mode.el (css-at-ids): Add "keyframes" at-rule.
2016-04-20 20:08:56 +02:00
Phillip Lord
16af826eac Prevent bootstrap autoload backup files
* lisp/emacs-lisp/autoload (autoload-find-generated-file): Suppress
   backups in newly created file.

  (autoload-ensure-default-file): Function split into two.
  (autoload-ensure-file-writeable): New function from split.

  (Bug#23203)
2016-04-20 13:30:23 +01:00
Paul Eggert
65150493f7 Fix org-timestamp-change typo
Problem reported by Peter Münster (Bug#23299).
* lisp/org/org.el (org-timestamp-change): Fix typo that relied
on undocumented behavior in ‘encode-time’.  In practice the
old code used local time, so use that.
2016-04-20 00:06:52 -07:00
Paul Eggert
5c511ff597 Avoid AC_PREPROC_IFELSE glitch in configure.ac
Problem reported by Angelo Graziosi in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00545.html
* configure.ac (gl_gcc_warnings): Work around an Autoconf glitch:
AC_PREPROC_IFELSE doesn’t generate a simple shell command.
2016-04-19 17:23:15 -07:00
Michael Albinus
ed54b3ff97 autorevert: Resume with polling if file is deleted
* lisp/autorevert.el: Use consistent wording in comments and
docstrings.
(auto-revert-mode): Add local function to `kill-buffer-hook'.
(auto-revert-notify-handler): Improve handling of `stopped' event.

* test/lisp/autorevert-tests.el
(auto-revert-test02-auto-revert-deleted-file): New test.
(auto-revert-test03-auto-revert-tail-mode)
(auto-revert-test04-auto-revert-mode-dired): Rename them.
2016-04-19 11:05:55 +02:00
Paul Eggert
c456627ffa Merge from origin/emacs-25
5a0cbe5 Fix Bug#23276
2007e32 Sync with upstream vhdl mode v3.38.1.
b6d2552 Tweak configure.ac syntax in recent module patch
2016-04-18 14:05:32 -07:00
Paul Eggert
055a895769 ; Merge from origin/emacs-25
The following commit was skipped:

ae71266 Port to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)
2016-04-18 14:05:32 -07:00
Paul Eggert
0808f2a1a3 Merge from origin/emacs-25
ac00a92 Make sh-electric-here-document-mode accessible in sh-mode-hoo...
3287f48 ; Add entry to MAINTAINERS
b85981f * configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from prev...
0f33284 Make use of rectangle-preview custom variable.
aa0d83a Make use of rectangle-preview face.
33bef6e Use 'grep-find-program' in check-declare.el
a8560e5 Improve "C-h S" for cl-lib symbols
52e798b Fix minor issues with removing left or right fringes
d6ffd64 Speed up redisplay in ansi-term mode
4ab671c Simplify 8-bit character handling by terminal for 'raw-text'
f3653ec * configure.ac (HAVE_MODULES): Treat gnu like gnu-linux.  (Bu...
ab849b7 Fix w32 memory-management problem when extending buffer text
2016-04-18 14:05:31 -07:00
Paul Eggert
3aa73b04e8 ; Merge from origin/emacs-25
The following commit was skipped:

1b98a68 Fix Bug#20637.  Do not merge to master
2016-04-18 14:05:31 -07:00
Paul Eggert
dd92b5f504 Merge from origin/emacs-25
32364bb substitute-command-keys keeps quotes’ text props
567ab52 * src/xwidget.c (x_draw_xwidget_glyph_string): More clipping ...
24b87a1 Add semantic-symref-filepattern-alist entry for lisp-interact...
cc0b713 Perform xref searches without visiting unopened files
5045575 Revert "Prevent bootstrap autoload backup files"
2016-04-18 14:05:31 -07:00
Philipp Stephani
d11abb2542 * lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix docstring
so that it matches the actual implementation.
See https://lists.gnu.org/archive/html/help-gnu-emacs/2016-04/msg00071.html
2016-04-18 12:32:35 -04:00
Stefan Monnier
03887a1932 * lisp/textmodes/ispell.el: Compile with lexical-binding
(declare-function): Don't define any more.
(ispell-check-minver, ispell-looking-back): Tweak definition so that
the compiler can obviously know that it's always defined.
(ispell-debug-buffer): Declare var.
(ispell-hunspell-fill-dictionary-entry)
(ispell-parse-hunspell-affix-file, ispell-hunspell-add-multi-dic)
(ispell-find-hunspell-dictionaries, ispell-set-spellchecker-params)
(ispell-command-loop): Avoid add-to-list on local variables.
2016-04-18 12:27:58 -04:00
Michael Albinus
5a0cbe51f4 Fix Bug#23276
* lisp/autorevert.el (auto-revert-handler): Ignore errors
coming from `revert-buffer'.  (Bug#23276)
2016-04-18 10:11:44 +02:00
Paul Eggert
531c9a43ad Minor fixups for external socket launching
* configure.ac (HAVE_LIBSYSTEMD): Change earliest version to 222.
* doc/emacs/misc.texi (Emacs Server):
* etc/NEWS: Spelling and doc fixes.
* src/emacs.c (main) [HAVE_LIBSYSTEMD]:
Check for sd_is_socket returning positive, not zero.
* src/process.c (external_sock_fd): Instead of initializing here ...
(init_process_emacs): ... initialize it here, so that it does the
right thing after dump/restore.
(connect_network_socket): Simplify socket_to_use test.
2016-04-17 22:41:52 -07:00
Reto Zimmermann
2007e32444 Sync with upstream vhdl mode v3.38.1.
* lisp/progmodes/vhdl-mode.el (vhdl-version, vhdl-time-stamp): Update.
(vhdl-mode): No longer set comment-padding.
(vhdl-begin-p): Handle missing space between keyword and parenthesis.
(vhdl-beginning-of-statement-1): Fix indentation for "else generate".
(vhdl-template-else, vhdl-template-elsif): Support generate statement.
(vhdl-re-search-forward, vhdl-re-search-backward): Save match data.
2016-04-17 16:15:29 -07:00
Simen Heggestøyl
5f265490b6 Add HTML5 tags to HTML mode
* lisp/textmodes/sgml-mode.el (html-tag-alist): Add HTML5 tags.
(html-tag-help): Add short descriptions of those tags.
2016-04-17 19:34:26 +02:00
Lars Magne Ingebrigtsen
84c4cc589d Finish idna->puny changes in last Message patch
* lisp/gnus/message.el (message-idna-to-ascii-rhs-1): Use puny
instead of idna functions.
2016-04-17 19:30:44 +02:00
Lars Magne Ingebrigtsen
50b93f40d0 Use puny.el instead of idna.el functions in Gnus
* lisp/gnus/gnus-art.el (gnus-use-idna): Default to t (since
Emacs comes with IDNA support built in).
(article-decode-idna-rhs): Use `puny-decode-domain' instead of
`idna-to-unicode'.

* lisp/gnus/gnus-sum.el (gnus-summary-idna-message): Ditto.
2016-04-17 19:29:58 +02:00
Lars Magne Ingebrigtsen
c5dfaae30f Mention `message-use-idna' in NEWS 2016-04-17 19:17:12 +02:00
Lars Magne Ingebrigtsen
64699a5ac8 Default `message-use-idna' to t
* lisp/gnus/message.el (message-use-idna): Default to t (since
Emacs comes with puny.el now).
2016-04-17 19:14:12 +02:00
Paul Eggert
ae712666bb Port to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)
* src/indent.c (Fvertical_motion): Pacify --enable-gcc-warnings
when using the April 6 Fedora patch to GCC.
2016-04-16 19:49:31 -07:00
Paul Eggert
b6d2552fe3 Tweak configure.ac syntax in recent module patch
* configure.ac: Use proper Autoconf parenthesization in
recent HAVE_MODULES patch.  Although this doesn’t fix any bugs,
the previous syntax was confusing.
2016-04-16 19:49:31 -07:00
Michael Albinus
3de30674d7 ; Fix paths in MAINTAINERS 2016-04-16 20:48:24 +02:00
Mark Oteiza
ac00a92e3d Make sh-electric-here-document-mode accessible in sh-mode-hook. (Bug#3226)
* lisp/progmodes/sh-script.el (sh-mode-hook): Add
sh-electric-here-document-mode as an option and the default value.
(sh-mode): Mention sh-mode-hook in docstring.
(sh-mode): Remove sh-electric-here-document-mode invocation.
2016-04-16 14:47:49 -04:00
Michael Albinus
3287f48f5d ; Add entry to MAINTAINERS 2016-04-16 20:46:06 +02:00
Glenn Morris
b85981feac * configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from previous. 2016-04-16 10:24:57 -07:00
Mark Oteiza
0f332848cd Make use of rectangle-preview custom variable.
lisp/rect.el (rectangle--string-preview): Only create a preview if
rectangle-preview is non-nil (Bug#23248).
2016-04-16 12:05:16 -04:00
Mark Oteiza
aa0d83a727 Make use of rectangle-preview face.
* lisp/rect.el (rectangle--string-preview):
(rectangle--highlight-for-redisplay): Replace 'region with
'rectangle-preview (Bug#23248).
2016-04-16 12:04:52 -04:00
Eli Zaretskii
33bef6e90b Use 'grep-find-program' in check-declare.el
* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use
'grep-find-program', not 'find-program'.
2016-04-16 14:54:03 +03:00
Matthew Leach
934549e23d Extend battery.el to exotic power supply types
* lisp/battery.el (battery-linux-sysfs-regexp): Rename from
'battery--linux-sysfs-regexp' and make a defcustom. All users
changed.  (Bug#23216)
2016-04-16 14:39:35 +03:00
Eli Zaretskii
a8560e56a8 Improve "C-h S" for cl-lib symbols
* lisp/info-look.el: Add cl.info lookup to emacs-lisp-mode related
manuals.  (Bug#23289)
2016-04-16 14:20:34 +03:00
Eli Zaretskii
52e798b7cd Fix minor issues with removing left or right fringes
* lisp/window.el (window-max-chars-per-line): Account for
'left-fringe-width' and 'right-fringe-width' variables.

* doc/lispref/windows.texi (Window Sizes): Document the effect on
window text width when setting the width of one or both fringes to
zero.
* doc/emacs/display.texi (Fringes): Document the effect on window
text width when setting the width of one or both fringes to zero.
(Bug#22891)
2016-04-16 13:53:17 +03:00
Eli Zaretskii
d6ffd645a8 Speed up redisplay in ansi-term mode
* lisp/term.el (ansi-term): Force L2R 'bidi-paragraph-direction'.
(Bug#20611)
2016-04-16 13:08:30 +03:00
Philipp Stephani
4ab671c48c Simplify 8-bit character handling by terminal for 'raw-text'
* lisp/international/mule.el (set-keyboard-coding-system): Treat
'raw-text' as another coding type that requires 8-bit characters.
* lisp/xt-mouse.el (xterm-mouse--read-coordinate): Use 'no-conversion'
instead of 'latin-1'.
2016-04-16 12:55:17 +03:00
Matthew Leach
e390b7b546 Add external socket launching support
* src/process.c (connect_network_socket): Allow a pre-allocated socket
descriptor to be used if passed to Emacs, avoiding the call to
'socket' and 'bind'.
(Fmake_network_process): Allow users to pass ':use-external-socket' in
the parameter plist to use any sockets that have been passed to Emacs.
(wait_reading_process_output): Call 'socket' and 'bind' every time.
(syms_of_process): New symbol ':use-external-socket'.
(set_external_socket_descriptor): New function.
(external_sock_fd): New variable.
* src/lisp.h: (set_external_socket_descriptor): New declaration.
* src/emacs.c (main): Call 'sd_listen_fds' to read the number of sockets
passed and call 'set_external_socket_descriptor' to set the external
socket.
* src/Makefile.in: Add libsystemd library and C flags to the Emacs
compilation options.

* configure.ac: Add new default-on option "systemd" and check for
libsystemd at configure time.

* lisp/server.el (server-start): Set ':use-external-socket' to 't' when
calling 'make-network-process'.

* etc/NEWS: Document new socket-passing functionality and the configure
option to disable systemd interaction.

* doc/emacs/misc.texi (Emacs Server): Document systemd socket passing
functionality and provide systemd unit examples.
* doc/lispref/processes.texi (Network Processes): Document new
'make-network-process' option ':use-external-socket'.
2016-04-16 12:43:01 +03:00
Matthew Leach
bb8c8fdfbb Don't spell-check argument of 'cref' TeX macro
* lisp/textmodes/ispell.el (ispell-tex-skip-alists): Add the cref
macro to skip spell-checking the cref macro argument.
2016-04-16 12:22:03 +03:00
Glenn Morris
f3653ec446 * configure.ac (HAVE_MODULES): Treat gnu like gnu-linux. (Bug#22722) 2016-04-15 19:19:47 -04:00
Eli Zaretskii
ab849b7fac Fix w32 memory-management problem when extending buffer text
* src/w32heap.c (mmap_realloc): Only attempt extending a region if
the following region has the same allocation base.  Also, use the
original allocation base and enlarged size to commit reserved
memory, to ensure that the allocation base stays at its original
value.  This fixes several hard-to-debug problems whereby part of
buffer text was overwritten with binary nulls, because
mmap_realloc copied only part of buffer text when extending it.
See
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00325.html
and http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23223#55 for two
examples of the related problems.
2016-04-15 17:26:37 +03:00