projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb8b13f
)
* files.el (auto-save-visited-mode): Don't prompt for filenames.
author
Philipp Stephani
<phst@google.com>
Sat, 31 Mar 2018 10:26:30 +0000
(12:26 +0200)
committer
Philipp Stephani
<phst@google.com>
Mon, 2 Apr 2018 10:18:39 +0000
(12:18 +0200)
lisp/files.el
patch
|
blob
|
history
diff --git
a/lisp/files.el
b/lisp/files.el
index a10c067cf7193d166a9011593fe778b5dda468d1..974d39ceee926edc7a51136392faa53a3b0f74a6 100644
(file)
--- 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