]> code.delx.au - gnu-emacs/log
gnu-emacs
8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 24 Apr 2016 19:49:21 +0000 (12:49 -0700)]
Merge from origin/emacs-25

960f90d * etc/AUTHORS: Update the AUTHORS file
b21e9d4 * admin/update_autogen: Use #!/usr/bin/env bash

8 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 24 Apr 2016 19:49:21 +0000 (12:49 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

cf14218 ; Auto-commit of loaddefs files.

8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 24 Apr 2016 19:48:34 +0000 (12:48 -0700)]
Merge from origin/emacs-25

78f9af7 ; ChangeLog fixes
162e549 * admin/authors.el (authors-ignored-files): Additions.
2b31a0c In x_set_window_size restore do_pending_window_change calls
401857e Fix Alt-modified keys on some European MS-Windows keyboards
a77cf24 Document 'help-go-forward'
1ba947f Revert "Allow to customize names of executables used by grep.el"
570e0fa Revert "Don't use 'find-program'"
645f4ef Revert "Use 'grep-find-program' in check-declare.el"
aa03257 Clarify documentation of 'dired-mark-files-containing-regexp'
ce0d8c7 Make tmm-menubar work in correct order again
b8d5a8f Remove the Meta-CVS VC backend

8 years agoDon't let `css--property-values' return duplicates
Simen Heggestøyl [Sun, 24 Apr 2016 17:57:42 +0000 (19:57 +0200)]
Don't let `css--property-values' return duplicates

* lisp/textmodes/css-mode.el (css--property-values): Don't return
duplicate values.

* test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
Take the above into account.
(css-test-property-values-no-duplicates): Test that duplicates aren't
returned by `css--property-values'.

8 years agoCall `make-composed-keymap' correctly
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 15:21:18 +0000 (17:21 +0200)]
Call `make-composed-keymap' correctly

* lisp/image-mode.el (image-mode-map): Call
`make-composed-keymap' correctly.

8 years agoUse `make-composed-keymap' instead of copying the keymap
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 15:11:23 +0000 (17:11 +0200)]
Use `make-composed-keymap' instead of copying the keymap

* lisp/image-mode.el (image-mode-map): Use
`make-composed-keymap' instead of copying the keymap.

8 years agoMake `q' etc work in image mode again
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 14:22:31 +0000 (16:22 +0200)]
Make `q' etc work in image mode again

* lisp/image-mode.el (image-mode-map): Restore
special-mode-map as the parent keymap of image-mode-map (bug#23167).

8 years agoFix typo in last url.texi checkin
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 13:44:15 +0000 (15:44 +0200)]
Fix typo in last url.texi checkin

8 years agoMake STARTTLS error messages better
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 13:39:44 +0000 (15:39 +0200)]
Make STARTTLS error messages better

* lisp/net/network-stream.el (network-stream-open-starttls):
Output a better error message when TLS negotiation fails while
doing STARTTLS (bug#23027).

8 years agoEncode the shr tests files with trailing white space
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 13:18:22 +0000 (15:18 +0200)]
Encode the shr tests files with trailing white space

8 years agoCache results of `css--property-values'
Simen Heggestøyl [Sun, 24 Apr 2016 09:03:22 +0000 (11:03 +0200)]
Cache results of `css--property-values'

* lisp/textmodes/css-mode.el (css--property-values): Cache computed
values.

* test/lisp/textmodes/css-mode-tests.el (css-test-property-value-cache):
New regression test for the above.

8 years agoSome improvements in vc
Michael Albinus [Sun, 24 Apr 2016 12:59:05 +0000 (14:59 +0200)]
Some improvements in vc

* lisp/vc/vc-hooks.el (vc-state, vc-working-revision):
Check, whether FILE is registered.

* lisp/vc/vc-rcs.el (vc-rcs-checkout-model): Return `locking'
for nonexistent files.

