]> git.eshelyaron.com Git - emacs.git/log
emacs.git
6 years agoStop keeping multiple doc copies for items defined multiple times
Glenn Morris [Tue, 13 Feb 2018 22:22:16 +0000 (14:22 -0800)]
Stop keeping multiple doc copies for items defined multiple times

It was always a nuisance to keep all the copies in sync.
* src/doc.c (Fsnarf_documentation): Don't skip entire files.
Instead, skip individual doc strings starting with "SKIP".
* doc/lispref/internals.texi (Writing Emacs Primitives):
Mention this skipping.
* lisp/term/ns-win.el, lisp/term/pc-win.el, src/dosfns.c:
* src/frame.c, src/nsfns.m, src/nsmenu.m, src/nsterm.m:
* src/w16select.c, src/w32fns.c, src/w32menu.c, src/w32select.c:
* src/w32term.c, src/xmenu.c: Remove duplicated doc strings.
* src/xfns.c: Merge in information from doc string duplicates.

6 years agoDoc tweak for x-use-underline-position-properties
Glenn Morris [Tue, 13 Feb 2018 22:13:53 +0000 (14:13 -0800)]
Doc tweak for x-use-underline-position-properties

* src/xterm.c (syms_of_xterm) <x-use-underline-position-properties>:
Remove ancient information from doc.
* etc/PROBLEMS: Related edit.

6 years agoMerge from origin/emacs-26
Glenn Morris [Tue, 13 Feb 2018 17:26:20 +0000 (09:26 -0800)]
Merge from origin/emacs-26

