]> code.delx.au - gnu-emacs/log
gnu-emacs
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 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 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 ago; Fix paths in MAINTAINERS
Michael Albinus [Sat, 16 Apr 2016 18:48:24 +0000 (20:48 +0200)]
; Fix paths in MAINTAINERS

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 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 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)

8 years agoDisable multicolor fonts on OS X since they are not supported on free systems
YAMAMOTO Mitsuharu [Mon, 11 Apr 2016 23:26:51 +0000 (08:26 +0900)]
Disable multicolor fonts on OS X since they are not supported on free systems

* src/macfont.m (macfont_list): Don't use color bitmap fonts.

8 years agoCapitalize “Universal Time” in documentation
Paul Eggert [Mon, 11 Apr 2016 22:15:23 +0000 (15:15 -0700)]
Capitalize “Universal Time” in documentation

It’s a proper noun.
* lisp/vc/add-log.el (add-log-time-zone-rule): Also, fix typo by
mentioning ‘format-time-string’ instead of ‘set-time-zone-rule’.

8 years agoDon't use 'find-program'
Eli Zaretskii [Mon, 11 Apr 2016 16:41:48 +0000 (19:41 +0300)]
Don't use 'find-program'

* lisp/progmodes/project.el (project-file-completion-table): Use
'grep-find-program', rather than the obsolete 'find-program'.

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 11 Apr 2016 16:07:16 +0000 (09:07 -0700)]
Merge from origin/emacs-25

b134c20 Sync with gnulib
bb30fa9 Fix last change on 2016-01-02
488a72f ; Spelling fixes
9b1aab9 Port run-prolog EMACS to SWI-Prolog 7.2.3
0e7bcec Avoid crashes due to unreasonably large or small text scaling
85f257c Improve documentation of 'with-eval-after-load'
668c7bc Improve handling of non-ASCII characters in Git log messages
b570769 Remove undefined behavior in OS X dumper.
97211f3 Fix clipping of xwidgets
e87fbc0 Improve Lisp-level documentation of tooltips
9f1786e Faces names should not end in "-face".
3283271 * src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings.
a1f221b Comint and compile no longer set EMACS
5c28890 * lisp/subr.el (read-key): Don't let the prompt linger (bug#2...
a75b9a6 Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emac...
c93ae7a Allow to customize names of executables used by grep.el
f6497c6 Set locale encoding to UTF-8 when run from OS X GUI.
7ad1d07 Avoid signaling errors in 'M-n' at the 'C-x C-f' prompt
a3f1ac2 Avoid infinite loop in 'studlify-word'
f36df4b Don’t recommend obsolete EMACS env var
fb0b531 * lisp/emacs-lisp/package.el: Change from a few days ago need...

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 11 Apr 2016 16:07:16 +0000 (09:07 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

b7d8abd * lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra.

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 11 Apr 2016 16:07:16 +0000 (09:07 -0700)]
Merge from origin/emacs-25