* test/lisp/vc/vc-tests.el (w32-application-type): Declare.
(vc-test--revision-granularity-function)
(vc-test--unregister-function): Use `vc-call-backend'.
(vc-test--run-maybe-unsupported-function): New defmacro.
(vc-test--register, vc-test--state, vc-test--working-revision)
(vc-test--checkout-model): Use it.  Fix also expected results.
(vc-test-src02-state, vc-test-rcs04-checkout-model): They pass now.

8 years agoDocument the nil/default values of url-user-agent
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 12:55:15 +0000 (14:55 +0200)]
Document the nil/default values of url-user-agent

* doc/misc/url.texi (Customization): Document the nil/default
values of url-user-agent.

8 years agoCompute User-Agent dynamically in url-http
Clément Pit--Claudel [Sun, 24 Apr 2016 12:51:33 +0000 (14:51 +0200)]
Compute User-Agent dynamically in url-http

* url-http.el (url-http-user-agent-string): Compute User-Agent
string dynamically.
(url-http--user-agent-default-string): New function.

* url-vars.el (url-privacy-level): Allow `emacs' in list of
information not to send.
(url-user-agent): Add nil and `default' options; do not
pre-compute value.

8 years agoHandle auth-source items with special characters on OS X
Jun Hao [Sun, 24 Apr 2016 12:43:06 +0000 (14:43 +0200)]
Handle auth-source items with special characters on OS X

* lisp/auth-source.el
(auth-source-macos-keychain-search-items): Handle keychain
output correctly when has special chararcters (bug#22824).

8 years agoImplement process-attributes for Darwin
Magnus Henoch [Sun, 24 Apr 2016 12:33:05 +0000 (14:33 +0200)]
Implement process-attributes for Darwin

* src/sysdep.c (timeval_to_timespec, make_lisp_timeval)
(system_process_attributes): Implement process-attributes
for Darwin (bug#16579).

8 years agoUse Unicode literals instead of hex values
Lars Magne Ingebrigtsen [Sun, 24 Apr 2016 12:13:22 +0000 (14:13 +0200)]
Use Unicode literals instead of hex values

* lisp/net/shr.el (shr-tag-bdo): Use Unicode literals instead
of hex values for greater readability.
(shr-tag-bdi): Ditto.

8 years ago; NEWS: Move entries where they belong to
Michael Albinus [Sun, 24 Apr 2016 11:55:56 +0000 (13:55 +0200)]
; NEWS: Move entries where they belong to

8 years agoAllow _ characters in SQL prompts
Steve Purcell [Sun, 24 Apr 2016 11:44:37 +0000 (13:44 +0200)]
Allow _ characters in SQL prompts

* lisp/progmodes/sql.el (sql-product-alist): Allow _
characters in SQL prompts (bug#22596).

Fixes issue 22596, whereby "_" is now not considered a word constituent
character in sql-interactive-mode, so prompts like "foo_dev# " are not
correctly detected. Rather than piggy-back on the symbol table, we
explicitly match against alphanumeric chars or "_".

8 years agoWhen autoload-timestamps is nil, use a dummy timestamp rather than "t".
Glenn Morris [Sun, 24 Apr 2016 00:59:06 +0000 (17:59 -0700)]
When autoload-timestamps is nil, use a dummy timestamp rather than "t".

* lisp/emacs-lisp/autoload.el (autoload--non-timestamp): New constant.
(autoload-generate-file-autoloads, autoload-find-destination)
(update-directory-autoloads): Use autoload--non-timestamp.

8 years ago* test/lisp/xt-mouse-tests.el: Move from test/automated/.
Glenn Morris [Sat, 23 Apr 2016 17:46:08 +0000 (10:46 -0700)]
* test/lisp/xt-mouse-tests.el: Move from test/automated/.

8 years agoRegexps for matching CMake output
Jö Fahlke [Sat, 23 Apr 2016 01:10:46 +0000 (03:10 +0200)]
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

8 years ago* etc/AUTHORS: Update the AUTHORS file
Nicolas Petton [Fri, 22 Apr 2016 16:59:44 +0000 (18:59 +0200)]
* etc/AUTHORS: Update the AUTHORS file

8 years ago* admin/update_autogen: Use #!/usr/bin/env bash
Nicolas Petton [Fri, 22 Apr 2016 16:58:57 +0000 (18:58 +0200)]
* admin/update_autogen: Use #!/usr/bin/env bash

8 years ago; Auto-commit of loaddefs files.
Nicolas Petton [Fri, 22 Apr 2016 16:57:36 +0000 (18:57 +0200)]
; Auto-commit of loaddefs files.

8 years ago; ChangeLog fixes
Nicolas Petton [Fri, 22 Apr 2016 16:54:52 +0000 (18:54 +0200)]
; ChangeLog fixes

* ChangeLog.2:
* lisp/ChangeLog.17: Fix ChangeLog entries

8 years ago* admin/authors.el (authors-ignored-files): Additions.
Nicolas Petton [Fri, 22 Apr 2016 16:50:26 +0000 (18:50 +0200)]
* admin/authors.el (authors-ignored-files): Additions.

8 years ago* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):
Artur Malabarba [Fri, 22 Apr 2016 14:16:32 +0000 (11:16 -0300)]
* lisp/net/tramp-sh.el (tramp-ssh-controlmaster-options):

Fix docstring quotes.

8 years agoIn x_set_window_size restore do_pending_window_change calls
Martin Rudalics [Fri, 22 Apr 2016 09:56:03 +0000 (11:56 +0200)]
In x_set_window_size restore do_pending_window_change calls

* src/xterm.c (x_set_window_size):
* src/w32term.c (x_set_window_size): Restore
do_pending_window_change calls after their stupid removal on
2015-08-31.

8 years agoImprove character name escapes
Paul Eggert [Fri, 22 Apr 2016 02:26:34 +0000 (19:26 -0700)]
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.

8 years agoUse 'ucs-names' for character name escapes
Philipp Stephani [Thu, 21 Apr 2016 21:51:30 +0000 (14:51 -0700)]
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.

8 years agoMinor cleanups for character name escapes
Philipp Stephani [Thu, 21 Apr 2016 21:47:46 +0000 (14:47 -0700)]
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'.

8 years agoAdd documentation for character name escapes
Philipp Stephani [Thu, 21 Apr 2016 21:47:05 +0000 (14:47 -0700)]
Add documentation for character name escapes

8 years agoImplement named character escapes, similar to Perl
Philipp Stephani [Thu, 21 Apr 2016 21:45:22 +0000 (14:45 -0700)]
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.

8 years ago; Spelling fixes
Paul Eggert [Thu, 21 Apr 2016 21:44:31 +0000 (14:44 -0700)]
; Spelling fixes

8 years agoAvoid run-time dependency on libwinpthread DLL on MS-Windows
Fabrice Popineau [Thu, 21 Apr 2016 16:23:00 +0000 (19:23 +0300)]
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)

8 years agoAdd LIBSYSTEMD to the list of supported features
Matthew Leach [Thu, 21 Apr 2016 16:16:41 +0000 (19:16 +0300)]
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.

8 years agoFix Alt-modified keys on some European MS-Windows keyboards
Ilya Zakharevich [Thu, 21 Apr 2016 16:08:16 +0000 (19:08 +0300)]
Fix Alt-modified keys on some European MS-Windows keyboards

* src/w32fns.c (deliver_wm_chars): If the reported character is
ASCII, AND Meta modifier is a candidate, behave as if Meta is
present, i.e. fall back to the legacy code.  (Bug#23251)

8 years agoSupport absolute column movement in 'ansi-term'
Vasilij Schneidermann [Thu, 21 Apr 2016 15:59:37 +0000 (18:59 +0300)]
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)

8 years agoAdd Python 3.5 keyword "await"
Jorgen Schaefer [Thu, 21 Apr 2016 08:00:39 +0000 (10:00 +0200)]
Add Python 3.5 keyword "await"

* lisp/progmodes/python.el (python-font-lock-keywords): Add await as
keyword.

8 years agoDocument 'help-go-forward'
Eli Zaretskii [Thu, 21 Apr 2016 02:27:58 +0000 (05:27 +0300)]
Document 'help-go-forward'

* doc/emacs/help.texi (Help Mode): Document and index
'help-go-forward'.  (Bug#23323)

8 years agoRevert "Allow to customize names of executables used by grep.el"
Eli Zaretskii [Thu, 21 Apr 2016 02:08:29 +0000 (05:08 +0300)]
Revert "Allow to customize names of executables used by grep.el"

This reverts commit c93ae7a1e5a94541189a8f36984014344d561ffc.

8 years agoRevert "Don't use 'find-program'"
Eli Zaretskii [Thu, 21 Apr 2016 02:07:27 +0000 (05:07 +0300)]
Revert "Don't use 'find-program'"

This reverts commit 10597c977d55cbf9304b51c3b364ce58199384a0.

8 years agoRevert "Use 'grep-find-program' in check-declare.el"
Eli Zaretskii [Thu, 21 Apr 2016 02:06:26 +0000 (05:06 +0300)]
Revert "Use 'grep-find-program' in check-declare.el"

This reverts commit 33bef6e90bfd20609d044b8a076c1570c627684a.

8 years agoAdd "keyframes" to list of CSS at-rules
Simen Heggestøyl [Wed, 20 Apr 2016 18:08:56 +0000 (20:08 +0200)]
Add "keyframes" to list of CSS at-rules

* lisp/textmodes/css-mode.el (css-at-ids): Add "keyframes" at-rule.

8 years agoClarify documentation of 'dired-mark-files-containing-regexp'
Eli Zaretskii [Wed, 20 Apr 2016 14:52:25 +0000 (17:52 +0300)]
Clarify documentation of 'dired-mark-files-containing-regexp'

* doc/emacs/dired.texi (Marks vs Flags): Clarify that for files
visited in buffers, 'dired-mark-files-containing-regexp' searches
the buffer rather than the file on disk.  (Bug#22694)

* lisp/dired.el (dired-mark-files-containing-regexp): Clarify that
for files visited in buffers, 'dired-mark-files-containing-regexp'
searches the buffer rather than the file on disk.  (Bug#22694)

8 years agoPrevent bootstrap autoload backup files
Phillip Lord [Fri, 8 Apr 2016 15:22:44 +0000 (16:22 +0100)]
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)

8 years agoFix org-timestamp-change typo
Paul Eggert [Wed, 20 Apr 2016 07:06:01 +0000 (00:06 -0700)]
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.

8 years agoAvoid AC_PREPROC_IFELSE glitch in configure.ac
Paul Eggert [Wed, 20 Apr 2016 00:22:22 +0000 (17:22 -0700)]
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.

8 years agoMake tmm-menubar work in correct order again
Eli Zaretskii [Tue, 19 Apr 2016 15:06:52 +0000 (18:06 +0300)]
Make tmm-menubar work in correct order again

* lisp/tmm.el (tmm-prompt): Don't reverse 'tmm-km-list' right at the
beginning; instead, pass a reversed copy to 'tmm--completion-table'.
(Bug#23309)
(tmm-menubar): Fix an off-by-one error in determining the menu
item when the function is called with a non-nil 'x-position'
argument.

8 years agoautorevert: Resume with polling if file is deleted
Michael Albinus [Tue, 19 Apr 2016 09:05:55 +0000 (11:05 +0200)]
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.

8 years agoRemove the Meta-CVS VC backend
Dmitry Gutov [Mon, 18 Apr 2016 22:20:59 +0000 (01:20 +0300)]
Remove the Meta-CVS VC backend

* lisp/obsolete/vc-mcvs.el: Remove the file (bug#20475).

* lisp/vc/log-view.el (log-view-extract-comment): Remove the MCVS
reference.

* doc/misc/efaq-w32.texi (Version control): Same.

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 18 Apr 2016 21:05:32 +0000 (14:05 -0700)]
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

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 18 Apr 2016 21:05:32 +0000 (14:05 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

ae71266 Port to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 18 Apr 2016 21:05:31 +0000 (14:05 -0700)]
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

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 18 Apr 2016 21:05:31 +0000 (14:05 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

1b98a68 Fix Bug#20637.  Do not merge to master

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 18 Apr 2016 21:05:31 +0000 (14:05 -0700)]
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"

8 years ago* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix docstring
Philipp Stephani [Mon, 18 Apr 2016 16:32:35 +0000 (12:32 -0400)]
* 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

8 years ago* lisp/textmodes/ispell.el: Compile with lexical-binding
Stefan Monnier [Mon, 18 Apr 2016 16:27:58 +0000 (12:27 -0400)]
* 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.

8 years agoFix Bug#23276
Michael Albinus [Mon, 18 Apr 2016 08:11:44 +0000 (10:11 +0200)]
Fix Bug#23276

* lisp/autorevert.el (auto-revert-handler): Ignore errors
coming from `revert-buffer'.  (Bug#23276)