333d6f4 (origin/emacs-26) More changes in the Emacs manual
52ca0d1 * lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
69e8046 Don't signal error in vc-deduce-backend
f568c91 * doc/misc/tramp.texi: Index more user options.
92ca881 Minor change in the Emacs manual
e055a12 NEWS update about 'string-trim'
96b6e24 Clarify TRAMP process-environment interaction (Bug#30419)
4fa467e * lisp/progmodes/grep.el (grep-num-matches-found): New variable.
a22820a Avoid aborts in cm.c due to too small TTY frame
26f6441 Another set of improvements in the Emacs manual
cef3b42 Fix help in mode-line-mode-menu
f8a493c Improve documentation of desktop restoring
10637af Improve the Emacs manual's chapter "Frames"
d924953 Fix unbound mm-uu-entry in mm-uu
cb2487b Improve Emacs user manual in fixit.texi
66e9527 Another minor change in the manual
6a1c03d More minor changes in the Emacs manual
32fb8c4 Avoid printing garbled error message from image.el

Conflicts:
etc/NEWS
lisp/image.el

6 years agoMore changes in the Emacs manual
Eli Zaretskii [Tue, 13 Feb 2018 17:12:37 +0000 (19:12 +0200)]
More changes in the Emacs manual

* doc/emacs/search.texi (Regexp Backslash): Say that
symbol-constituent characters are determined by the syntax table.
(Lax Search): Fix example of case-insensitive search.  Fix a
typo.
(Unconditional Replace): Improve wording.
(Regexp Replace): More consistent wording.  Reported by Michael
Albinus <michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.

* doc/emacs/msdos.texi (Windows HOME): Avoid enumerating all the
Windows versions.  Reported by Isaac Carter
<icarter1391@gmail.com> in emacs-manual-bugs@gnu.org.

6 years ago* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.
Andreas Schwab [Tue, 13 Feb 2018 13:05:20 +0000 (14:05 +0100)]
* lisp/vc/vc.el (vc-deduce-backend): Use ignore-errors.

6 years agoDon't signal error in vc-deduce-backend
Andreas Schwab [Tue, 13 Feb 2018 11:13:27 +0000 (12:13 +0100)]
Don't signal error in vc-deduce-backend

* lisp/vc/vc.el (vc-deduce-backend): Return nil if
vc-responsible-backend signals an error.

6 years agoFix NS-related compilation errors.
Philipp Stephani [Tue, 13 Feb 2018 08:55:46 +0000 (09:55 +0100)]
Fix NS-related compilation errors.

* src/nsterm.m (ns_set_represented_filename): Remove unused variable
'view'.

* src/nsfns.m (x_implicitly_set_name, syms_of_nsfns): The type of a
variable defined with DEFVAR_BOOL is 'bool', not 'Lisp_Object'.

6 years ago* doc/misc/tramp.texi: Index more user options.
Michael Albinus [Tue, 13 Feb 2018 07:35:50 +0000 (08:35 +0100)]
* doc/misc/tramp.texi: Index more user options.

6 years agoMinor change in the Emacs manual
Eli Zaretskii [Tue, 13 Feb 2018 05:59:26 +0000 (07:59 +0200)]
Minor change in the Emacs manual

* doc/emacs/building.texi (Lisp Libraries): Explain why nil in
load-path is not a good idea.  Suggested by James Yoo
<james.yoo@gmail.com> in emacs-manual-bugs@gnu.org.

6 years agoNEWS update about 'string-trim'
Eli Zaretskii [Tue, 13 Feb 2018 05:49:30 +0000 (07:49 +0200)]
NEWS update about 'string-trim'

* etc/NEWS: Mention changes in string-trim family of functions.
(Bug#30442)

6 years agoExpand direct color description in Emacs FAQ
Rami Ylimäki [Tue, 13 Feb 2018 05:33:39 +0000 (07:33 +0200)]
Expand direct color description in Emacs FAQ

* doc/misc/efaq.texi (Colors on a TTY): Show how to list direct
mode TERM definitions.  (Bug#30429)

6 years ago* lisp/gnus/message.el (message-ecomplete-capf): Fix call convention.
Stefan Monnier [Tue, 13 Feb 2018 05:17:38 +0000 (00:17 -0500)]
* lisp/gnus/message.el (message-ecomplete-capf): Fix call convention.

6 years ago* lisp/progmodes/python.el: Bump package version to 0.26.
Noam Postavsky [Tue, 13 Feb 2018 02:22:46 +0000 (21:22 -0500)]
* lisp/progmodes/python.el: Bump package version to 0.26.

6 years agoWork if libpng is in /usr/local (2nd try)
Paul Eggert [Tue, 13 Feb 2018 00:39:56 +0000 (16:39 -0800)]
Work if libpng is in /usr/local (2nd try)

Problem reported by Werner Lemberg in:
https://lists.gnu.org/r/emacs-devel/2018-02/msg00304.html
with a further fix suggested by Glenn Morris in Bug#30431#14.
* configure.ac: Try pkg-config before libpng-config.
Adjust LIBPNG accordingly, and append -lz regardless of
whether it was pkg-config.

6 years agoClarify TRAMP process-environment interaction (Bug#30419)
Noam Postavsky [Sun, 11 Feb 2018 14:20:29 +0000 (09:20 -0500)]
Clarify TRAMP process-environment interaction (Bug#30419)

* doc/misc/tramp.texi (Remote processes): Index the
tramp-remote-process-environment description.  Clarify the effects of
let-binding process-environment and the motivation for that behavior.

6 years ago* lisp/progmodes/grep.el (grep-num-matches-found): New variable.
Juri Linkov [Mon, 12 Feb 2018 21:39:28 +0000 (23:39 +0200)]
* lisp/progmodes/grep.el (grep-num-matches-found): New variable.

(grep-mode-line-matches): New defconst.
(grep-mode-font-lock-keywords): Update the regexp for “Grep finished”
to include the number of matches found.
(grep-process-setup): Set grep-num-matches-found to 0.
(grep-exit-message): New function with body moved from lambda
in grep-process-setup.  Use grep-num-matches-found to return
the number of matches found.
(grep-filter): Increment grep-num-matches-found.
(grep-mode): Set compilation-mode-line-errors to grep-mode-line-matches.
(Bug#30397, bug#14017)

6 years agoFinish renaming to internal--daemon-sockname
Paul Eggert [Mon, 12 Feb 2018 20:52:44 +0000 (12:52 -0800)]
Finish renaming to internal--daemon-sockname

* doc/lispref/processes.texi (Misc Network): Omit discussion of
internal--daemon-sockname, as non-Emacs code shouldn't rely on it.
* src/process.c (syms_of_process): Rename internal-daemon-sockname
to internal--daemon-sockname.  All uses changed.

6 years agoRename internal--external-sockname and document (Bug#24218)
Matthew Leach [Mon, 12 Feb 2018 20:52:44 +0000 (12:52 -0800)]
Rename internal--external-sockname and document (Bug#24218)

* lisp/server.el: Rename `internal--external-sockname' to
  `internal-daemon-sockname'.
* src/process.c: Likewise.
* doc/lispref/processes.texi: Document `internal-daemon-sockname'.

6 years agoUpdate `server-name' :version & document sockname (Bug#24218)
Matthew Leach [Mon, 12 Feb 2018 20:52:43 +0000 (12:52 -0800)]
Update `server-name' :version & document sockname (Bug#24218)

* lisp/server.el: (server-name): Update :version tag.
* etc/NEWS: Document that `server-name' and `server-socket-dir'
  automatically update.
* doc/misc.texi: (Emacs Server): Likewise.

6 years agoMinor cleanups for server-name fix (Bug#24218)
Paul Eggert [Mon, 12 Feb 2018 20:52:43 +0000 (12:52 -0800)]
Minor cleanups for server-name fix (Bug#24218)

* lisp/server.el (server--external-socket-initialized): Rename
from server-external-socket-initialised, since it should be
private and Emacs uses American spelling.  All uses changed.
* src/emacs.c, src/lisp.h: Revert previous changes, as the
initialization is now done in src/process.c, which already
includes the relevant files.
* src/process.c (union u_sockaddr): Move decl to top level.
(external_sock_name, Fget_external_sockname): Remove, replacing
with Vinternal__external_sockname.  All uses changed.
(init_process_emacs): Deduce socket name ourselves rather than
have main.c do it.  Use conv_sockaddr_to_lisp instead of doing
it by hand.  Conditionalize it on HAVE_GETSOCKNAME.

6 years agoFix `server-name' and `server-socket-dir' for (Bug#24218)
Matthew Leach [Mon, 12 Feb 2018 20:52:43 +0000 (12:52 -0800)]
Fix `server-name' and `server-socket-dir' for (Bug#24218)

* lisp/server.el: (server-external-socket-initialised): New
(server-name): Compute server name from `get-external-sockname'.
(server-socket-dir): Compute socket dir from
`get-external-sockname'.
(server-start): Don't check for existing server when an
uninitialised external socket has been passed to Emacs.
* src/emacs.c: (main): Obtain socket name via getsockname and pass
to `init_process_emacs'.
* src/lisp.h: (init_process_emacs): Add second parameter.
* src/process.c: (external_sock_name): New.
(get-external-sockname): New.
(init_process_emacs): Set `external_sock_name' to `sockname'
parameter.

6 years agoAvoid aborts in cm.c due to too small TTY frame
Eli Zaretskii [Mon, 12 Feb 2018 18:02:36 +0000 (20:02 +0200)]
Avoid aborts in cm.c due to too small TTY frame

* src/frame.c (frame_windows_min_size): Limit TTY frames to a
minimum height large enough to allow for a menu bar, the mode
line, one text line and one echo-area line.  This avoids aborts in
cm.c:cmcheckmagic.  (Bug#30320)

6 years agoMinor fixes to .gdbinit
Tom Tromey [Thu, 8 Feb 2018 04:26:53 +0000 (21:26 -0700)]
Minor fixes to .gdbinit

* src/.gdbinit (xcompiled): Emit a final newline.
(python): Define "long" if not already defined.  Use casts to long,
not int.

6 years agoAnother set of improvements in the Emacs manual
Eli Zaretskii [Mon, 12 Feb 2018 17:52:48 +0000 (19:52 +0200)]
Another set of improvements in the Emacs manual

* doc/emacs/msdos-xtra.texi (MS-DOS Keyboard):
* doc/emacs/msdos.texi (Windows Keyboard):
* doc/emacs/mark.texi (Using Region):
* doc/emacs/frames.texi (Menu Mouse Clicks):
* doc/emacs/macos.texi (Mac / GNUstep Basics): Fix spelling of
keys.  Reported by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.

* doc/emacs/glossary.texi (Glossary): Document that "c.f." is a
misspelling.  Reported by Robert Pluim <rpluim@gmail.com>.
Various minor wording improvements.  Suggested by Toon Claes
<toon@iotcl.com> in emacs-manual-bugs@gnu.org.
More minor changes.  Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.

* doc/emacs/cmdargs.texi (Title X): Improve wording.

* doc/emacs/building.texi (Grep Searching, Compilation): Avoid
passive tense.

* doc/emacs/basic.texi (Moving Point): Move the description of the
bidi-related effects of the arrow keys from here ...
* doc/emacs/mule.texi (Bidirectional Editing): ... to here.
Explain the behavior of arrow keys between paragraphs.

6 years agoRevert libpng /usr/local patch
Paul Eggert [Mon, 12 Feb 2018 15:26:45 +0000 (07:26 -0800)]
Revert libpng /usr/local patch

It broke builds on Arch, Debian, OpenSuSE; see thread containing:
https://lists.gnu.org/r/2018-02/msg00330.html
* configure.ac: Don't try pkg-config; just use libpng-config.

6 years agoFix help in mode-line-mode-menu
Michael Albinus [Mon, 12 Feb 2018 10:10:17 +0000 (11:10 +0100)]
Fix help in mode-line-mode-menu

* lisp/bindings.el (mode-line-mode-menu) [auto-revert-tail-mode]:
Fix help string.

6 years agoWork even if libpng is installed in /usr/local
Paul Eggert [Mon, 12 Feb 2018 02:43:34 +0000 (18:43 -0800)]
Work even if libpng is installed in /usr/local

Problem reported by Werner Lemberg in:
https://lists.gnu.org/r/emacs-devel/2018-02/msg00304.html
* configure.ac: Try pkg-config before libpng-config.

6 years agoFix an infloop in python-nav-beginning-of-statement
Dmitry Gutov [Mon, 12 Feb 2018 00:27:52 +0000 (03:27 +0300)]
Fix an infloop in python-nav-beginning-of-statement

* lisp/progmodes/python.el (python-nav-beginning-of-statement):
Fix an infloop (bug#30277).

6 years agoMerge from pkg-config
Paul Eggert [Sun, 11 Feb 2018 21:09:24 +0000 (13:09 -0800)]
Merge from pkg-config

* m4/pkg.m4: Copy from pkg-config 0.29.2.

6 years agoFix modifier keys on NS port
Alan Third [Wed, 7 Feb 2018 22:39:17 +0000 (22:39 +0000)]
Fix modifier keys on NS port

* src/nsterm.m (EV_MODIFIERS_OPTION):
(EV_MODIFIERS_CONTROL):
(EV_MODIFIERS_COMMAND): New macros.
(ev_modifiers_helper): New function.
(EV_MODIFIERS2): Use new helper function.
(EmacsView::keyDown): Remove duplicate functionality and handle fn key
correctly.

6 years agoTidy up NS keybindings
Alan Third [Mon, 5 Feb 2018 19:46:48 +0000 (19:46 +0000)]
Tidy up NS keybindings

* lisp/term/ns-win.el: Remove unneeded mappings to super-shifted keys.

6 years agoRemove NS special handling of 'frame-title-format'
Alan Third [Sun, 11 Feb 2018 11:34:49 +0000 (11:34 +0000)]
Remove NS special handling of 'frame-title-format'

* lisp/term/ns-win.el (frame-title-format, icon-title-format): Change
default format to just the filename.
* src/nsfns.m (ns-use-proxy-icon): New variable.
(ns_set_name_as_filename): Remove function.
(x_implicitly_set_name): Get rid of special handling of
frame-title-format.
* src/nsterm.h (ns_set_represented_filename): Use new definition.
* src/nsterm.m (ns_set_represented_filename): Move some of the logic
from ns_set_name_as_filename into this function.

6 years agoImprove documentation of desktop restoring
Eli Zaretskii [Sun, 11 Feb 2018 17:59:00 +0000 (19:59 +0200)]
Improve documentation of desktop restoring

* doc/emacs/misc.texi (Saving Emacs Sessions): Document
'desktop-auto-save-timeout', 'desktop-load-locked-desktop', and
how to restore desktop in daemon mode.  (Bug#30421)

6 years ago* src/xdisp.c (Vmessage_stack): Fix comment to match code.
Paul Eggert [Sun, 11 Feb 2018 17:58:10 +0000 (09:58 -0800)]
* src/xdisp.c (Vmessage_stack): Fix comment to match code.

6 years agoImprove the Emacs manual's chapter "Frames"
Eli Zaretskii [Sun, 11 Feb 2018 16:19:25 +0000 (18:19 +0200)]
Improve the Emacs manual's chapter "Frames"

* doc/emacs/frames.texi (Creating Frames): Add a cross-reference
to where frame visibility is described.
(Word and Line Mouse): Clarify wording.
(Scroll Bars): Qualify scroll-bar behavior.  Reported by Dmitry
Gutov <dgutov@yandex.ru> in emacs-manual-bugs@gnu.org.

6 years agoFix handling of file notifications in tramp-gvfs.el
Michael Albinus [Sun, 11 Feb 2018 09:26:57 +0000 (10:26 +0100)]
Fix handling of file notifications in tramp-gvfs.el

* lisp/net/tramp-archive.el (tramp-archive-dissect-file-name):
Fix docstring.

* lisp/net/tramp-gvfs.el (tramp-gvfs-handle-file-notify-add-watch):
Use consequently "gio monitor".
(tramp-gvfs-monitor-process-filter): Rename from
`tramp-gvfs-monitor-file-process-filter'.  Adapt implementation.

* lisp/net/tramp-sh.el (tramp-gio-events): Move this ...
* lisp/net/tramp.el (tramp-gio-events): ... here.

6 years agoFix unbound mm-uu-entry in mm-uu
Andreas Schwab [Sat, 10 Feb 2018 22:55:48 +0000 (23:55 +0100)]
Fix unbound mm-uu-entry in mm-uu

* lisp/gnus/mm-uu.el (mm-uu-dissect): Rename entry to mm-uu-entry.

6 years ago* lisp/window.el (display-buffer--maybe-at-bottom): New function (bug#30314).
Juri Linkov [Sat, 10 Feb 2018 21:55:34 +0000 (23:55 +0200)]
* lisp/window.el (display-buffer--maybe-at-bottom): New function (bug#30314).

(display-buffer--maybe-pop-up-frame)
(display-buffer--maybe-pop-up-window): New functions created from
display-buffer--maybe-pop-up-frame-or-window.
(display-buffer--maybe-pop-up-frame-or-window): Call
display-buffer--maybe-pop-up-frame or
display-buffer--maybe-pop-up-window.
(display-buffer-at-bottom): Fix parens.

* lisp/minibuffer.el (minibuffer-completion-help): Use
display-buffer--maybe-pop-up-frame instead of let-binding
pop-up-windows to nil.

* lisp/files.el (hack-local-variables-confirm)
(save-buffers-kill-emacs): Use display-buffer--maybe-at-bottom.

6 years ago* lisp/comint.el (comint-after-pmark-p): Check if buffer has a live process.
Juri Linkov [Sat, 10 Feb 2018 21:46:13 +0000 (23:46 +0200)]
* lisp/comint.el (comint-after-pmark-p): Check if buffer has a live process.

Return nil if not.
(comint-history-isearch-setup): Don't check if process is live.
Always check if shell prompt is empty regardless of the value
of comint-history-isearch. (Bug#30187)

6 years agoImprove Emacs user manual in fixit.texi
Eli Zaretskii [Sat, 10 Feb 2018 17:21:42 +0000 (19:21 +0200)]
Improve Emacs user manual in fixit.texi

* doc/emacs/fixit.texi (Undo): Clarify inaccurate description of
repeated undo.
(Transpose): Describe explicitly what happens at EOL.
(Spelling): Use "spell-checking" consistently.  Clarify wording.
Suggested by Toon Claes <toon@iotcl.com> in
emacs-manual-bugs@gnu.org.

6 years agoSupport standard Terminfo direct mode terminals
Rami Ylimäki [Sat, 10 Feb 2018 11:31:22 +0000 (13:31 +0200)]
Support standard Terminfo direct mode terminals

Latest Terminfo introduces terminal definitions that support direct
color mode.  The "Co"/"colors" capability is set to 0x1000000 on these
terminals and Emacs is already compatible with them.
However, if used Terminfo library hasn't been compiled with 32-bit
value support, "Co"/"colors" is truncated to 0x7fff.  In this case
direct color mode support can be detected from the "RGB" capability
flag.
There are some minor problems if the color count isn't corrected from
0x7fff.  First eight standard colors defined in xterm-standard-colors
are shown correctly.  However, their RGB values match the terminal
settings, not the RGB values defined in xterm-standard-colors.  Bright
versions of these colors are shown incorrectly.  They are interpreted
as pixels #000008 - #000015, which are very dark shades of blue.

* src/term.c (init_tty): Force terminal color count to 0x1000000 if
"RGB" capability is present.
* src/tparam.h: Define prototype for tigetflag.  (Bug#30308)

* doc/misc/efaq.texi (Colors on a TTY): Add information about direct
mode terminals supported by Terminfo.

6 years agoAnother minor change in the manual
Eli Zaretskii [Sat, 10 Feb 2018 11:23:22 +0000 (13:23 +0200)]
Another minor change in the manual

* doc/emacs/glossary.texi (Glossary): Add popular Latin
abbreviations, such as "e.g.".

6 years agoAvoid infinite recursion in file_directory_p
Eli Zaretskii [Sat, 10 Feb 2018 10:45:53 +0000 (12:45 +0200)]
Avoid infinite recursion in file_directory_p

* src/fileio.c (file_directory_p) [DOS_NT]: Call faccessat on
MS-DOS as well, to avoid infinite recursion introduced by last
change in this function.

6 years agoMore minor changes in the Emacs manual
Eli Zaretskii [Sat, 10 Feb 2018 09:19:43 +0000 (11:19 +0200)]
More minor changes in the Emacs manual

* doc/emacs/xresources.texi (GTK resources):
* doc/emacs/trouble.texi (Contributing):
* doc/emacs/frames.texi (Fonts): Use HTTPS URLs instead of HTTP.

* doc/emacs/docstyle.texi: Add a few @hyphenation directives,
based on reports in emacs-manual-bugs@gnu.org about incorrect
hyphenation.

6 years agoMake tooltip code handle scenarios from Bug#30182 and Bug#30399
Martin Rudalics [Sat, 10 Feb 2018 09:18:38 +0000 (10:18 +0100)]
Make tooltip code handle scenarios from Bug#30182 and Bug#30399

Move calculation of the mode line default help echo from
note_mode_line_or_margin_highlight to display_mode_lines
(Bug#30182).  Fix cursor type for dragging the mode line.
Normalize FRAME argument of Fx_show_tip before assigning it to
tip_last_frame and handle the transition from GTK+ to Emacs
tooltips and vice-versa in x_hide_tip (Bug#30399).

* src/window.h (struct window): New Lisp member
mode_line_help_echo.
(wset_mode_line_help_echo): New function.
* src/w32fns.c (Fx_show_tip): Normalize the FRAME argument
bevore storing it in tip_last_frame (Bug#30399).
* src/xdisp.c (display_mode_lines): Calculate mode line
default help echo string here and store it in the window's
mode_line_help_echo slot (Bug#30182).
(note_mode_line_or_margin_highlight): Use value in window's
mode_line_help_echo slot as mode line default help echo.  When
the window is resizable show a vertical drag cursor instead of
the vertical scroll bar cursor.
* src/xfns.c (x_hide_tip): Rewrite the GTK+ part to correctly
handle the transition from GTK+ system to Emacs tooltips and
vice-versa (Bug#30399).
(Fx_show_tip): Normalize the FRAME argument bevore storing it
in tip_last_frame (Bug#30399).

6 years agoHandle "gio monitor" in tramp-sh.el
Michael Albinus [Sat, 10 Feb 2018 08:41:04 +0000 (09:41 +0100)]
Handle "gio monitor" in tramp-sh.el

* lisp/net/tramp-sh.el (tramp-gio-events): New defconst.
(tramp-sh-handle-file-notify-add-watch): Handle "gio monitor" extra.
(tramp-sh-gio-monitor-process-filter)
(tramp-get-remote-gio-monitor): New defuns.
(tramp-sh-gvfs-monitor-dir-process-filter)
(tramp-get-remote-gvfs-monitor-dir): Do not check for gio anymore.

6 years agoAvoid printing garbled error message from image.el
Eli Zaretskii [Sat, 10 Feb 2018 07:51:00 +0000 (09:51 +0200)]
Avoid printing garbled error message from image.el

* lisp/image.el (image--get-imagemagick-and-warn): Don't use
apostrophe in the error message, as that message is shown from a
unibyte buffer, and will run afoul of the default style of showing
quote characters.  (Bug#30405)

6 years agoMerge from origin/emacs-26
Glenn Morris [Fri, 9 Feb 2018 19:12:48 +0000 (11:12 -0800)]
Merge from origin/emacs-26

0276743 (origin/emacs-26) Doc string fix in latin-alt.el
c9269af Minor improvements in package.texi
898a3e4 Minor improvement in Emacs user manual
8f7d718 * doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3.
989d0af Improve documentation of mini-window resizing
923e415 More changes in the Emacs manual
565adf2 Clarify that text-quoting-style doesn't affect *Info* (Bug#24...
2dd273b Mention that shell quoting of % on w32 may fail (Bug#19350)
19fa6d5 Fix --no-build-details for w32 and macOS
979944c * doc/lispref/anti.texi (Antinews): Add some more antinews.
c2727e3 Fix crashes when run with --no-build-details
dc08490 More changes for the manual
04c5bd5 Doc fixes for process functions (Bug#30349)
e209034 Fix shr and CSS 4 color maps
5fe8192 Yet another round of improvements in the manual

Conflicts:
doc/emacs/files.texi
test/lisp/subr-tests.el

6 years agoDoc string fix in latin-alt.el
Eli Zaretskii [Fri, 9 Feb 2018 16:22:07 +0000 (18:22 +0200)]
Doc string fix in latin-alt.el

* lisp/leim/quail/latin-alt.el ("dutch"): Doc fix.  Reported by
Robert Pluim <rpluim@gmail.com>.

6 years agoMinor improvements in package.texi
Eli Zaretskii [Fri, 9 Feb 2018 16:18:04 +0000 (18:18 +0200)]
Minor improvements in package.texi

* doc/emacs/package.texi (Package Menu): Minor wording change.
(Package Installation): Use HTTPS.  A better @xref to GnuPG
manual.  Suggested by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.

6 years agoMinor improvement in Emacs user manual
Eli Zaretskii [Fri, 9 Feb 2018 13:32:48 +0000 (15:32 +0200)]
Minor improvement in Emacs user manual

* doc/emacs/files.texi (Directories): Document that
'directory-free-space-program' and 'directory-free-space-args' are
only for local filesystems.  Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.

6 years ago* doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3.
Michael Albinus [Fri, 9 Feb 2018 12:04:12 +0000 (13:04 +0100)]
* doc/lispref/anti.texi (Antinews): Replace 25.2 with 25.3.

6 years agoImprove documentation of mini-window resizing
Eli Zaretskii [Fri, 9 Feb 2018 10:28:59 +0000 (12:28 +0200)]
Improve documentation of mini-window resizing

* doc/lispref/minibuf.texi (Minibuffer Windows): Mention
'message-truncate-lines' for preventing resizing of minibuffer
windows.  (Bug#19045)
(Minibuffer Misc): Remove redundant description of
'max-mini-window-height'.
* doc/lispref/display.texi (Echo Area Customization): Adjust
cross-reference.

6 years agoMore changes in the Emacs manual
Eli Zaretskii [Fri, 9 Feb 2018 10:08:19 +0000 (12:08 +0200)]
More changes in the Emacs manual

* doc/emacs/fixit.texi (Undo): Mention 'revert-buffer'.
(Fixing Case): Fix punctuation.
(Spelling): Fix a typo.  Suggested by Toon Claes <toon@iotcl.com>
in emacs-manual-bugs@gnu.org.

* doc/emacs/modes.texi (Major Modes): Break a long sentence into
2.  Reported by Stefan Kamphausen <stefan.kamphausen@acrolinx.com>
in emacs-manual-bugs@gnu.org.

* doc/emacs/indent.texi (Just Spaces): Yet another minor
rewording.

* doc/emacs/building.texi (Watch Expressions): Improve wording.
(Multithreaded Debugging): Spell "tool bar" as 2 words.  Reported
by Alberto Sartori <alberto.sartori@sissa.it> in
emacs-manual-bugs@gnu.org.
(Grep Searching): Mention the effect of
'compilation-mode-line-errors'.  (Bug#30397)

* doc/emacs/basic.texi (Moving Point): Minor reformatting and
rewording of what <LEFT> and <RIGHT> do.

6 years agoFix iswitchb highlighting: don't mutate buffer name
Daniel Colascione [Fri, 9 Feb 2018 02:46:57 +0000 (18:46 -0800)]
Fix iswitchb highlighting: don't mutate buffer name

* lisp/obsolete/iswitchb.el (iswitchb-completions): Copy buffer name
  before applying face

6 years ago* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Handle lambda!
Stefan Monnier [Fri, 9 Feb 2018 02:40:46 +0000 (21:40 -0500)]
* lisp/emacs-lisp/cl-macs.el (cl--sm-macroexpand): Handle lambda!

(cl--old-macroexpand): Remove.
(cl--sm-macroexpand): Change its calling convention, so it can use
advice-add.  Extend re-binding treatment of vars so it applies to all
var-introducing forms rather than only to 'let'.
(cl-symbol-macrolet): Use advice-add rather than fset.

6 years agoClarify that text-quoting-style doesn't affect *Info* (Bug#24519)
Noam Postavsky [Fri, 9 Feb 2018 01:18:44 +0000 (20:18 -0500)]
Clarify that text-quoting-style doesn't affect *Info* (Bug#24519)

* src/doc.c (syms_of_doc) <text-quoting-style>: Clarify that info
manual display is unaffected.

6 years agoMention that shell quoting of % on w32 may fail (Bug#19350)
Noam Postavsky [Tue, 6 Feb 2018 18:17:07 +0000 (13:17 -0500)]
Mention that shell quoting of % on w32 may fail (Bug#19350)

* doc/lispref/os.texi (Security Considerations): Mention that quoting
of '%' assumes no '^' in variable names.
* test/lisp/subr-tests.el (shell-quote-argument-%-on-w32): New test,
demonstrating what doesn't work.

6 years agoFix --no-build-details for w32 and macOS
Noam Postavsky [Tue, 6 Feb 2018 17:20:37 +0000 (12:20 -0500)]
Fix --no-build-details for w32 and macOS

* src/w32term.c (w32_initialize_display_info): Handle nil system-name.
* lisp/term/ns-win.el (window-system-initialization): Don't pass nil
to `x-open-connection'.

6 years ago* doc/lispref/anti.texi (Antinews): Add some more antinews.
Paul Eggert [Thu, 8 Feb 2018 23:58:05 +0000 (15:58 -0800)]
* doc/lispref/anti.texi (Antinews): Add some more antinews.

6 years agoRemove unused duplicate of minibuffer-completion-contents
Glenn Morris [Thu, 8 Feb 2018 18:32:35 +0000 (13:32 -0500)]
Remove unused duplicate of minibuffer-completion-contents

* src/minibuf.c (Fminibuffer_completion_contents): Remove.
Unused since introduction of minubuffer.el 2008-04-09.
(syms_of_minibuf): Remove Sminibuffer_completion_contents.
* lisp/minibuffer.el (minibuffer-completion-contents): Doc tweak.

6 years agoFix crashes when run with --no-build-details
Paul Eggert [Tue, 6 Feb 2018 23:25:45 +0000 (15:25 -0800)]
Fix crashes when run with --no-build-details

* src/xrdb.c (get_environ_db):
* src/xterm.c (same_x_server, x_term_init):
Don’t assume Fsystem_name returns a string.

6 years agoMore changes for the manual
Eli Zaretskii [Thu, 8 Feb 2018 16:24:16 +0000 (18:24 +0200)]
More changes for the manual

* doc/emacs/anti.texi (Antinews): Replace 25.2 with 25.3.
Reported by Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.

* doc/emacs/custom.texi (Function Keys): Improve wording.
Suggested by clemens.radermacher@posteo.de in
emacs-manual-bugs@gnu.org.

* doc/emacs/misc.texi (History References): Improve punctuation.
(Terminal emulator): Fix a typo.
(Term Mode): Remove redundant repeated text.
(Invoking emacsclient): Improve wording.  Suggested by Alberto
Sartori <alberto.sartori@sissa.it> in emacs-manual-bugs@gnu.org.

* doc/emacs/files.texi (Visiting): Fix last change.

6 years agoDoc fixes for process functions (Bug#30349)
Noam Postavsky [Tue, 6 Feb 2018 00:36:27 +0000 (19:36 -0500)]
Doc fixes for process functions (Bug#30349)

* doc/lispref/processes.texi (Asynchronous Processes): Explain what
the 'stopped' state means for a pipe process.
* src/process.c (Fmake_process, Fmake_pipe_process)
(Fmake_serial_process, Fmake_network_process):
* lisp/subr.el (start-process):
* lisp/net/tls.el (open-tls-stream):
* lisp/net/starttls.el (starttls-open-stream):
* lisp/net/gnutls.el (open-gnutls-stream): Remove meaningless phrase
"specify an output stream" phrase from docstring.

6 years agoFix shr and CSS 4 color maps
Basil L. Contovounesios [Wed, 7 Feb 2018 02:49:08 +0000 (02:49 +0000)]
Fix shr and CSS 4 color maps

* lisp/net/shr-color.el (shr-color-html-colors-alist): Fix typos.
Add RebeccaPurple.
* lisp/textmodes/css-mode.el (css--color-map): Add fuchsia-magenta
and aqua-cyan aliases.
* test/lisp/textmodes/css-mode-tests.el (css-test-property-values):
Bump color count.

6 years agoYet another round of improvements in the manual
Eli Zaretskii [Wed, 7 Feb 2018 20:24:13 +0000 (22:24 +0200)]
Yet another round of improvements in the manual

* doc/emacs/misc.texi (Document View): Improve wording.  Reported
by lyr3 <lyr3@protonmail.com> in emacs-manual-bugs@gnu.org.

* doc/emacs/files.texi (Recover): Fix a typo.  Reported by Jorge
<jorge+list@disroot.org> in emacs-manual-bugs@gnu.org.

* doc/emacs/anti.texi (Antinews): Fix typos.  Reported by Justin
Heyes-Jones <justinhj@gmail.com> in emacs-manual-bugs@gnu.org.

* doc/emacs/mini.texi (Basic Minibuffer): Clarify wording.
Reported by Vivishek Sudhir <vivishek.sudhir@gmail.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/cmdargs.texi (MS-Windows Registry): Improve wording
regarding registry keys.

* doc/emacs/macos.texi (Mac OS / GNUstep): Sayu "NeXT Inc."
Reported by Cena Mayo <cenazoic@gmail.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/screen.texi (Screen): More accurate wording.
Suggested by Miloš Polakovič <milos@alphamail.org> in
emacs-manual-bugs@gnu.org.

* doc/emacs/indent.texi (Just Spaces): Minor wording change.
Suggested by David Bonnafous <dbonnafo@gmail.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/text.texi (TeX Mode, TeX Editing): Improve and
simplify wording.  Suggested by root@vxid.pw <root@vxid.pw> in
emacs-manual-bugs@gnu.org.

* doc/emacs/cmdargs.texi (Window Size X): Minor wording change.

* doc/emacs/display.texi (Highlight Interactively): Fill text.
(Optional Mode Line): Fix typos.  Suggested by Alberto Sartori
<alberto.sartori@sissa.it> in emacs-manual-bugs@gnu.org.

* doc/emacs/building.texi (Debugger Operation): Clarify wording.

* doc/emacs/files.texi (Directories, Comparing Files, Diff Mode)
(Remote Files, File Names, Visiting, Backup Deletion)
(Customize Save, Interlocking): Improve wording and accuracy of
the text.
* doc/emacs/maintaining.texi (VC With A Merging VCS): Don't say
"his".
* doc/emacs/arevert-xtra.texi (Auto Reverting Dired): Minor
wording changes.
(Supporting additional buffers): Moved to ...
* doc/lispref/backups.texi (Reverting): ... here.
* doc/emacs/emacs.texi (Top): Remove "Supporting additional
buffers" from master menu.
* doc/emacs/files.texi (Reverting): Mention use of file
notifications.  Suggested by Michael Albinus
<michael.albinus@gmx.de> in emacs-manual-bugs@gnu.org.

* doc/emacs/rmail.texi (Rmail Motion): Clarify what '-' does to
'M-s'.  Suggested by Arthur Milchior <arthur@milchior.fr> in
emacs-manual-bugs@gnu.org.

* doc/emacs/cmdargs.texi (Initial Options): Capitalize "Emacs".
(Action Arguments): Fix a typo.
(Emacs Invocation): Replace em-dash with a comma.  Suggested by
Justin Heyes-Jones <justinhj@gmail.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/m-x.texi (M-x): Add an example.  Suggested by Alberto
Sartori <alberto.sartori@sissa.it> in emacs-manual-bugs@gnu.org.

* doc/emacs/calendar.texi (Calendar/Diary, Calendar Unit Motion):
Minor wording changes.

6 years ago* lisp/comint.el (comint-history-isearch-setup): Check if process is live.
Juri Linkov [Tue, 6 Feb 2018 21:39:00 +0000 (23:39 +0200)]
* lisp/comint.el (comint-history-isearch-setup): Check if process is live.

Don't activate comint-history isearch when shell prompt is empty
like in all *Async Shell Command* buffers. (Bug#30187)

6 years ago* lisp/dired.el (dired-get-marked-files): Add new optional arg 'error'.
Juri Linkov [Tue, 6 Feb 2018 21:32:08 +0000 (23:32 +0200)]
* lisp/dired.el (dired-get-marked-files): Add new optional arg 'error'.

Call user-error when it's non-nil and result is empty (bug#30285).

* lisp/dired-aux.el (dired-do-chxxx, dired-do-chmod)
(dired-do-print, dired-do-async-shell-command)
(dired-do-shell-command, dired-do-compress-to)
(dired-mark-confirm, dired-do-create-files)
(dired-do-isearch, dired-do-isearch-regexp)
(dired-do-query-replace-regexp, dired-do-find-regexp):
* lisp/dired-x.el (dired-do-find-marked-files):
Set arg 'error' of dired-get-marked-files call to t.

6 years ago; Small fixes and indentation
Juri Linkov [Tue, 6 Feb 2018 21:24:42 +0000 (23:24 +0200)]
; Small fixes and indentation

6 years agoSupport occur command operating on the region from Isearch.
Juri Linkov [Tue, 6 Feb 2018 21:20:10 +0000 (23:20 +0200)]
Support occur command operating on the region from Isearch.

* lisp/isearch.el (isearch-occur): Use region-bounds as region arg of occur.
(isearch-query-replace): Use use-region-p.

* lisp/replace.el (occur--region-start-line): Rename from
occur--matches-threshold.
(occur): Use complete lines when region is active for line-oriented occur.
(occur-engine): Count lines either from occur--region-start-line or 1.

6 years agoWork around macOS faccessat bug
Paul Eggert [Tue, 6 Feb 2018 00:27:24 +0000 (16:27 -0800)]
Work around macOS faccessat bug

* src/fileio.c (file_accessible_directory_p): Append an
extra "/" to work around macOS bug in faccessat (Bug#30350).

6 years agoSupport list-matching-lines-jump-to-current-line for context lines.
Juri Linkov [Mon, 5 Feb 2018 21:54:27 +0000 (23:54 +0200)]
Support list-matching-lines-jump-to-current-line for context lines.

* lisp/replace.el (occur--orig-line-str): Remove.
(occur): Remove occur--orig-line-str.
(occur-engine): Use add-face-text-property to add the face
list-matching-lines-current-line-face to the current line.
Use previous-single-property-change to find occur--final-pos.
(occur-context-lines): New args orig-line and multi-occur-p.
Find the current line in context lines and add face to it.
(Bug#30281)

6 years agoMerge from origin/emacs-26
Glenn Morris [Mon, 5 Feb 2018 15:50:22 +0000 (07:50 -0800)]
Merge from origin/emacs-26

c787a49 (origin/emacs-26) * lisp/vc/vc-git.el (vc-git-print-log): Res...
b654791 * doc/emacs/misc.texi (Interactive Shell): Refer to node "Min...
f1102d2 Yet another round of fixing the Emacs manual
76b5a68 * etc/NEWS: Expunge the solecism "allow(s)" + infinitive
b4ff8cc Two minor fixes in Antinews
aafcd12 * etc/NEWS: Rename image-dired-thumb-job-limit
a893924 * lisp/simple.el (async-shell-command, shell-command): Fix gr...
699081f Fix deferred display of async shell-command buffers
d2d5e54 Mention remote file name completion in Emacs manual
f589f5a Yest another round of manual copyedits
1ed4089 Update xdisp.c commentary
e23de39 Fix Bug#30324
e1a9dc0 Recognize Org as builtin package (bug#30310)

Conflicts:
etc/NEWS

6 years agoFix inconsistency expanding "//" in Tramp
Michael Albinus [Mon, 5 Feb 2018 13:02:49 +0000 (14:02 +0100)]
Fix inconsistency expanding "//" in Tramp

* doc/misc/tramp.texi (File name completion): Adapt example
expanding "//".

* lisp/net/tramp.el (tramp-handle-substitute-in-file-name): "//" shall
expand the localname only, even when on top of the local part.

* test/lisp/net/tramp-tests.el (tramp-test04-substitute-in-file-name):
Adapt test.

6 years ago* lisp/vc/vc-git.el (vc-git-print-log): Restrict file scope to a single file
Juri Linkov [Sun, 4 Feb 2018 21:58:37 +0000 (23:58 +0200)]
* lisp/vc/vc-git.el (vc-git-print-log): Restrict file scope to a single file

when vc-git-print-log-follow is non-nil (bug#19045).
(vc-git-print-log-follow): Doc fix.

* etc/NEWS: Mention 'vc-git-print-log-follow'.

6 years ago* doc/emacs/misc.texi (Interactive Shell): Refer to node "Minibuffer File"
Michael Albinus [Sun, 4 Feb 2018 21:56:34 +0000 (22:56 +0100)]
* doc/emacs/misc.texi (Interactive Shell): Refer to node "Minibuffer File"

for hints how to type remote file names effectively.

6 years agoYet another round of fixing the Emacs manual
Eli Zaretskii [Sun, 4 Feb 2018 20:15:05 +0000 (22:15 +0200)]
Yet another round of fixing the Emacs manual

* doc/emacs/cmdargs.texi (Action Arguments): Rearrange text
describing what happens when Emacs is invoked with several file
arguments.  Suggested by Grant Rettke <gcr@wisdomandwonder.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/xresources.texi (GTK styles):
* doc/emacs/mini.texi (Passwords):
* doc/emacs/frames.texi (Scroll Bars): Use "cannot" instead of
"can not".

* doc/emacs/macos.texi (Mac / GNUstep Basics): Clarify the effect
of ns-right-alternate-modifier when its value is 'none'.
Suggested by Wanderson Ferreira <iagwanderson@gmail.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/calendar.texi (Importing Diary, Appointments): Now
sub-sections of Diary.
* doc/emacs/emacs.texi (Top):
* doc/emacs/calendar.texi (Diary): Adjust menus to the above
change.  Suggested by Isaac Carter <icarter1391@gmail.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/anti.texi (Antinews): Fix grammar.

6 years agoFix handling of modifier keys on macOS
Philipp Stephani [Wed, 30 Mar 2016 17:22:56 +0000 (19:22 +0200)]
Fix handling of modifier keys on macOS

* src/nsterm.m (keyDown:): Distinguish between shift-like and
control-like modifier keys.  Allow treating ⌘ as shift-like
modifier (e.g. for the Gujarati – QUERTY input method, where ⌘
switches to QUERTY.)

* lisp/cus-start.el (standard): Change nil to none for
ns-command-modifier; update description.

* etc/NEWS: Add NEWS entry.

6 years ago* etc/NEWS: Expunge the solecism "allow(s)" + infinitive
Alan Mackenzie [Sun, 4 Feb 2018 17:18:39 +0000 (17:18 +0000)]
* etc/NEWS: Expunge the solecism "allow(s)" + infinitive

6 years agoMake tramp-archive fit for older Emacsen
Michael Albinus [Sun, 4 Feb 2018 12:25:10 +0000 (13:25 +0100)]
Make tramp-archive fit for older Emacsen

* lisp/net/tramp-archive.el (tramp-archive-enabled)
(tramp-archive-file-name-handler-alist)
(tramp-archive-file-name-handler): Adapt docstring.
(tramp-register-archive-file-name-handler): Remove it from
`after-init-hook' when unloading.
(tramp-archive-gvfs-host): New defsubst.
(tramp-archive-dissect-file-name): Use it.

* lisp/net/tramp-cmds.el (tramp-cleanup-all-connections):
Check that `tramp-archive-enabled' is bound.

* test/lisp/net/tramp-archive-tests.el (tramp-archive-test42-auto-load):
Check also that tramp-archive is not loaded when Tramp is loaded.
(tramp-archive-test42-delay-load): Adapt test messages.

6 years agoTwo minor fixes in Antinews
Martin Rudalics [Sun, 4 Feb 2018 10:47:30 +0000 (11:47 +0100)]
Two minor fixes in Antinews

* doc/emacs/anti.texi (Antinews): Two minor fixes.

6 years ago* etc/NEWS: Rename image-dired-thumb-job-limit
Juri Linkov [Sat, 3 Feb 2018 21:42:55 +0000 (23:42 +0200)]
* etc/NEWS: Rename image-dired-thumb-job-limit

to image-dired-queue-active-limit (bug#30279)

6 years ago* lisp/simple.el (async-shell-command, shell-command): Fix grammar
Basil L. Contovounesios [Sat, 3 Feb 2018 21:27:13 +0000 (23:27 +0200)]
* lisp/simple.el (async-shell-command, shell-command): Fix grammar

6 years agoFix deferred display of async shell-command buffers
Basil L. Contovounesios [Sat, 3 Feb 2018 21:22:51 +0000 (23:22 +0200)]
Fix deferred display of async shell-command buffers

* lisp/simple.el (shell-command): Display async shell buffer on
process output for every, not just first, command invocation.  Check
buffer liveness, not name, before displaying. (bug#30213, bug#30280)

6 years agoMention remote file name completion in Emacs manual
Eli Zaretskii [Sat, 3 Feb 2018 20:30:03 +0000 (22:30 +0200)]
Mention remote file name completion in Emacs manual

* doc/emacs/mini.texi (Minibuffer File): Describe the behavior of
"//" with remote file names.  (Bug#29149)

6 years agoAvoid EOVERFLOW problems with file-directory-p
Paul Eggert [Sat, 3 Feb 2018 20:10:19 +0000 (12:10 -0800)]
Avoid EOVERFLOW problems with file-directory-p

This fixes a bug where (file-directory-p FOO) would fail if FOO
had an inode number out of range for ‘stat’.
* src/fileio.c (file_directory_p): Accept a Lisp string instead of
a C string.  All callers changed.  On non-MS-Windows hosts, use
openat with O_PATH|O_DIRECTORY if available, otherwise
file_accessible_directory_p unless it fails due to EACCESS,
otherwise stat.

6 years agoAdd tests to verify error propagation in 'json-insert'.
Philipp Stephani [Sat, 3 Feb 2018 20:14:59 +0000 (21:14 +0100)]
Add tests to verify error propagation in 'json-insert'.

* test/src/json-tests.el (json-tests--error): New error symbol.
(json-insert/signal, json-insert/throw): New tests.

6 years agoDon't require all file-attributes to be equal (Bug#30327)
Noam Postavsky [Sat, 3 Feb 2018 05:44:45 +0000 (00:44 -0500)]
Don't require all file-attributes to be equal (Bug#30327)

* test/lisp/files-tests.el (files-tests-file-attributes-equal): New
function.
(files-tests-file-name-non-special-directory-files-and-attributes)
(files-tests-file-name-non-special-file-attributes): Use it instead of
`equal'.

6 years ago* test/lisp/files-tests.el (files-tests--with-temp-non-special):
Michael Albinus [Sat, 3 Feb 2018 19:08:29 +0000 (20:08 +0100)]
* test/lisp/files-tests.el (files-tests--with-temp-non-special):

Expand `temporary-file-directory' by `file-truename', in case
it is located on a symlinked directory.  (Bug#30327)

6 years agoPrevent loading tramp-archive when it cannot be used
Michael Albinus [Sat, 3 Feb 2018 17:49:56 +0000 (18:49 +0100)]
Prevent loading tramp-archive when it cannot be used

* lisp/files.el (locate-dominating-file): Check, that FILE is
a directory when traversing the tree.

* lisp/net/tramp-archive.el (tramp-archive-enabled): New defvar.
(tramp-archive-file-name-regexp): Protect against errors.
(tramp-archive-file-name-handler)
(tramp-register-archive-file-name-handler): Use it.
(all) Call `tramp-register-archive-file-name-handler'.

* lisp/net/tramp.el (tramp-register-file-name-handlers):
Use `tramp-archive-enabled'.

* test/lisp/net/tramp-archive-tests.el (all):
Use `tramp-archive-enabled' instead of `tramp-gvfs-enabled'.
(tramp-archive--test-emacs27-p): New defun.
(tramp-archive-test42-auto-load): Skip for older Emacsen.
(tramp-archive-test42-delay-load): Skip for older Emacsen.
Test also behavior when `tramp-archive-enabled' is nil.

6 years ago; Fix arglist doc of json parse functions
Basil L. Contovounesios [Tue, 30 Jan 2018 11:10:14 +0000 (11:10 +0000)]
; Fix arglist doc of json parse functions

* src/json.c (Fjson_parse_string, Fjson_parse_buffer):
Fix "usage:" arglist doc.

6 years agoAutoload tramp-archive
Michael Albinus [Sat, 3 Feb 2018 12:22:56 +0000 (13:22 +0100)]
Autoload tramp-archive

* doc/misc/tramp.texi (Archive file names): Do not require to
load Tramp explicitly, this is autoloaded now also for file archives.

* lisp/net/tramp-archive.el (tramp-archive-suffixes)
(tramp-archive-compression-suffixes): Autoload them.
(tramp-archive-autoload-file-name-regexp): New defmacro.
(tramp-archive-file-name-regexp): Use it.
(tramp-register-archive-file-name-handler): New defun.  Call
it in `after-init-hook'.

* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test40-file-system-info): Rename from
`tramp-archive-test40-archive-file-system-info.
(tramp-archive-test42-auto-load)
(tramp-archive-test42-delay-load): New tests.

6 years agoYest another round of manual copyedits
Eli Zaretskii [Sat, 3 Feb 2018 11:50:38 +0000 (13:50 +0200)]
Yest another round of manual copyedits

* doc/emacs/fixit.texi (Transpose, Spelling): Minor stylistic
changes.  Suggested by myq larson <myqlarson@gmail.com> in
emacs-manual-bugs@gnu.org.

* doc/emacs/calendar.texi (Appointments, Time Intervals): Mention
relevant Org features.  Suggested by Alex Branham
<alex.branham@gmail.com> in emacs-manual-bugs@gnu.org.

* doc/emacs/dired.texi (Operating on Files)
(Shell Commands in Dired, Image-Dired): Minor stylistic edits.
Suggested by Francis Wright <f.j.wright@live.co.uk> in
emacs-manual-bugs@gnu.org.

* doc/emacs/commands.texi (User Input): Explain "C-M-a".
Suggested by Martin Luethi <martin.luethi@geo.uzh.ch> in
emacs-manual-bugs@gnu.org.

6 years agoUpdate xdisp.c commentary
Eli Zaretskii [Sat, 3 Feb 2018 10:19:41 +0000 (12:19 +0200)]
Update xdisp.c commentary

* src/xdisp.c: Update commentary regarding "asynchronous" entry
into redisplay.  (Bug#30182)

6 years agoFix Bug#30324
Michael Albinus [Sat, 3 Feb 2018 10:08:33 +0000 (11:08 +0100)]
Fix Bug#30324

* lisp/net/rlogin.el (rlogin, rlogin-directory-tracking-mode):
Adapt to changed remote file name syntax.  (Bug#30324)

6 years agoRecognize Org as builtin package (bug#30310)
Glenn Morris [Sat, 3 Feb 2018 02:08:22 +0000 (21:08 -0500)]
Recognize Org as builtin package (bug#30310)

* lisp/org/org.el: Add Version header so detected as builtin package.
* test/lisp/org/org-tests.el: New file.

6 years ago; * autogen.sh (check_version): Improve previous change.
Glenn Morris [Sat, 3 Feb 2018 01:58:34 +0000 (20:58 -0500)]
; * autogen.sh (check_version): Improve previous change.

6 years agoTry to work around intermittent autogen failure on hydra.nixos.org
Glenn Morris [Sat, 3 Feb 2018 01:42:08 +0000 (20:42 -0500)]
Try to work around intermittent autogen failure on hydra.nixos.org

* autogen.sh (check_version): Try to handle odd systems where
/bin/sh does not define the "command" builtin.

6 years ago; * autogen.sh: Remove temporary debug statements.
Glenn Morris [Sat, 3 Feb 2018 00:46:17 +0000 (19:46 -0500)]
; * autogen.sh: Remove temporary debug statements.

6 years ago; * autogen.sh: Add some temporary debug statements.
Glenn Morris [Sat, 3 Feb 2018 00:45:24 +0000 (19:45 -0500)]
; * autogen.sh: Add some temporary debug statements.