emacs-diffs
[Top][All Lists]
Advanced

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

master 59276ff81d: ; * lisp/files.el (auto-save-visited-predicate): Doc


From: Eli Zaretskii
Subject: master 59276ff81d: ; * lisp/files.el (auto-save-visited-predicate): Doc fix.
Date: Tue, 5 Jul 2022 09:12:47 -0400 (EDT)

branch: master
commit 59276ff81d1ab391f4e3cd91f3070a12c51a3507
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    ; * lisp/files.el (auto-save-visited-predicate): Doc fix.
---
 lisp/files.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/lisp/files.el b/lisp/files.el
index 67b3ae9b68..9eeed836c9 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -446,9 +446,10 @@ idle for `auto-save-visited-interval' seconds."
 (defcustom auto-save-visited-predicate nil
   "Predicate function for `auto-save-visited-mode'.
 
-This function is called (with no argument) once in each
-file-visiting buffer.  Only those buffers are saved, where
-the predicate function returns a non-nil value.
+If non-nil, the value should be a function of no arguments; it
+will be called once in each file-visiting buffer when the time
+comes to auto-save.  A buffer will be saved only if the predicate
+function returns a non-nil value.
 
 For example, you could add this to your Init file to only save
 files that are both in Org mode and in a particular directory:
@@ -460,7 +461,7 @@ files that are both in Org mode and in a particular 
directory:
 
 If the value of this variable is not a function, it is ignored.
 This is the same as having a predicate that always returns
-true."
+non-nil."
   :group 'auto-save
   :type '(choice :tag "Function:"
                  (const :tag "No extra predicate" :value nil)



reply via email to

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