Juri Linkov [Tue, 6 Feb 2018 21:24:42 +0000 (23:24 +0200)]
; Small fixes and indentation
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.
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).
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)
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
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.
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'.
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.
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.
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.
Alan Mackenzie [Sun, 4 Feb 2018 17:18:39 +0000 (17:18 +0000)]
* etc/NEWS: Expunge the solecism "allow(s)" + infinitive
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.
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.
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)
Basil L. Contovounesios [Sat, 3 Feb 2018 21:27:13 +0000 (23:27 +0200)]
* lisp/simple.el (async-shell-command, shell-command): Fix grammar
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)
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)
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.
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.
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'.
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)
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.
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.
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.
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.
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)
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)
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.
Glenn Morris [Sat, 3 Feb 2018 01:58:34 +0000 (20:58 -0500)]
; * autogen.sh (check_version): Improve previous change.
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.
Glenn Morris [Sat, 3 Feb 2018 00:46:17 +0000 (19:46 -0500)]
; * autogen.sh: Remove temporary debug statements.
Glenn Morris [Sat, 3 Feb 2018 00:45:24 +0000 (19:45 -0500)]
; * autogen.sh: Add some temporary debug statements.
Glenn Morris [Sat, 3 Feb 2018 00:11:52 +0000 (19:11 -0500)]
; * autogen.sh: Remove temporary debug statements.
Glenn Morris [Sat, 3 Feb 2018 00:09:49 +0000 (19:09 -0500)]
; * autogen.sh: Add some temporary debug statements.
Glenn Morris [Fri, 2 Feb 2018 23:45:42 +0000 (18:45 -0500)]
* autogen.sh: Remove temporary debug statements.
Glenn Morris [Fri, 2 Feb 2018 23:44:36 +0000 (18:44 -0500)]
* autogen.sh: Add some temporary debug statements, for hydra.nixos.org.
Noam Postavsky [Fri, 2 Feb 2018 23:12:00 +0000 (18:12 -0500)]
; Merge from emacs-26
4c8157cfe0 ; Let files-tests.el pass multiple times in a session
99251ab62e ; Avoid process kill query during term tests
Noam Postavsky [Thu, 31 Aug 2017 08:57:43 +0000 (04:57 -0400)]
; Let files-tests.el pass multiple times in a session
* test/lisp/files-tests.el (files-test-local-variables): Use `cl-letf'
instead of advice. The advice was not being activated on the second
run.
Noam Postavsky [Fri, 2 Feb 2018 02:12:09 +0000 (21:12 -0500)]
; Avoid process kill query during term tests
* test/lisp/term-tests.el (term-test-screen-from-input): Just unset
the process query-on-exit flag to rather than trying to end the
process before the end of test (which is generally unreliable).
Alan Mackenzie [Fri, 2 Feb 2018 20:46:35 +0000 (20:46 +0000)]
CC Mode: Fix an enum intro being parsed as defun-block-intro
* lisp/progmodes/cc-engine.el (c-inside-bracelist-p): Return a bufpos rather
than t for the enum case.
(c-add-stmt-syntax, c-guess-continued-construct): Replace
c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p, since the former
does not recognize enum brace lists, but the latter does.
* lisp/progmodes/cc-fonts.el (c-get-fontification-context): Replace
c-looking-at-or-maybe-in-bracelist by c-inside-bracelist-p.
Philipp Stephani [Sun, 28 Jan 2018 20:36:03 +0000 (21:36 +0100)]
Properly integrate modules into the loading process (Bug#30164).
* src/lread.c (Fload): Don't defer to module-load immediately when
encountering a module, but use the normal loading machinery to
properly set up load-history, check for recursive loads, print
messages, etc.
* test/src/emacs-module-tests.el (module/load-history): New test.
(module/describe-function-1): Adapt test.
* etc/NEWS: Mention fixed behavior.
Philipp Stephani [Fri, 2 Feb 2018 19:40:10 +0000 (20:40 +0100)]
Use 'defalias' in test module instead of 'fset'.
This puts functions defined in the module into the 'load-history'.
* test/data/emacs-module/mod-test.c (bind_function): Use 'defalias'
instead of 'fset'.
* test/src/emacs-module-tests.el (module/describe-function-1): Adapt
unit test.
Philipp Stephani [Sun, 28 Jan 2018 20:57:59 +0000 (21:57 +0100)]
Add support for module functions to C-h f (Bug#30163).
* lisp/help-fns.el (help-fns-function-description-header): Handle
module functions.
* test/src/emacs-module-tests.el (module/describe-function-1): New
test.
Michael Albinus [Fri, 2 Feb 2018 17:51:25 +0000 (18:51 +0100)]
Handle quoted remote file names for file notifications
* lisp/filenotify.el (file-notify-add-watch): Do not suppress
other file name handlers when FILE is quoted.
* test/lisp/filenotify-tests.el
(file-notify-test-remote-temporary-file-directory):
Beware quoted `temporary-file-directory'.
* test/lisp/files-tests.el
(files-tests-file-name-non-special-quote-unquote): Improve test.
Michael Albinus [Fri, 2 Feb 2018 16:06:22 +0000 (17:06 +0100)]
Minor tweaks in tramp-archive.el
* lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
Bind `tramp-unknown-id-integer' and `tramp-unknown-id-string'
in order to have minimal ownership information.
Glenn Morris [Fri, 2 Feb 2018 15:50:22 +0000 (07:50 -0800)]
Merge from origin/emacs-26
6f495ab (origin/emacs-26) Another round of manual fixups
59344c4 * doc/lispref/customize.texi (Custom Themes): Clarify .el pre...
6386efc * doc/emacs/entering.texi (Entering Emacs): Another wording fix.
e21f018 * doc/lispref/functions.texi (Inline Functions): Fix typo (Bu...
1c2fb04 * lisp/imenu.el (imenu-generic-expression): Rephrase doc (Bug...
b90e91c Fix last change of @key markup
f180075 * doc/emacs/entering.texi (Entering Emacs): Fix markup.
Glenn Morris [Fri, 2 Feb 2018 15:50:22 +0000 (07:50 -0800)]
; Merge from origin/emacs-26
The following commits were skipped:
01932c8 Revert
a1bbc49015 (Bug#30243), do not merge
855ae57 ; Auto-commit of loaddefs files.
Glenn Morris [Fri, 2 Feb 2018 15:50:22 +0000 (07:50 -0800)]
Merge from origin/emacs-26
56c37bb Use @key{} where it is missing in the manuals
25c0198 Another round of manual fixes from proofreading
Eli Zaretskii [Fri, 2 Feb 2018 15:41:38 +0000 (17:41 +0200)]
Another round of manual fixups
* doc/emacs/killing.texi (Killing by Lines): Clarify wording.
Reported by David Bonnafous <dbonnafo@gmail.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/windows.texi (Other Window): Improve wording.
Reported by Rasmus Sjostrom <ras.sjostrom@gmail.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/display.texi (Display Custom): Mention that line
numbers are not displayed in the minibuffer and tooltips.
* doc/emacs/mini.texi (Basic Minibuffer): Improve wording.
* doc/emacs/regs.texi (Registers): More comma removal. Suggested
by "root@vxid.pw root@vxid.pw" <root@vxid.pw> in
emacs-manual-bugs@gnu.org.
* doc/emacs/display.texi (Auto Scrolling): Fix a typo. Reported
by Kevin Foley <kfoley15@gmail.com> in emacs-manual-bugs@gnu.org.
* doc/emacs/display.texi (Scrolling): Fix grammar.
(Horizontal Scrolling): Mention reasonable limits for hscroll-step
float values. Suggested by Jerome Truong <jerometruong@gmail.com>
in emacs-manual-bugs@gnu.org.
* doc/emacs/mini.texi (Minibuffer Edit): Add a missing comma.
* doc/emacs/basic.texi (Position Info, Arguments, Repeating):
Remove redundant commas. Suggested by oldgaro
<oldgaro@protonmail.com> in emacs-manual-bugs@gnu.org.
* doc/emacs/kmacro.texi (Save Keyboard Macro): Clarify wording.
Suggested by clemens.radermacher@posteo.de in
emacs-manual-bugs@gnu.org.
* doc/emacs/building.texi (Compilation Mode): Improve and simplify
wording. Suggested by drone <yoorobot@gmail.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/dired.texi (Dired Enter): Clarify wording.
(Dired Deletion): Fix a typo.
(Marks vs Flags): Mention that M-DEL in Dired asks for the mark
character. Fix typos.
* doc/emacs/basic.texi (Moving Point, Erasing, Basic Undo)
(Arguments): Some additional information about keys. Reported by
Francis Wright <f.j.wright@live.co.uk> in
emacs-manual-bugs@gnu.org.
Stefan Monnier [Fri, 2 Feb 2018 15:28:34 +0000 (10:28 -0500)]
* lisp/emacs-lisp/cconv.el (cconv-convert): Fix compiling compiled code
Don't conv-convert the docstring arg of defvar/defconst.
Basil L. Contovounesios [Fri, 2 Feb 2018 14:22:53 +0000 (09:22 -0500)]
* doc/lispref/customize.texi (Custom Themes): Clarify .el preference.
Copyright-paperwork-exempt: yes
https://lists.gnu.org/archive/html/emacs-devel/2018-01/msg00824.html.
Michael Albinus [Fri, 2 Feb 2018 13:33:33 +0000 (14:33 +0100)]
Fix quoting in tramp-find-inline-compress for w32
* lisp/net/tramp-sh.el (tramp-find-inline-compress): Improve command
quoting for w32. Reported by Chris Zheng <chriszheng99@gmail.com>.
Eli Zaretskii [Fri, 2 Feb 2018 09:18:38 +0000 (11:18 +0200)]
* doc/emacs/entering.texi (Entering Emacs): Another wording fix.
Michael Albinus [Fri, 26 Jan 2018 10:57:41 +0000 (11:57 +0100)]
Handle quoted file names in filenotify.el
* lisp/filenotify.el (file-notify-add-watch): Do not save
quoted file names in `file-notify-descriptors'.
* test/lisp/files-tests.el
(files-file-name-non-special-notify-handlers): Do not expect
to fail.
Michael Albinus [Sun, 28 Jan 2018 19:12:25 +0000 (20:12 +0100)]
Use file-name-quote{,d-p} in files-tests.el
* test/lisp/files-tests.el
(files-tests-file-name-non-special-quote-unquote): New test.
(files-tests--file-name-non-special--subprocess): Simplify.
(files-tests--file-name-non-special--buffers)
(files-tests--with-temp-non-special)
(files-tests-file-name-non-special-directory-file-name)
(files-tests-file-name-non-special-file-in-directory-p)
(files-tests-file-name-non-special-file-name-all-completions)
(files-tests-file-name-non-special-file-name-as-directory)
(files-tests-file-name-non-special-file-name-completion)
(files-tests-file-name-non-special-file-name-directory)
(files-tests-file-name-non-special-find-backup-file-name)
(files-tests-file-name-non-special-make-nearby-temp-file):
Use `file-name-quote' and `file-name-quoted-p', respectively.
Noam Postavsky [Thu, 25 Jan 2018 05:37:50 +0000 (00:37 -0500)]
Test and fix "/:" quoted file name handlers (Bug#30243)
Some w32 specific problems were discovered, but only worked around, as
these are not serious, and not the focus of this bug fix:
- The w32 implementation of `insert-directory doesn't handle a nil
SWITCHES argument.
- `dired-compress-file' does not operate correctly if the unquoted
filename contains a ":" (e.g., C:/foo/bar).
* lisp/files.el (file-name-non-special): Strip the "/:" from
`default-directory' for `temporary-file-directory' operation; both
arguments to `file-name-completion', `file-name-all-completion', and
`file-equal-p' operations; `buffer-file-name' for
`make-auto-save-file-name' and 'set-visited-file-modtime' operations.
Don't touch any operands of `file-notify-rm-watch' and
`file-notify-valid-p' as they receive descriptors; not file
names (this is not sufficient to fix these operations for "/:" quoted
file names though, these are fixed in a later commit).
* test/lisp/files-tests.el (files-tests--with-temp-file): Give it a
`debug' property.
(files-tests--with-temp-non-special): New helper macro.
(files-tests--file-name-non-special--subprocess): Simplify.
(files-tests-file-name-non-special-quote-unquote)
(files-file-name-non-special-notify-handlers)
(files-file-name-non-special-handlers)
(files-tests-file-name-non-special-access-file)
(files-tests-file-name-non-special-add-name-to-file)
(files-tests-file-name-non-special-byte-compiler-base-file-name)
(files-tests-file-name-non-special-copy-directory)
(files-tests-file-name-non-special-copy-file)
(files-tests-file-name-non-special-delete-directory)
(files-tests-file-name-non-special-delete-file)
(files-tests-file-name-non-special-diff-latest-backup-file)
(files-tests-file-name-non-special-directory-file-name)
(files-tests-file-name-non-special-directory-files)
(files-tests-file-name-non-special-directory-files-and-attributes)
(files-tests-file-name-non-special-dired-uncache)
(files-tests-file-name-non-special-dired-compress-handler)
(files-tests-file-name-non-special-expand-file-name)
(files-tests-file-name-non-special-file-accessible-directory-p)
(files-tests-file-name-non-special-file-acl)
(files-tests-file-name-non-special-file-attributes)
(files-tests-file-name-non-special-file-directory-p)
(files-tests-file-name-non-special-file-equal-p)
(files-tests-file-name-non-special-file-executable-p)
(files-tests-file-name-non-special-file-exists-p)
(files-tests-file-name-non-special-file-in-directory-p)
(files-tests-file-name-non-special-file-local-copy)
(files-tests-file-name-non-special-file-modes)
(files-tests-file-name-non-special-file-name-all-completions)
(files-tests-file-name-non-special-file-name-as-directory)
(files-tests-file-name-non-special-file-name-case-insensitive-p)
(files-tests-file-name-non-special-file-name-completion)
(files-tests-file-name-non-special-file-name-directory)
(files-tests-file-name-non-special-file-name-nondirectory)
(files-tests-file-name-non-special-file-name-sans-versions)
(files-tests-file-name-non-special-file-newer-than-file-p)
(files-tests-file-name-non-special-file-ownership-preserved-p)
(files-tests-file-name-non-special-file-readable-p)
(files-tests-file-name-non-special-file-regular-p)
(files-tests-file-name-non-special-file-remote-p)
(files-tests-file-name-non-special-file-selinux-context)
(files-tests-file-name-non-special-file-symlink-p)
(files-tests-file-name-non-special-file-truename)
(files-tests-file-name-non-special-file-writable-p)
(files-tests-file-name-non-special-find-backup-file-name)
(files-tests-file-name-non-special-get-file-buffer)
(files-tests-file-name-non-special-insert-directory)
(files-tests-file-name-non-special-insert-file-contents)
(files-tests-file-name-non-special-load)
(files-tests-file-name-non-special-make-auto-save-file-name)
(files-tests-file-name-non-special-make-directory)
(files-tests-file-name-non-special-make-directory-internal)
(files-tests-file-name-non-special-make-nearby-temp-file)
(files-tests-file-name-non-special-make-symbolic-link)
(files-tests-file-name-non-special-rename-file)
(files-tests-file-name-non-special-set-file-acl)
(files-tests-file-name-non-special-set-file-modes)
(files-tests-file-name-non-special-set-file-selinux-context)
(files-tests-file-name-non-special-set-file-times)
(files-tests-file-name-non-special-set-visited-file-modtime)
(files-tests-file-name-non-special-shell-command)
(files-tests-file-name-non-special-start-file-process)
(files-tests-file-name-non-special-substitute-in-file-name)
(files-tests-file-name-non-special-temporary-file-directory)
(files-tests-file-name-non-special-unhandled-file-name-directory)
(files-tests-file-name-non-special-vc-registered)
(files-tests-file-name-non-special-write-region): New tests.
Noam Postavsky [Wed, 31 Jan 2018 04:02:05 +0000 (23:02 -0500)]
* doc/lispref/functions.texi (Inline Functions): Fix typo (Bug#30238).
Noam Postavsky [Wed, 31 Jan 2018 03:58:21 +0000 (22:58 -0500)]
* lisp/imenu.el (imenu-generic-expression): Rephrase doc (Bug#30294).
Eli Zaretskii [Thu, 1 Feb 2018 17:56:51 +0000 (19:56 +0200)]
Fix last change of @key markup
* doc/lispref/display.texi (Specified Space):
* doc/emacs/programs.texi (C Modes):
* doc/emacs/killing.texi (Rectangles):
* doc/emacs/emacs.texi (Top):
* doc/emacs/display.texi (Useless Whitespace): Don't use @key
markup for characters and commands, only for keys.
Eli Zaretskii [Thu, 1 Feb 2018 17:49:18 +0000 (19:49 +0200)]
* doc/emacs/entering.texi (Entering Emacs): Fix markup.
Paul Eggert [Thu, 1 Feb 2018 17:20:13 +0000 (09:20 -0800)]
Update from gnulib
This includes:
2018-01-31 environ: Fix link error on 64-bit Cygwin
2018-01-27 Fix malfunction of socket functions on HP-UX in 64-bit mode
2018-01-26 manywarnings: fix maintainer comment
2018-01-23 Merge strftime.c changes from glibc
* build-aux/config.guess, build-aux/config.sub, doc/misc/texinfo.tex:
* lib/gnulib.mk.in, lib/nstrftime.c, lib/unistd.in.h, m4/extensions.m4:
* m4/manywarnings.m4: Update.
Paul Eggert [Thu, 1 Feb 2018 17:10:55 +0000 (09:10 -0800)]
* src/xfns.c: Make some non-exported vars static.
Michael Albinus [Thu, 1 Feb 2018 14:50:10 +0000 (15:50 +0100)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Michael Albinus [Thu, 1 Feb 2018 14:49:18 +0000 (15:49 +0100)]
Adapt tramp-tests.el according to Bug#30243
* test/lisp/net/tramp-tests.el (tramp--test-emacs27-p): New defun.
(tramp-test11-copy-file, tramp-test12-rename-file)
(tramp-test21-file-links, tramp-test24-file-acl)
(tramp-test25-file-selinux, tramp--test-check-files): Use it.
Michael Albinus [Thu, 1 Feb 2018 14:00:18 +0000 (15:00 +0100)]
Revert
a1bbc49015 (Bug#30243), do not merge
* lisp/files.el:
* test/lisp/net/tramp-tests.el: Revert
a1bbc49015. (Bug#30243)
Glenn Morris [Thu, 1 Feb 2018 12:27:10 +0000 (07:27 -0500)]
; Auto-commit of loaddefs files.
Glenn Morris [Thu, 1 Feb 2018 11:27:00 +0000 (06:27 -0500)]
; Auto-commit of loaddefs files.
Michael Albinus [Thu, 1 Feb 2018 07:53:08 +0000 (08:53 +0100)]
* lisp/files.el (get-free-disk-space): Wrap body with `save-match-data'.
Several `*-insert-directory' functions could fail otherwise.
Michael Albinus [Thu, 1 Feb 2018 07:40:46 +0000 (08:40 +0100)]
* lisp/net/tramp-archive.el (tramp-archive-run-real-handler): New defun.
(tramp-archive-file-name-handler): Use it.
Glenn Morris [Wed, 31 Jan 2018 21:15:01 +0000 (16:15 -0500)]
automerge: adjust meaning of -d option
* admin/automerge (nocd): New variable, replacing $dir.
(usage, -d): Option -d no longer takes an argument.
Glenn Morris [Wed, 31 Jan 2018 20:05:14 +0000 (15:05 -0500)]
automerge: add option to work in specific directory
* admin/automerge (usage): Mention -d.
(dir): New variable.
(-d): New option.
(main): If requested, cd to specified directory.
Michael Albinus [Wed, 31 Jan 2018 18:59:12 +0000 (19:59 +0100)]
Use @key{} where it is missing in the manuals
Glenn Morris [Wed, 31 Jan 2018 17:54:26 +0000 (12:54 -0500)]
automerge: add option to start with a reset
* admin/automerge (usage): Mention -r.
(reset): New variable.
(-r): New option.
(main): If requested, do a reset and pull.
Eli Zaretskii [Wed, 31 Jan 2018 16:23:17 +0000 (18:23 +0200)]
Another round of manual fixes from proofreading
* doc/emacs/search.texi (Incremental Search)
(Nonincremental Search): Mention the menu bar and fix typos.
Reported by David Bonnafous <dbonnafo@gmail.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/building.texi (Compilation): Improve wording.
Suggested by drone <yoorobot@gmail.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/kmacro.texi (Basic Keyboard Macro): Clarify text.
Suggested by Robert Pluim <rpluim@gmail.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/display.texi (Highlight Interactively, Fringes):
Improve wording. Suggested by Justin Heyes-Jones
<justinhj@gmail.com> in emacs-manual-bugs@gnu.org.
* doc/emacs/commands.texi (User Input, Commands): Add missing
commas.
* doc/emacs/screen.texi (Menu Bar): Mention keyboard keys to
navigate menus. Suggested by oldgaro <oldgaro@protonmail.com> in
emacs-manual-bugs@gnu.org.
* doc/emacs/search.texi (Not Exiting Isearch): Fix a typo.
Reported by "Kocken, I.J. (Ilja)" <I.J.Kocken@uu.nl> in
emacs-manual-bugs@gnu.org.
* doc/emacs/basic.texi (Inserting Text): Mention one more label of
RET. Suggested by Francis Wright <f.j.wright@live.co.uk> in
emacs-manual-bugs@gnu.org.
* doc/emacs/text.texi (Paragraphs): Clarify text. Reported by
Marcin Borkowski <mbork@mbork.pl> in emacs-manual-bugs@gnu.org.
* doc/emacs/maintaining.texi (Introduction to VC)
(Why Version Control?, VCS Merging): Fix typos and section
capitalization. Suggested by "R. P. Dillon"
<rpdillon@killring.org> in emacs-manual-bugs@gnu.org.
* doc/emacs/modes.texi (Major Modes, Choosing Modes): Fix typos.
Reported by clemens.radermacher@posteo.de in
emacs-manual-bugs@gnu.org.
Glenn Morris [Wed, 31 Jan 2018 15:50:23 +0000 (07:50 -0800)]
Merge from origin/emacs-26
22922c7 (origin/emacs-26) * doc/emacs/entering.texi (Entering Emacs):...
59657c4 Document 'window-at-side-p' in the Elisp manual
2b35ed0 Document external-debugging-output in the Elisp Manual (Bug#2...
db6564c Fix scroll-margin docstring (Bug#13791)
732d1b9 Clarify that `ansi-term' is almost the same as `term' (Bug#18...
f706c59 Update manual description of locate-file (Bug#23650)
1602262 Clarify effect of print-gensym (Bug#27776)
53e9fa2 * lisp/custom.el (defcustom): Fix docstring (Bug#27891).
607cc4e Define cl-type-definition button type as needed (Bug#28899)
9e6889c Emphasize that GPG passphrase caching is temporary (Bug#29907)
4b5711b Fix @examples in cc-mode.info, where lines were getting glued...
71961f1 Minor change in "Mode Line" section of Emacs manual
55a2b76 More fixes in the Emacs manual
Eli Zaretskii [Wed, 31 Jan 2018 14:52:12 +0000 (16:52 +0200)]
* doc/emacs/entering.texi (Entering Emacs): Fix last change.
Michael Albinus [Wed, 31 Jan 2018 14:02:46 +0000 (15:02 +0100)]
Fix Bug#30293
* lisp/net/tramp-archive.el (tramp-archive-file-name-for-operation):
New defsubst.
(tramp-archive-file-name-archive, tramp-archive-file-name-localname):
New defuns.
(tramp-archive-file-name-handler, tramp-archive-dissect-file-name)
(tramp-archive-handle-not-implemented): Use them. (Bug#30293)
* test/lisp/net/tramp-archive-tests.el (tramp-archive-test-directory):
New defconst.
(tramp-archive-test01-file-name-syntax): Extend test.
(tramp-archive-test05-expand-file-name-non-archive-directory):
New test. (Bug#30293)
* test/lisp/net/tramp-archive-resources/foo.iso/foo: New file.
Martin Rudalics [Wed, 31 Jan 2018 08:35:15 +0000 (09:35 +0100)]
Document 'window-at-side-p' in the Elisp manual
* doc/lispref/windows.texi (Windows and Frames): Document
'window-at-side-p'.
Noam Postavsky [Sun, 28 Jan 2018 23:16:48 +0000 (18:16 -0500)]
Document external-debugging-output in the Elisp Manual (Bug#24051)
* doc/lispref/streams.texi (Output Streams): List
external-debugging-output.
* src/print.c (Fexternal_debugging_output): Quote `print' in
docstring.
Noam Postavsky [Mon, 29 Jan 2018 23:49:46 +0000 (18:49 -0500)]
Fix scroll-margin docstring (Bug#13791)
* src/xdisp.c (syms_of_xdisp) <scroll-margin>: Explain that entering
the margin may trigger any sort of auto scrolling, not recentering
specifically.
Noam Postavsky [Mon, 29 Jan 2018 01:17:43 +0000 (20:17 -0500)]
Clarify that `ansi-term' is almost the same as `term' (Bug#18106)
* lisp/term.el (ansi-term): Clarify that it's almost the same as `term'.
Noam Postavsky [Sun, 28 Jan 2018 22:51:35 +0000 (17:51 -0500)]
Update manual description of locate-file (Bug#23650)
* doc/lispref/files.texi (Locating Files): Add example of predicate
when searching for a directory.
Noam Postavsky [Sun, 28 Jan 2018 21:57:11 +0000 (16:57 -0500)]
Clarify effect of print-gensym (Bug#27776)
* src/print.c (syms_of_print) <print-gensym>: Clarify that use of #N#
and #N= constructs depends on the value of `print-circle'.
Noam Postavsky [Sun, 28 Jan 2018 21:53:50 +0000 (16:53 -0500)]
* lisp/custom.el (defcustom): Fix docstring (Bug#27891).
Noam Postavsky [Sun, 28 Jan 2018 18:59:06 +0000 (13:59 -0500)]
Define cl-type-definition button type as needed (Bug#28899)
* lisp/emacs-lisp/eieio-opt.el (eieio-help-constructor): Require
`cl-extra' before using the `cl-type-definition' button type.
Noam Postavsky [Sun, 28 Jan 2018 17:34:51 +0000 (12:34 -0500)]
Emphasize that GPG passphrase caching is temporary (Bug#29907)
* doc/misc/epa.texi (Caching Passphrases): Clarify that caching is
temporary.
(GnuPG version compatibility): Fix typo.
Glenn Morris [Wed, 31 Jan 2018 02:43:28 +0000 (21:43 -0500)]
automerge: handle upstream changes during operation
* admin/automerge (merge): New function, split from pre-existing code.
(main): If upstream changed during building and testing,
reset local and try merging again.
Stefan Monnier [Tue, 30 Jan 2018 22:37:20 +0000 (17:37 -0500)]
* test/lisp/mouse-tests.el: Fix tests broken by mouse.el change
* test/lisp/mouse-tests.el (bug23288-use-return-value)
(bug23288-translate-to-mouse-2): Don't rely as much on details of the
implementation, so it also works with the new code.
Michael Albinus [Tue, 30 Jan 2018 19:09:20 +0000 (20:09 +0100)]
Simplify last change in tramp-archive
Alan Mackenzie [Tue, 30 Jan 2018 18:09:49 +0000 (18:09 +0000)]
Fix @examples in cc-mode.info, where lines were getting glued together.
This happened because of false @c's in macro lines.
* /doc/misc/cc-mode.texi (Line-up Functions): Remove the unneeded @c from
macros sssTBasicOffset, sssTsssTBasicOffset, and hereFn.
Stefan Monnier [Tue, 30 Jan 2018 17:41:29 +0000 (12:41 -0500)]
* lisp/mouse.el: Rework the mouse-1-click remapping
Avoid peeking ahead at the next event because this had undesirable effects,
such as making 'this-single-command-raw-keys' return bogus information.
(mouse--last-down): New variable.
(mouse--down-1-maybe-follows-link): Don't do the remapping here.
Instead, just keep track of the time when the down happened.
(mouse--down-1-maybe-follows-link): Do the remapping here.
(key-translation-map): Add bindings for (double-)mouse-1.
Stefan Monnier [Tue, 30 Jan 2018 16:57:40 +0000 (11:57 -0500)]
* lisp/help.el: Rework describe-key's handling of up and double clicks
Use lexical-binding.
(help--binding-undefined-p): New function, extracted from help--analyze-key.
(help--analyze-key): Use it.
(help--filter-info-list): New function.
(describe-key-briefly): Change calling convention.
Handle a list of key sequences now.
(help--binding-locus): Remove unused var 'found'.
(help--read-key-sequence): Rename from help-read-key-sequence.
Almost complete rewrite, with a different return value.
(help-downify-mouse-event-type): Remove.
(describe-key): Change calling convention.
Handle a list of key sequences now.
Michael Albinus [Tue, 30 Jan 2018 16:34:02 +0000 (17:34 +0100)]
Fix Bug#30262
* lisp/net/tramp-archive.el (tramp-archive-hash): Document (changed)
layout.
(tramp-archive-dissect-file-name): Merge with
`tramp-archive-local-copy', which has been removed by this.
(tramp-archive-cleanup-hash): Adapt to changed
`tramp-archive-hash'. (Bug#30262)
* lisp/net/tramp-gvfs.el (tramp-gvfs-unmount): Flush
connection properties.
* test/lisp/net/tramp-archive-tests.el
(tramp-archive-test01-file-name-syntax)
(tramp-archive-test02-file-name-dissect)
(tramp-archive-test16-directory-files)
(tramp-archive-test26-file-name-completion): Adapt to changed
test file.
(tramp-archive-test08-file-local-copy): Be more robust in cleanup.
* test/lisp/net/tramp-archive-resources/foo.tar.gz: Adapt to
extended test.
Eli Zaretskii [Tue, 30 Jan 2018 16:24:08 +0000 (18:24 +0200)]
Minor change in "Mode Line" section of Emacs manual
* doc/emacs/screen.texi (Mode Line): Mention tooltips shown when
hovering the mouse over the mode line. Suggested by Eduardo
Mercovich <eduardo@mercovich.net> in emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 16:09:28 +0000 (18:09 +0200)]
More fixes in the Emacs manual
* doc/emacs/screen.texi (Mode Line): Fix markup and
cross-references.
(Menu Bar): Correct inaccurate description.
* doc/emacs/macos.texi (Mac OS / GNUstep, Mac / GNUstep Events):
* doc/emacs/frames.texi (Scroll Bars):
* doc/emacs/emacs.texi (Top):
* doc/emacs/ack.texi (Acknowledgments): Fix spelling of "macOS".
* doc/emacs/misc.texi (Invoking emacsclient)
(emacsclient Options): Fix markup of 'emacsclient'. Suggested by
Michael Albinus <michael.albinus@gmx.de> in
emacs-manual-bugs@gnu.org.
Glenn Morris [Tue, 30 Jan 2018 15:50:25 +0000 (07:50 -0800)]
Merge from origin/emacs-26
bc8dc37 (origin/emacs-26) Minor copyedits in "Distribution" chapter o...
1c7a936 Minor copyedits in "Entering" chapter of Emacs manual.
1d4498b Minor wording change in the Emacs manual
2bf49e7 Fix a typo in the Emacs manual
f3546a2 Improve the "Basic" chapter of the Emacs manual
691431e Resurrect lost text in lispref
956807b * lisp/emacs-lisp/rx.el (rx): Fix the definition of 'blank'.
7d90d2e Proofread os.texi and files.texi
490c736 Minor improvements in the "International" chapter of Emacs ma...
79252d3 Minor improvement in "Text" chapter of Emacs manual
Eli Zaretskii [Tue, 30 Jan 2018 15:30:26 +0000 (17:30 +0200)]
Minor copyedits in "Distribution" chapter of the Emacs manual
* doc/emacs/emacs.texi (Distrib): Minor wording changes.
Suggested by oldgaro <oldgaro@protonmail.com> in
emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 15:20:14 +0000 (17:20 +0200)]
Minor copyedits in "Entering" chapter of Emacs manual.
* doc/emacs/entering.texi (Entering Emacs): Add a cross-reference
to MS-Windows startup procedures. Clarify wording. Suggested by
Francis Wright <f.j.wright@live.co.uk> in emacs-manual-bugs@gnu.org.
Eli Zaretskii [Tue, 30 Jan 2018 15:04:12 +0000 (17:04 +0200)]
Minor wording change in the Emacs manual
* doc/emacs/screen.texi (Screen): Minor wording change. Suggested
by Wesley Ellis <ellisgen@gmail.com> in emacs-manual-bugs@gnu.org.
Stefan Monnier [Tue, 30 Jan 2018 14:55:09 +0000 (09:55 -0500)]
* lisp/subr.el (atomic-change-group): Fix return value
Suggested by Jarosław Rzeszótko <jrzeszotko@gmail.com>.