From 53bb90cad6cb468348570018430e68bf09a0508d Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Tue, 24 Oct 2000 15:06:14 +0000 Subject: [PATCH] (after-find-file): Don't print a message ``New file'' if WARN is nil. --- lisp/files.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.39.2