changeset 14883:f8a7a08fb9dd

(set-visited-file-name): Don't call find-buffer-visiting if filename is nil.
author Richard M. Stallman <rms@gnu.org>
date Tue, 26 Mar 1996 23:57:49 +0000
parents 582cb6240b09
children f05c21f41b13
files lisp/files.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Tue Mar 26 18:46:04 1996 +0000
+++ b/lisp/files.el	Tue Mar 26 23:57:49 1996 +0000
@@ -1423,7 +1423,7 @@
 	  (setq truename (file-truename filename))
 	  (if find-file-visit-truename
 	      (setq filename truename))))
-    (let ((buffer (find-buffer-visiting filename)))
+    (let ((buffer (and filename (find-buffer-visiting filename))))
       (and buffer (not (eq buffer (current-buffer)))
 	   (not (y-or-n-p (message "A buffer is visiting %s; proceed? "
 				   filename)))