[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 1e6f09a: * files.el (auto-save-visited-mode): Don
From: |
Philipp Stephani |
Subject: |
[Emacs-diffs] emacs-26 1e6f09a: * files.el (auto-save-visited-mode): Don't prompt for filenames. |
Date: |
Mon, 2 Apr 2018 06:20:26 -0400 (EDT) |
branch: emacs-26
commit 1e6f09aa72fbdfc9246bcb85bc69a624c0efcfdf
Author: Philipp Stephani <address@hidden>
Commit: Philipp Stephani <address@hidden>
* files.el (auto-save-visited-mode): Don't prompt for filenames.
---
lisp/files.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/lisp/files.el b/lisp/files.el
index a10c067..974d39c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -436,8 +436,9 @@ and toggle it if ARG is `toggle'."
auto-save-visited-interval :repeat
#'save-some-buffers :no-prompt
(lambda ()
- (not (and buffer-auto-save-file-name
- auto-save-visited-file-name)))))))
+ (and buffer-file-name
+ (not (and buffer-auto-save-file-name
+ auto-save-visited-file-name))))))))
;; The 'set' part is so we don't get a warning for using this variable
;; above, while still catching code that _sets_ the variable to get
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs-26 1e6f09a: * files.el (auto-save-visited-mode): Don't prompt for filenames.,
Philipp Stephani <=