summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/files.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index e0277befbc1..b4e30207bfc 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1263,7 +1263,7 @@ unless NOMODES is non-nil."
(format "%s has auto save data; consider M-x recover-file"
(file-name-nondirectory buffer-file-name))
(setq not-serious t)
- (if error "(New file)" nil)))
+ (if (and warn error) "(New file)" nil)))
((not error)
(setq not-serious t)
"Note: file is write protected")