96d9e78 Fix "Beginning of buffer" error in forward-page
20686f7 Add a `transient' project type

8 years ago; Merge from origin/emacs-25
Paul Eggert [Mon, 11 Apr 2016 16:07:16 +0000 (09:07 -0700)]
; Merge from origin/emacs-25

The following commits were skipped:

0d7aad1 Revert "Backport HTTPS proxy fix"
2d1a605 Backport HTTPS proxy fix

8 years agoMerge from origin/emacs-25
Paul Eggert [Mon, 11 Apr 2016 16:07:15 +0000 (09:07 -0700)]
Merge from origin/emacs-25

80128a7 Fix stability confusion in sort-tests
1e4aa42 Avoid describe-key error with lambdas
a05fb21 * lisp/emacs-lisp/package.el (package-install-selected-packag...
f501116 Sync with gnulib
c4963f9 Fix doc for Universal Time

8 years agoSync with gnulib
Paul Eggert [Mon, 11 Apr 2016 16:02:00 +0000 (09:02 -0700)]
Sync with gnulib

This is for picky compilers whose stdint.h fails our C11 tests.
Problem reported for clang by Philipp Stephani (Bug#23261).
This incorporates:
2016-04-11 stdint: port to strict C11 left shift
* doc/misc/texinfo.tex, lib/stdint.in.h: Copy from gnulib.

8 years agoFix last change on 2016-01-02
Leo Liu [Mon, 11 Apr 2016 12:19:38 +0000 (20:19 +0800)]
Fix last change on 2016-01-02

* lisp/emacs-lisp/lisp-mode.el (lisp-el-font-lock-keywords-2): Move
  `cl-errs-re' before `lisp--el-match-keyword'; don't use `prepend'
  which highlights `cl-errs-re' even in comments or strings.

8 years ago; Spelling fixes
Paul Eggert [Mon, 11 Apr 2016 06:54:33 +0000 (23:54 -0700)]
; Spelling fixes

8 years agoPort run-prolog EMACS to SWI-Prolog 7.2.3
Paul Eggert [Mon, 11 Apr 2016 05:47:03 +0000 (22:47 -0700)]
Port run-prolog EMACS to SWI-Prolog 7.2.3

* lisp/progmodes/prolog.el (prolog-ensure-process):
Work around incompatibility of SWI-Prolog 7.2.3 and earlier
with the new way of dealing with the EMACS and INSIDE_EMACS
environment variables.

8 years agoFix alignement rule for CSS
Etienne Prud'homme [Wed, 6 Apr 2016 21:05:41 +0000 (17:05 -0400)]
Fix alignement rule for CSS

* lisp/align.el (align-rules-list): Support CSS properties that have
multiple words.

Copyright-paperwork-exempt: yes

8 years agoAvoid crashes due to unreasonably large or small text scaling
Eli Zaretskii [Sun, 10 Apr 2016 16:50:39 +0000 (19:50 +0300)]
Avoid crashes due to unreasonably large or small text scaling

* lisp/face-remap.el (text-scale-min-amount)
(text-scale-max-amount): New functions.
(text-scale-set, text-scale-increase): Use them to limit the text
scaling to a reasonable range of values.  (Bug#23259)

8 years agoNew custom option for overriding mailcap choices
Tassilo Horn [Sun, 10 Apr 2016 07:39:51 +0000 (09:39 +0200)]
New custom option for overriding mailcap choices

* lisp/net/mailcap.el (mailcap--get-user-mime-data): New function.
(mailcap--set-user-mime-data): New function.
(mailcap-user-mime-data): New customization option.
(mailcap-select-preferred-viewer): New function.
(mailcap-mime-info): Use it.

* doc/misc/emacs-mime.texi (mailcap): Document `mailcap-user-mime-data'.

8 years agoImprove documentation of 'with-eval-after-load'
Eli Zaretskii [Sun, 10 Apr 2016 16:15:13 +0000 (19:15 +0300)]
Improve documentation of 'with-eval-after-load'

