diff options
author | Philipp Stephani <phst@google.com> | 2018-03-31 12:26:30 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2018-04-02 12:18:39 +0200 |
commit | 1e6f09aa72fbdfc9246bcb85bc69a624c0efcfdf (patch) | |
tree | 0ac8c2fefc4b1c93ab1313d64bf94d4a410417a7 | |
parent | eb8b13fc01e9ec1471e473a7f3e9636de8542817 (diff) | |
download | emacs-1e6f09aa72fbdfc9246bcb85bc69a624c0efcfdf.tar.gz |
* files.el (auto-save-visited-mode): Don't prompt for filenames.
-rw-r--r-- | lisp/files.el | 5 |
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 |