summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2018-03-31 12:26:30 +0200
committerPhilipp Stephani <phst@google.com>2018-04-02 12:18:39 +0200
commit1e6f09aa72fbdfc9246bcb85bc69a624c0efcfdf (patch)
tree0ac8c2fefc4b1c93ab1313d64bf94d4a410417a7
parenteb8b13fc01e9ec1471e473a7f3e9636de8542817 (diff)
downloademacs-1e6f09aa72fbdfc9246bcb85bc69a624c0efcfdf.tar.gz
* files.el (auto-save-visited-mode): Don't prompt for filenames.
-rw-r--r--lisp/files.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index a10c067cf71..974d39ceee9 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