From: Philipp Stephani Date: Sat, 31 Mar 2018 10:26:30 +0000 (+0200) Subject: * files.el (auto-save-visited-mode): Don't prompt for filenames. X-Git-Tag: emacs-26.1-rc1~21 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1e6f09aa72fbdfc9246bcb85bc69a624c0efcfdf;p=emacs.git * files.el (auto-save-visited-mode): Don't prompt for filenames. --- 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