emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] feature/tramp-thread-safe 8f3b6e9: Minor edits for async f


From: Michael Albinus
Subject: [Emacs-diffs] feature/tramp-thread-safe 8f3b6e9: Minor edits for async file visiting
Date: Tue, 7 Aug 2018 10:20:32 -0400 (EDT)

branch: feature/tramp-thread-safe
commit 8f3b6e962d7edf71003fb9b2f34d770670d1a933
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    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 e2389a3..1d7db1d 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 d00a252..631f04a 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 1d404fc..52e4450 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 1415300..7c674f6 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'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]