]> git.eshelyaron.com Git - emacs.git/commitdiff
* files.el (auto-save-visited-mode): Don't prompt for filenames.
authorPhilipp Stephani <phst@google.com>
Sat, 31 Mar 2018 10:26:30 +0000 (12:26 +0200)
committerPhilipp Stephani <phst@google.com>
Mon, 2 Apr 2018 10:18:39 +0000 (12:18 +0200)
lisp/files.el

index a10c067cf7193d166a9011593fe778b5dda468d1..974d39ceee926edc7a51136392faa53a3b0f74a6 100644 (file)
@@ -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