8 years agoMinor fixups for external socket launching
Paul Eggert [Mon, 18 Apr 2016 05:41:14 +0000 (22:41 -0700)]
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.

8 years agoSync with upstream vhdl mode v3.38.1.
Reto Zimmermann [Sun, 17 Apr 2016 23:15:29 +0000 (16:15 -0700)]
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.

8 years agoAdd HTML5 tags to HTML mode
Simen Heggestøyl [Fri, 15 Apr 2016 15:36:10 +0000 (17:36 +0200)]
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.

8 years agoFinish idna->puny changes in last Message patch
Lars Magne Ingebrigtsen [Sun, 17 Apr 2016 17:30:44 +0000 (19:30 +0200)]
Finish idna->puny changes in last Message patch

* lisp/gnus/message.el (message-idna-to-ascii-rhs-1): Use puny
instead of idna functions.

8 years agoUse puny.el instead of idna.el functions in Gnus
Lars Magne Ingebrigtsen [Sun, 17 Apr 2016 17:29:58 +0000 (19:29 +0200)]
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.

8 years agoMention `message-use-idna' in NEWS
Lars Magne Ingebrigtsen [Sun, 17 Apr 2016 17:17:12 +0000 (19:17 +0200)]
Mention `message-use-idna' in NEWS

8 years agoDefault `message-use-idna' to t
Lars Magne Ingebrigtsen [Sun, 17 Apr 2016 17:14:01 +0000 (19:14 +0200)]
Default `message-use-idna' to t