* lisp/subr.el (with-eval-after-load): Doc fix.  (Bug#23258)

8 years agoImprove handling of non-ASCII characters in Git log messages
Eli Zaretskii [Sun, 10 Apr 2016 16:04:33 +0000 (19:04 +0300)]
Improve handling of non-ASCII characters in Git log messages

* lisp/vc/vc-git.el (vc-git-commits-coding-system): Now a defcustom.
(vc-git-log-output-coding-system): New defcustom.
(vc-git-print-log, vc-git-command, vc-git--call): Use
'vc-git-log-output-coding-system' for reading stuff from Git.
Don't override values of 'coding-system-for-read/write' if they
are bound by caller -- this allows the user to force an encoding
via "C-x RET c".
(vc-git-checkin): On MS-Windows, pass the log message via a
temporary file, to work around the limitations on passing
non-ASCII characters via command-line arguments.  Force using the
'locale-coding-system' for Git command-line arguments.  This fixes
problems with non-ASCII commit log messages on MS-Windows.
(Bug#23076)

* etc/NEWS: Mention the new vc-git related defcustoms.

8 years agoFix Bug#23207
Michael Albinus [Sun, 10 Apr 2016 08:07:15 +0000 (10:07 +0200)]
Fix Bug#23207

* src/keyboard.c (read_char): Resume idle timers in case of
dbus-event, file-notify-event and config-changed-event.
Reported by Johan Claesson <johanclaesson@bredband.net>.  (Bug#23207)

8 years agoRemove undefined behavior in OS X dumper.
Philipp Stephani [Thu, 31 Mar 2016 21:10:40 +0000 (23:10 +0200)]
Remove undefined behavior in OS X dumper.

Found by Address Sanitizer.

* src/unexmacosx.c (unexec_write): Use Mach virtual memory API to
avoid undefined behavior when reading arbitrary memory.

8 years agoAdd vc-backend and vc-responsible-backend tests
Michael Albinus [Sat, 9 Apr 2016 19:14:40 +0000 (21:14 +0200)]
Add vc-backend and vc-responsible-backend tests

* lisp/vc/vc-hooks.el (vc-file-setprop, vc-file-getprop)
(vc-file-clearprops): Use properties on absolute files.

* test/lisp/vc/vc-tests.el (vc-test--unregister-function):
Clear file properties.
(vc-test--register): Add tests for `vc-backend' and
`vc-responsible-backend'.  Catch other errors but `vc-not-supported'.
(vc-test--state, vc-test--checkout-model): Catch other errors
but `vc-not-supported'.
(vc-test--working-revision): Fix test for RCS and SCCS.  Catch
other errors but `vc-not-supported'.
(vc-test-src02-state): Mark as an expected failure.

8 years agoFix clipping of xwidgets
Joakim Verona [Sat, 9 Apr 2016 12:04:54 +0000 (15:04 +0300)]
Fix clipping of xwidgets

* src/xwidget.c (x_draw_xwidget_glyph_string): Use window_box
instead of calculating the clipping borders manually.  Suggested
by YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>.

8 years agoImprove Lisp-level documentation of tooltips
Eli Zaretskii [Sat, 9 Apr 2016 09:30:59 +0000 (12:30 +0300)]
Improve Lisp-level documentation of tooltips

* doc/lispref/display.texi (Tooltips): New section.  (Bug#23246)
(Display): Update the chapter menu.
* doc/lispref/text.texi (Special Properties): Make the "tooltip"
index entry more concrete.  Change the cross-reference to point to
"Tooltips" in the ELisp manual.
* doc/lispref/elisp.texi (Top): Update the master menu.
* doc/emacs/frames.texi (Tooltips): Include more customization
variables.  Add a cross-reference to the ELisp manual.

8 years agoFaces names should not end in "-face".
Glenn Morris [Sat, 9 Apr 2016 00:59:21 +0000 (20:59 -0400)]
Faces names should not end in "-face".

* lisp/rect.el (rectangle-preview): Rename from rectangle-preview-face.
* lisp/vc/vc-hooks.el (vc-state-base): Rename from vc-state-base-face.

8 years ago* src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings.
Paul Eggert [Fri, 8 Apr 2016 23:29:59 +0000 (16:29 -0700)]
* src/xsmfns.c (syms_of_xsmfns): Remove stray "s in doc strings.

8 years agoMinor improvements for hash function primitives
Paul Eggert [Fri, 8 Apr 2016 22:33:22 +0000 (15:33 -0700)]
Minor improvements for hash function primitives

* src/fns.c (hashfn_eql): Define in terms of hashfn_equal and
hashfn_eq rather than reaching inside them.
(hashtest_eq, hashtest_eql, hashtest_equal):
Now constants with initializers.
(syms_of_fns): Omit no-longer-needed initialization.
* src/lisp.h (LISPSYM_INITIALLY): New macro.
(DEFINE_LISP_SYMBOL): Use it.

8 years agoNew primitives sxhash-eq, sxhash-eql
Paul Pogonyshev [Fri, 8 Apr 2016 21:02:48 +0000 (14:02 -0700)]
New primitives sxhash-eq, sxhash-eql

* doc/lispref/hash.texi (Defining Hash), etc/NEWS: Document this.
* lisp/emacs-lisp/byte-opt.el (side-effect-free-fns):
Add sxhash-equal, sxhash-eq, sxhash-eql.
* lisp/subr.el (sxhash): Now an alias for sxhash-equal.
* src/fns.c (Fsxhash_eq, Fsxhash_eql): New functions.n

8 years agoComint and compile no longer set EMACS
Paul Eggert [Fri, 8 Apr 2016 20:39:17 +0000 (13:39 -0700)]
Comint and compile no longer set EMACS

This mostly restores the change that I reverted on March 23,
fixing most of Bug#20202.  The only part of the change that is
still reverted is the change to M-x term, where compatibility with
current Bash constrains us from moving too quickly (Bug#20484).
Problem reported by Phillip Lord in: http://bugs.gnu.org/20484#108
* etc/NEWS: Document this.
* lisp/comint.el (comint-exec-1):
* lisp/net/tramp-sh.el (tramp-remote-process-environment):
* lisp/progmodes/compile.el (compilation-start):
Don’t set EMACS=t in the subsidiary process.

8 years ago* lisp/subr.el (read-key): Don't let the prompt linger (bug#22714)
Stefan Monnier [Fri, 8 Apr 2016 18:02:24 +0000 (14:02 -0400)]
* lisp/subr.el (read-key): Don't let the prompt linger (bug#22714)

8 years agoTeach Dired support parallel execution of commands on MS-Windows
Eli Zaretskii [Fri, 8 Apr 2016 14:45:16 +0000 (17:45 +0300)]
Teach Dired support parallel execution of commands on MS-Windows

* lisp/dired-aux.el (dired-shell-stuff-it): Support
parallel-in-background execution of commands on MS-Windows.
Test 'w32-shell-dos-semantics' instead of the underlying OS
when determining whether addition of 'wait' is needed.

8 years ago; * lisp/dired-aux.el (dired-shell-stuff-it): Minor formatting change.
Eli Zaretskii [Fri, 8 Apr 2016 14:09:35 +0000 (17:09 +0300)]
; * lisp/dired-aux.el (dired-shell-stuff-it): Minor formatting change.

8 years agoMake 'dired-do-shell-command' wait for all background jobs
Tino Calancha [Fri, 8 Apr 2016 14:04:08 +0000 (17:04 +0300)]
Make 'dired-do-shell-command' wait for all background jobs

* lisp/dired-aux.el (dired-shell-stuff-it): Force POSIX shells to
wait until all background jobs exit.  (Bug#23206).

8 years agoMerge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25
Eli Zaretskii [Fri, 8 Apr 2016 13:55:34 +0000 (16:55 +0300)]
Merge branch 'emacs-25' of git.savannah.gnu.org:/srv/git/emacs into emacs-25

8 years agoAllow to customize names of executables used by grep.el
Eli Zaretskii [Fri, 8 Apr 2016 13:54:18 +0000 (16:54 +0300)]
Allow to customize names of executables used by grep.el

* lisp/progmodes/grep.el (grep-find-program): Renamed from
'find-program', which was a variable.  All uses changed.
(grep-xargs-program): Renamed from 'xargs-program', which was a
variable.  All uses changed.
(grep-program): Now a defcustom rather than a simple variable.
(Bug#23219)

8 years agoSet locale encoding to UTF-8 when run from OS X GUI.
Alan Third [Fri, 8 Apr 2016 13:52:55 +0000 (15:52 +0200)]
Set locale encoding to UTF-8 when run from OS X GUI.

* src/nsterm.m (ns_init_locale): Append .UTF-8 when setting LANG.

8 years agoAvoid signaling errors in 'M-n' at the 'C-x C-f' prompt
Eli Zaretskii [Fri, 8 Apr 2016 08:05:20 +0000 (11:05 +0300)]
Avoid signaling errors in 'M-n' at the 'C-x C-f' prompt

* lisp/ffap.el (ffap-guess-file-name-at-point): Ignore errors
while 'ffap-guesser' runs.  (Bug#23218)

8 years agoAvoid infinite loop in 'studlify-word'
Marcin Borkowski [Fri, 8 Apr 2016 07:57:21 +0000 (10:57 +0300)]
Avoid infinite loop in 'studlify-word'

* lisp/play/studly.el (studlify-region): Call
'forward-word-strictly' and 'backward-word-strictly' instead of
'forward-word' and 'backward-word'.  (Bug#19940)

8 years agoDon’t recommend obsolete EMACS env var
Paul Eggert [Thu, 7 Apr 2016 23:52:01 +0000 (16:52 -0700)]
Don’t recommend obsolete EMACS env var

* doc/misc/efaq.texi (Escape sequences in shell output):
Remove long-obsolete (and now-confusing) notes about
the EMACS environment variable in Emacs 21.1 and earlier.
* doc/misc/efaq.texi (^M in the shell buffer):
* etc/PROBLEMS:
Remove obsolescent recommendation to consult the EMACS environment
variable.

8 years ago* lisp/emacs-lisp/package.el: Change from a few days ago needs seq.
Glenn Morris [Thu, 7 Apr 2016 20:26:55 +0000 (16:26 -0400)]
* lisp/emacs-lisp/package.el: Change from a few days ago needs seq.

; Warning 'foo' is not known to be defined is always a bug.

8 years ago* lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra.
Glenn Morris [Thu, 7 Apr 2016 20:24:25 +0000 (16:24 -0400)]
* lisp/emacs-lisp/seq.el: Load cl-lib, not cl-extra.

; The various components of cl-lib are an internal implementation detail.

8 years agoFix "Beginning of buffer" error in forward-page
Leo Liu [Thu, 7 Apr 2016 13:42:40 +0000 (21:42 +0800)]
Fix "Beginning of buffer" error in forward-page

* lisp/textmodes/page.el (forward-page): Check before move to prevent
  "Beginning of buffer" error.

8 years agoPrefer 'font-lock-face to 'face in erc where appropriate
Vivek Dasmohapatra [Thu, 7 Apr 2016 12:23:18 +0000 (14:23 +0200)]
Prefer 'font-lock-face to 'face in erc where appropriate

* lisp/erc/erc-button.el (erc-button-add-face): Prefer
'font-lock-face to 'face where appropriate.
* lisp/erc/erc-capab.el (erc-capab-identify-add-prefix)
* lisp/erc/erc-dcc.el (erc-dcc-chat-parse-output)
* lisp/erc/erc-goodies.el (erc-controls-propertize)
* lisp/erc/erc-stamp.el (erc-format-timestamp)
* lisp/erc/erc-track.el (erc-faces-in)
* lisp/erc/erc.el (erc-load-irc-script-lines, erc-display-msg)
(erc-display-command, erc-make-notice, erc-highlight-notice)
(erc-format-my-nick, erc-format-@nick, erc-format-privmessage)
(erc-display-prompt, erc-display-message-highlight)
(erc-log-irc-protocol): Ditto.

* test/lisp/erc/erc-track-tests.el: Converted asserts into ert
tests.

8 years agoAdd a `transient' project type
Dmitry Gutov [Wed, 6 Apr 2016 23:02:13 +0000 (02:02 +0300)]
Add a `transient' project type

* lisp/progmodes/project.el (project-roots): Implement for the
`transient' project type (bug#23224).
(project-current): Instead of signaling an error, return a
transient project instance rooted in the chosen directory.

8 years agoRevert "Backport HTTPS proxy fix"
Lars Magne Ingebrigtsen [Wed, 6 Apr 2016 16:36:18 +0000 (18:36 +0200)]
Revert "Backport HTTPS proxy fix"

This reverts commit 2d1a6054b161bd1055d4feb11c8c5ac95543f5db.

It's too late in the Emacs 25 release cycle to add things like this to
Emacs 25.1.  It's border line new feature.

8 years agoBackport HTTPS proxy fix
Tao Fang [Mon, 4 Apr 2016 20:21:21 +0000 (22:21 +0200)]
Backport HTTPS proxy fix

Cherry-picked from 3c623c26ae7d695746e05d8a2e16a67a6256b024

Backport:

8 years agoAdd new keywords of Python 3.5
Lele Gaifax [Wed, 6 Apr 2016 08:38:23 +0000 (10:38 +0200)]
Add new keywords of Python 3.5

Python 3.5, released in mid September 2015, introduced a few new
keywords to better support asynchronous code, "async" and "await"
in particular. See https://www.python.org/dev/peps/pep-0492/ for
details. (Bug#21783)
* lisp/progmodes/python.el (python-rx-constituents): Add async
def/for/with as block-start and async def as defun.
* lisp/progmodes/python.el (python-font-lock-keywords): Add async
def/for/with as keyword.
* test/automated/python-tests.el (python-indent-after-async-block-1,
python-indent-after-async-block-2, python-indent-after-async-block-3,
python-nav-beginning-of-defun-3): New tests to test indentation and
navigation for the async keyword.

8 years ago; Remove superfluous merge from emacs-25
Michael Albinus [Wed, 6 Apr 2016 08:26:07 +0000 (10:26 +0200)]
; Remove superfluous merge from emacs-25

8 years agoFix stability confusion in sort-tests
Paul Eggert [Wed, 6 Apr 2016 08:22:00 +0000 (01:22 -0700)]
Fix stability confusion in sort-tests

Problem reported by Philipp Stephani (Bug#23205).
* test/automated/sort-tests.el:
(sort-tests--insert-words-sort-and-compare):
Don’t assume that reversing a sorted list is the same
as sorting with the reverse predicate.  This is not true
for stable sorts when items compare equal.

8 years agoSupport completion of at-rules in SCSS mode
Etienne Prud'homme [Fri, 1 Apr 2016 19:09:15 +0000 (15:09 -0400)]
Support completion of at-rules in SCSS mode

lisp/textmodes/css-mode.el (scss-at-ids): New defconst holding
SCSS-specific at-rules.
(css--at-ids): New buffer-local variable holding the list of at-rules
for the current mode.
(css--complete-at-rule): Retrieve at-rules from `css--at-ids`.
(scss-mode): Set `css--at-ids'.

Copyright-paperwork-exempt: yes

8 years agoAvoid describe-key error with lambdas
Paul Eggert [Tue, 5 Apr 2016 20:58:57 +0000 (13:58 -0700)]
Avoid describe-key error with lambdas

Problem reported by Sho Takemori (Bug#22716).
* lisp/cedet/mode-local.el (describe-mode-local-overload)
(xref-mode-local-overload): Use function-overload-p instead
of assuming the argument is a symbol.

8 years ago; Spelling fix
Paul Eggert [Tue, 5 Apr 2016 15:16:01 +0000 (08:16 -0700)]
; Spelling fix

8 years agoEnable GCC warnings in developer builds
Paul Eggert [Tue, 5 Apr 2016 14:51:28 +0000 (07:51 -0700)]
Enable GCC warnings in developer builds

However, do not fail; just issue the warnings.  Add an option
--enable-gcc-warnings=warn-only to configure, to implement this.
* INSTALL, etc/NEWS: Document this.
* configure.ac (gl_GCC_VERSION_IFELSE): New macro, from coreutils.
(gl_gcc_warnings, WERROR_CFLAGS): Use it to add new option.
Don’t treat --with-x-toolkit=no as a special case when configuring
warnings.

8 years agoInhibit querying for the encoding of the headers when resending
Lars Magne Ingebrigtsen [Tue, 5 Apr 2016 08:28:09 +0000 (10:28 +0200)]
Inhibit querying for the encoding of the headers when resending

* lisp/gnus/message.el (message-resend): Inhibit querying for
the encoding of the headers when resending.

8 years ago; Fix typo in previous patch.
Paul Eggert [Tue, 5 Apr 2016 05:34:01 +0000 (22:34 -0700)]
; Fix typo in previous patch.

8 years agoPrefer AUTO_STRING_WITH_LEN to make_formatted_string
Paul Eggert [Tue, 5 Apr 2016 00:04:58 +0000 (17:04 -0700)]
Prefer AUTO_STRING_WITH_LEN to make_formatted_string

* src/buffer.c (Fgenerate_new_buffer_name):
* src/filelock.c (get_boot_time):
* src/minibuf.c (get_minibuffer):
* src/process.c (make_process):
* src/xdisp.c (ensure_echo_area_buffers):
Prefer AUTO_STRING_WITH_LEN + sprintf to make_formatted_string
when either will do.

8 years agoAllow URL using HTTPS proxies using CONNECT
Tao Fang [Mon, 4 Apr 2016 20:21:21 +0000 (22:21 +0200)]
Allow URL using HTTPS proxies using CONNECT

* lisp/url/url-http.el (url-http-find-free-connection): Allow
using proxies (bug#11788).
(url-http-end-of-document-sentinel): Ditto.
(url-http): The protocol may change from http to https and
vice versa.
(url-https-proxy-connect): Allow using CONNECT proxies for https.

8 years agoNew C macro AUTO_STRING_WITH_LEN
Paul Eggert [Mon, 4 Apr 2016 17:30:41 +0000 (10:30 -0700)]
New C macro AUTO_STRING_WITH_LEN

Put a bit less pressure on the garbage collector by defining a
macro that is like AUTO_STRING but also allows null bytes in strings,
and by extending AUTO_STRING to work with any unibyte string.
* src/alloc.c (verify_ascii): Remove; all uses removed.
AUTO_STRING can now be used on non-ASCII unibyte strings.
* src/lisp.h (AUTO_STRING): Now allows non-ASCII unibyte strings.
(AUTO_STRING_WITH_LEN): New macro.
* src/coding.c (from_unicode_buffer):
* src/editfns.c (format_time_string):
* src/emacs-module.c (module_make_string, module_format_fun_env):
* src/fileio.c (Fexpand_file_name):
* src/font.c (font_parse_family_registry):
* src/ftfont.c (ftfont_get_charset):
* src/keymap.c (silly_event_symbol_error):
* src/menu.c (single_menu_item):
* src/sysdep.c (system_process_attributes):
Use AUTO_STRING_WITH_LEN if possible.
* src/emacs-module.c (module_make_function):
* src/fileio.c (report_file_errno, report_file_notify_error):
* src/fns.c (Flocale_info):
* src/sysdep.c (system_process_attributes):
Use AUTO_STRING if possible.  This is doable more often now
that AUTO_STRING works on any unibyte string.

8 years agoPort redirect-debugging-output to MS-Windows
Paul Eggert [Mon, 4 Apr 2016 16:42:58 +0000 (09:42 -0700)]
Port redirect-debugging-output to MS-Windows

Suggested by Eli Zaretskii in:
http://lists.gnu.org/archive/html/emacs-devel/2016-04/msg00037.html
* src/print.c [WINDOWSNT]: Include sys/socket.h.
* src/w32.c (sys_dup2): Work around problem with MS-Windows _dup2.

8 years agoPort redirect-debugging-output to non-GNU/Linux
Paul Eggert [Mon, 4 Apr 2016 16:36:30 +0000 (09:36 -0700)]
Port redirect-debugging-output to non-GNU/Linux

Problem reported by Kylie McClain for musl in:
http://lists.gnu.org/archive/html/emacs-devel/2016-03/msg01592.html
* etc/DEBUG, etc/NEWS: Mention this.
* src/callproc.c (child_setup) [!MSDOS]:
* src/dispnew.c (init_display):
* src/emacs.c (main, Fdaemon_initialized):
* src/minibuf.c (read_minibuf_noninteractive):
* src/regex.c (xmalloc, xrealloc):
Prefer symbolic names like STDERR_FILENO to magic numbers like 2,
to make file-descriptor manipulation easier to follow.
* src/emacs.c (relocate_fd) [!WINDOWSNT]: Remove; no longer needed
now that we make sure stdin, stdout and stderr are open.  All uses
removed.
(main): Make sure standard FDs are OK.  Prefer symbolic names like
EXIT_FAILURE to magic numbers like 1.  Use bool for boolean.
* src/lisp.h (init_standard_fds): New decl.
* src/print.c (WITH_REDIRECT_DEBUGGING_OUTPUT) [GNU_LINUX]:
Remove; no longer needed.
(Fredirect_debugging_output): Define on all platforms, not just
GNU/Linux.  Redirect file descriptor, not stream, so that the code
works even if stderr is not an lvalue.  Report an error if the
file arg is neither a string nor nil.
(syms_of_print): Always define redirect-debugging-output.
* src/sysdep.c (force_open, init_standard_fds): New functions.

8 years ago* lisp/emacs-lisp/package.el (package-install-selected-packages):
Artur Malabarba [Mon, 4 Apr 2016 14:58:49 +0000 (11:58 -0300)]
* lisp/emacs-lisp/package.el (package-install-selected-packages):

Skip unavailable packages.

8 years agoSpelling fixes
Paul Eggert [Mon, 4 Apr 2016 06:16:35 +0000 (23:16 -0700)]
Spelling fixes

8 years agoSync with gnulib
Paul Eggert [Mon, 4 Apr 2016 06:12:04 +0000 (23:12 -0700)]
Sync with gnulib

This incorporates:
2016-04-03 stdint: detect good enough pre-C++11 stdint.h in C++ mode
2016-04-01 stddef: support configuring with g++
* doc/misc/texinfo.tex, lib/stddef.in.h, m4/stdint.m4:
Copy from gnulib.

8 years agoRevert "Add `r'/`l' grep command history commands"
John Wiegley [Sun, 3 Apr 2016 22:46:53 +0000 (15:46 -0700)]
Revert "Add `r'/`l' grep command history commands"

This reverts commit a32eea60ac90d367435860fe3a10bf843e6f497c.

8 years agoRevert "Restore the point in grep buffers when traversing the history"
John Wiegley [Sun, 3 Apr 2016 22:46:52 +0000 (15:46 -0700)]
Revert "Restore the point in grep buffers when traversing the history"

This reverts commit f7c5f79ca565d3ef3feeb1e0af5ca261f1bcf58a.

8 years agoFix doc for Universal Time
Paul Eggert [Sun, 3 Apr 2016 22:27:21 +0000 (15:27 -0700)]
Fix doc for Universal Time

* doc/lispref/os.texi (Time of Day, Time Conversion):
Be more careful about distinguishing UTC (which is not valid for
pre-1961 time stamps) and UT (which is).
(Time Parsing): Remove stray obsolete paragraph about a
UNIVERSAL argument for ‘format-time-string’.

8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 3 Apr 2016 20:39:52 +0000 (13:39 -0700)]
Merge from origin/emacs-25

787df9d ; * src/keyboard.c (read_char): Fix typos in a comment.

8 years ago; Merge from origin/emacs-25
Paul Eggert [Sun, 3 Apr 2016 20:39:52 +0000 (13:39 -0700)]
; Merge from origin/emacs-25

The following commit was skipped:

06ae23a Handle Bug#23186

8 years agoMerge from origin/emacs-25
Paul Eggert [Sun, 3 Apr 2016 20:39:52 +0000 (13:39 -0700)]
Merge from origin/emacs-25

b787d55 More format-time-string change fixups
13c8f29 make-xwidget unused arg cleanup
36e05f0 Remove unused arguments from make-xwidget
1042217 Document incompatible changes in 'format-time-string'
7228eb8 Improve documentation of byte-code objects
0020047 Adapt calls to 'format-time-string' to changes in Emacs 25
17b5152 Improve vc-diff with Git backend
c28f87a (js--continued-expression-p): Special-case unary plus and minus
2d02a5f ; * lisp/vc/vc-annotate.el (vc-annotate): Clarify commentary.
9151f16 Prevent C++ Mode wrongly fontifying some identifiers near tem...
b3b523c Avoid crashes due to insanely large columns in tabulated-list...
a3daa34 Teach M-x disassemble a default argument.
e30c3e9 Fix EOL decoding in vc-annotate with SVN back-end on MS-Windows
df441b3 Fix OS X specific settings in tramp-tests
2244331 Finish fixing a cacheing bug in CC Mode (see 2016-03-09)

# Conflicts:
# lisp/net/tramp-sh.el
# lisp/progmodes/cc-engine.el

8 years agoRestore the point in grep buffers when traversing the history
Lars Magne Ingebrigtsen [Sun, 3 Apr 2016 18:13:52 +0000 (20:13 +0200)]
Restore the point in grep buffers when traversing the history

* lisp/progmodes/grep.el (grep-process-setup): Allow moving
point to a specific place after finishing the grep command.
(grep-mode): Use it to restore point after traversing the history.
(grep--history-point): New internal variable.
(grep--save-history, grep-forward-history): Use it to restore
the point.

8 years agoAdd `r'/`l' grep command history commands
Lars Magne Ingebrigtsen [Sun, 3 Apr 2016 17:46:50 +0000 (19:46 +0200)]
Add `r'/`l' grep command history commands

* doc/emacs/building.texi (Grep Searching): Mention the
`r'/`l' commands.

* lisp/progmodes/grep.el (grep-forward-history): New command.
(grep-backward-history): Ditto.
(grep--save-buffers): New function.
(grep): Use it to record the history.
(grep--command-history, grep--history-inhibit)
(grep--history-place): New internal variables for the grep
history (bug#22627).

8 years ago; * src/keyboard.c (read_char): Fix typos in a comment.
Eli Zaretskii [Sun, 3 Apr 2016 17:06:51 +0000 (20:06 +0300)]
; * src/keyboard.c (read_char): Fix typos in a comment.

8 years agoFix Bug#23186, again
Michael Albinus [Sun, 3 Apr 2016 15:54:25 +0000 (17:54 +0200)]
Fix Bug#23186, again

* lisp/net/tramp.el (tramp-encoding-shell)
(tramp-encoding-command-switch)
(tramp-encoding-command-interactive): Check for
`w32-shell-name'.  (Bug#23186)

8 years agoFix Bug#23186
Michael Albinus [Sun, 3 Apr 2016 08:18:40 +0000 (10:18 +0200)]
Fix Bug#23186

* lisp/net/tramp.el (tramp-encoding-command-switch)
(tramp-encoding-command-interactive):
* lisp/net/tramp-sh.el (tramp-maybe-open-connection):
`tramp-encoding-shell' could be nil.  (Bug#23186)

8 years agoFix Bug#22145
Michael Albinus [Sun, 3 Apr 2016 08:14:56 +0000 (10:14 +0200)]
Fix Bug#22145

* lisp/net/tramp-cache.el (tramp-get-connection-property)
(tramp-set-connection-property, tramp-connection-property-p)
(tramp-flush-connection-property): Improve docstring.

* lisp/net/tramp-sh.el (tramp-maybe-open-connection): Use it.

* lisp/net/tramp.el (tramp-get-local-locale): New defun.

* test/automated/tramp-tests.el (tramp--test-utf8):
Improve settings of coding systems.  (Bug#22145)