changeset 32828:5fea5d3d935b

(after-find-file): Don't print a message ``New file'' if WARN is nil.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 24 Oct 2000 15:06:14 +0000
parents 130ac4062989
children 81391f75fa8d
files lisp/files.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Tue Oct 24 14:45:36 2000 +0000
+++ b/lisp/files.el	Tue Oct 24 15:06:14 2000 +0000
@@ -1263,7 +1263,7 @@
 		       (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")