From 65efc1bfcfa8a9b14f325df0987bd233ec25edb3 Mon Sep 17 00:00:00 2001 From: Philipp Stephani Date: Sat, 31 Mar 2018 12:26:30 +0200 Subject: [PATCH] * 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 6a13a9d71a..83cba24336 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -436,8 +436,9 @@ auto-save-visited-mode 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 -- 2.16.1