]> git.eshelyaron.com Git - emacs.git/commitdiff
Minor edits for async file visiting
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 7 Aug 2018 14:20:23 +0000 (16:20 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 7 Aug 2018 14:20:23 +0000 (16:20 +0200)
* 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
etc/NEWS
lisp/files.el
lisp/simple.el

index e2389a3806d36f5a3d232fd35fba286659129e3b..1d7db1d3783310a9e0afc4250a881dba9f4fb9a8 100644 (file)
@@ -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
index d00a252f85e3d462d9c283c7104adb56fd6c68cc..631f04a655fa12f71b499054cb3b234a824e6574 100644 (file)
--- 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.
 
 \f
 * Changes in Specialized Modes and Packages in Emacs 27.1
index 1d404fcb9b1ef36d581601a34f20d5cc8ffb2eeb..52e4450912358aaba24a6a5d1d884104ca6bdf41 100644 (file)
@@ -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))
 
index 14153009d16b28717b17325c4924eaa84aabae5f..7c674f69d5382436a22862727cccfcf4f2efc691 100644 (file)
@@ -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'.