From 8f3b6e962d7edf71003fb9b2f34d770670d1a933 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Tue, 7 Aug 2018 16:20:23 +0200 Subject: [PATCH] Minor edits for async file visiting * doc/emacs/files.texi (Visiting): Fix typo. * etc/NEWS (execute-file-commands-asynchronously): Be more verbose about possible values. * lisp/simple.el (universal-async-argument): Handle also `negative-argument'. --- doc/emacs/files.texi | 6 +++--- etc/NEWS | 7 ++++--- lisp/files.el | 2 +- lisp/simple.el | 2 +- 4 files changed, 9 insertions(+), 8 deletions(-) diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index e2389a3806d..1d7db1d3783 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -235,9 +235,9 @@ while loading the file into its buffer Emacs keeps responsive, and you can continue to edit other files, or call commands. This is controlled by the user option @code{execute-file-commands-asynchronously}. If this option is @code{nil} (the default), visiting a file is -performed synchronously. A regexp value let files, which name matches -the regexp, being visited asynchronously, and synchronously otherwise. -The value @code{t} forces asynchronous visiting of files +performed synchronously. A regexp value lets files, which name +matches the regexp, being visited asynchronously, and synchronously +otherwise. The value @code{t} forces asynchronous visiting of files unconditionally. If you want to visit all remote files asynchronously, you should set diff --git a/etc/NEWS b/etc/NEWS index d00a252f85e..631f04a655f 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -232,11 +232,12 @@ navigation and editing of large files. +++ ** Files can be visited asynchronously. If the new user option 'execute-file-commands-asynchronously' has a -proper non-nil value, interactive file visiting commands load the file +non-nil value, interactive file visiting commands load the file asynchronously into the respective buffer. I.e., Emacs is still responsive while loading the files, which is useful especially for -remote files. See the node "(emacs) Visiting" in the user manual for -the supported commands. +remote files. If the value is a regular expression, files matching +this expression are loaded asynchronously. See the node "(emacs) +Visiting" in the user manual for the supported commands. * Changes in Specialized Modes and Packages in Emacs 27.1 diff --git a/lisp/files.el b/lisp/files.el index 1d404fcb9b1..52e44509123 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2084,7 +2084,7 @@ suppresses this warning." If it is a regular expression, it must match the file name to be visited. This behavior is toggled by \\[universal-async-argument] prior the command invocation." -:group 'files + :group 'files :version "27.1" :type '(choice boolean regexp)) diff --git a/lisp/simple.el b/lisp/simple.el index 14153009d16..7c674f69d53 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -4230,7 +4230,7 @@ set globally, it should be used in let-bindings only.") ;; `read-key-sequence' ignores quit, so make an explicit check. (if (equal last-input-event (nth 3 (current-input-mode))) (keyboard-quit)) - (when (memq cmd '(universal-argument digit-argument)) + (when (memq cmd '(universal-argument digit-argument negative-argument)) (call-interactively cmd) ;; Process keys bound in `universal-argument-map'. -- 2.39.5