* lisp/gnus/message.el (message-use-idna): Default to t (since
Emacs comes with puny.el now).

8 years agoPort to GCC 5.3.1 20160406 (Red Hat 5.3.1-6)
Paul Eggert [Sun, 17 Apr 2016 02:47:33 +0000 (19:47 -0700)]
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.

8 years agoTweak configure.ac syntax in recent module patch
Paul Eggert [Sun, 17 Apr 2016 02:49:15 +0000 (19:49 -0700)]
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.

8 years ago; Fix paths in MAINTAINERS
Michael Albinus [Sat, 16 Apr 2016 18:48:24 +0000 (20:48 +0200)]
; Fix paths in MAINTAINERS

8 years agoMake sh-electric-here-document-mode accessible in sh-mode-hook. (Bug#3226)
Mark Oteiza [Sat, 16 Apr 2016 18:40:17 +0000 (14:40 -0400)]
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.

8 years ago; Add entry to MAINTAINERS
Michael Albinus [Sat, 16 Apr 2016 18:46:06 +0000 (20:46 +0200)]
; Add entry to MAINTAINERS

8 years ago* configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from previous.
Glenn Morris [Sat, 16 Apr 2016 17:24:57 +0000 (10:24 -0700)]
* configure.ac (HAVE_MODULES): Exclude gnu-kfreebsd from previous.

8 years agoMake use of rectangle-preview custom variable.
Mark Oteiza [Sat, 16 Apr 2016 16:02:49 +0000 (12:02 -0400)]
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).

8 years agoMake use of rectangle-preview face.
Mark Oteiza [Sat, 16 Apr 2016 15:55:59 +0000 (11:55 -0400)]
Make use of rectangle-preview face.

* lisp/rect.el (rectangle--string-preview):
(rectangle--highlight-for-redisplay): Replace 'region with
'rectangle-preview (Bug#23248).

8 years agoUse 'grep-find-program' in check-declare.el
Eli Zaretskii [Sat, 16 Apr 2016 11:54:03 +0000 (14:54 +0300)]
Use 'grep-find-program' in check-declare.el

* lisp/emacs-lisp/check-declare.el (check-declare-directory): Use
'grep-find-program', not 'find-program'.

8 years agoExtend battery.el to exotic power supply types
Matthew Leach [Sat, 16 Apr 2016 11:39:35 +0000 (14:39 +0300)]
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)

8 years agoImprove "C-h S" for cl-lib symbols
Eli Zaretskii [Sat, 16 Apr 2016 11:20:34 +0000 (14:20 +0300)]
Improve "C-h S" for cl-lib symbols

* lisp/info-look.el: Add cl.info lookup to emacs-lisp-mode related
manuals.  (Bug#23289)

8 years agoFix minor issues with removing left or right fringes
Eli Zaretskii [Sat, 16 Apr 2016 10:53:17 +0000 (13:53 +0300)]
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)

8 years agoSpeed up redisplay in ansi-term mode
Eli Zaretskii [Sat, 16 Apr 2016 10:08:30 +0000 (13:08 +0300)]
Speed up redisplay in ansi-term mode

* lisp/term.el (ansi-term): Force L2R 'bidi-paragraph-direction'.
(Bug#20611)

8 years agoSimplify 8-bit character handling by terminal for 'raw-text'
Philipp Stephani [Sat, 16 Apr 2016 09:55:17 +0000 (12:55 +0300)]
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'.

8 years agoAdd external socket launching support
Matthew Leach [Sat, 16 Apr 2016 09:43:01 +0000 (12:43 +0300)]
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'.

8 years agoDon't spell-check argument of 'cref' TeX macro
Matthew Leach [Sat, 16 Apr 2016 09:22:03 +0000 (12:22 +0300)]
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.

8 years ago* configure.ac (HAVE_MODULES): Treat gnu like gnu-linux. (Bug#22722)
Glenn Morris [Fri, 15 Apr 2016 23:19:47 +0000 (19:19 -0400)]
* configure.ac (HAVE_MODULES): Treat gnu like gnu-linux.  (Bug#22722)

8 years agoFix w32 memory-management problem when extending buffer text
Eli Zaretskii [Fri, 15 Apr 2016 14:26:37 +0000 (17:26 +0300)]
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.

8 years agoFix Bug#20637. Do not merge to master
Michael Albinus [Thu, 14 Apr 2016 18:28:18 +0000 (20:28 +0200)]
Fix Bug#20637.  Do not merge to master

* lisp/vc/vc-hooks.el (vc-state, vc-working-revision):
Use `vc-backend' instead of `vc-responsible-backend'.  (Bug#20637)

* test/automated/vc-tests.el (vc-test--state)
(vc-test--working-revision): Deactivate now failing checks.

8 years agoSimplify use of O_BINARY
Paul Eggert [Thu, 14 Apr 2016 16:47:18 +0000 (09:47 -0700)]
Simplify use of O_BINARY

* src/callproc.c (call_process):
* src/fileio.c (write_region):
* src/filelock.c (read_lock_data):
* src/image.c (x_find_image_fd):
* src/lread.c (openp):
* src/sysdep.c (init_random, emacs_fopen):
* src/unexcw.c (unexec):
Omit unnecessary use of O_BINARY, since emacs_open now arranges
that for us.

8 years ago* src/indent.c (Fvertical_motion): Pacify GCC
Paul Eggert [Thu, 14 Apr 2016 16:43:28 +0000 (09:43 -0700)]
* src/indent.c (Fvertical_motion): Pacify GCC

5.3.1 20160406 (Red Hat 5.3.1-6) on x86-64.

8 years agosubstitute-command-keys keeps quotes’ text props
Paul Eggert [Thu, 14 Apr 2016 15:21:34 +0000 (08:21 -0700)]
substitute-command-keys keeps quotes’ text props

Problem reported by Clément Pit--Claudel (Bug#23254).
* src/doc.c: Include intervals.h.
(Fsubstitute_command_keys): If the only substitutions are for
quotes, copy the source string’s text properties too, since no
substring lengths have changed.

8 years agoPort ‘./autogen.sh git’ to non-clones
Paul Eggert [Thu, 14 Apr 2016 01:19:04 +0000 (18:19 -0700)]
Port ‘./autogen.sh git’ to non-clones

Problem reported by Angelo Graziosi in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00341.html
* autogen.sh (do_git): Default to false when the arg is ‘all’ but
there is no ‘.git’.
(git_common_dir, hooks): New vars.
(git_config, tailored_hooks, sample_hooks): Use them.

8 years ago* src/xwidget.c (x_draw_xwidget_glyph_string): More clipping fixes.
YAMAMOTO Mitsuharu [Wed, 13 Apr 2016 22:47:55 +0000 (07:47 +0900)]
* src/xwidget.c (x_draw_xwidget_glyph_string): More clipping fixes.

8 years agoDo not require that .git be a directory
Paul Eggert [Wed, 13 Apr 2016 18:12:15 +0000 (11:12 -0700)]
Do not require that .git be a directory

Problem reportyed by Phillip Lord.
* admin/update_autogen, autogen.sh, build-aux/gitlog-to-emacslog:
* configure.ac, make-dist:
Do not require that .git be a directory, as 'git worktree' makes
it a file and not a directory.

8 years agoAvoid now-obsolete function gmm-format-time-string
Paul Eggert [Wed, 13 Apr 2016 01:06:31 +0000 (18:06 -0700)]
Avoid now-obsolete function gmm-format-time-string

* lisp/gnus/message.el (message-insert-formatted-citation-line):
Use format-time-string instead of obsolete function
gmm-format-time-string.

8 years agoAdd semantic-symref-filepattern-alist entry for lisp-interaction-mode
Dmitry Gutov [Tue, 12 Apr 2016 18:46:22 +0000 (21:46 +0300)]
Add semantic-symref-filepattern-alist entry for lisp-interaction-mode

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-filepattern-alist):
Add entry for lisp-interaction-mode
(http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23223#47)

8 years agoPerform xref searches without visiting unopened files
Dmitry Gutov [Tue, 12 Apr 2016 18:08:22 +0000 (21:08 +0300)]
Perform xref searches without visiting unopened files

* lisp/progmodes/xref.el (xref-collect-references): Instead of
calling `semantic-symref-find-references-by-name', use
`semantic-symref-instantiate' and `semantic-symref-perform-search'
directly.  Ask for `line-and-text' results (bug#23223).
(xref-collect-matches): Include the line text in the "hit"
structure.
(xref--convert-hits): New function, split off from
`xref-collect-references' and `xref-collect-matches', to convert
"hits" to xref instance list.  Create a temporary buffer here, to
use it for post-processing all hit lines.
(xref--collect-matches): Use a different approach for non-visited
files.  Insert the line text into the temp buffer, apply the
file's major mode the best we can without reading its whole
contents, syntax-propertize, and search in the result.
(xref--collect-matches-1): Extract, to handle the common logic
between two cases.
(xref--find-buffer-visiting): New function, a wrapper around
`find-buffer-visiting' to amortize its cost.

* lisp/cedet/semantic/symref/idutils.el
(semantic-symref-idutils--line-re): New constant.
(semantic-symref-parse-tool-output-one-line): Support result type
`line-and-text'.

* lisp/cedet/semantic/symref/grep.el
(semantic-symref-grep--line-re)
(semantic-symref-parse-tool-output-one-line): Same.

* lisp/cedet/semantic/symref/cscope.el
(semantic-symref-cscope--line-re)
(semantic-symref-parse-tool-output-one-line): Same.

* lisp/cedet/semantic/symref/global.el
(semantic-symref-global--line-re)
(semantic-symref-parse-tool-output-one-line): Same.

8 years agoRevert "Prevent bootstrap autoload backup files"
Phillip Lord [Tue, 12 Apr 2016 17:00:50 +0000 (18:00 +0100)]
Revert "Prevent bootstrap autoload backup files"

This reverts commit c23c965bb9d0a4bcc1b6158833ff99aa20fd53e9.

8 years agoSupport OFFSET and (OFFSET ABBR) time zone rules
Paul Eggert [Tue, 12 Apr 2016 16:19:11 +0000 (09:19 -0700)]
Support OFFSET and (OFFSET ABBR) time zone rules

This simplifies Gnus and VC time zone support, by letting them
feed the output of ‘current-time-zone’ and ‘decode time’ to
primitives that accept time zone arguments.
* doc/lispref/os.texi (Time Zone Rules, Time Conversion):
* etc/NEWS:
* lisp/gnus/message.el (message-insert-formatted-citation-line):
* lisp/org/org.el (org-timestamp-format):
* src/editfns.c (Fformat_time_string, Fdecode_time):
(Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
Document new behavior.
* lisp/gnus/gmm-utils.el (gmm-format-time-string):
* lisp/vc/add-log.el (add-log-iso8601-time-zone):
Mark as obsolete, as it is now just an alias or narrow wrapper
around format-time-string.
* src/editfns.c (tzlookup): Also support integer OFFSET and
list (OFFSET ABBR) as time zone rules.
(Fencode_time): No longer need a special case for a cons ZONE.
(Fcurrent_time_zone): If the time zone string is missing, compute
it the same way the other new code does.

8 years agoMerge from origin/emacs-25
Paul Eggert [Tue, 12 Apr 2016 15:50:47 +0000 (08:50 -0700)]
Merge from origin/emacs-25

ca50981 Improve time zone documentation
c23c965 Prevent bootstrap autoload backup files
9344612 Disable multicolor fonts on OS X since they are not supported...
c41ce1c Capitalize “Universal Time” in documentation
10597c9 Don't use 'find-program'

8 years agoImprove time zone documentation
Paul Eggert [Tue, 12 Apr 2016 15:47:15 +0000 (08:47 -0700)]
Improve time zone documentation

* doc/lispref/os.texi (Time Zone Rules):
New section, mostly with material moved here from other sections.
* doc/emacs/cmdargs.texi (General Variables):
* doc/lispref/os.texi (Time Conversion, Time Parsing):
Xref new section.
* etc/NEWS, etc/PROBLEMS:
* lisp/org/org.el (org-timestamp-format):
* src/editfns.c (Fformat_time_string, Fdecode_time)
(Fencode_time, Fcurrent_time_string, Fcurrent_time_zone)
(Fset_time_zone_rule):
When documenting time zone rule strings, mention the TZ
environment variable in preference to mentioning the
sort-of-internal function set-time-zone-rule.

8 years agoPrevent bootstrap autoload backup files
Phillip Lord [Fri, 8 Apr 2016 15:22:44 +0000 (16:22 +0100)]
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)