changeset 21001:88e63a96a2d4

(set-visited-file-name): Don't call backup-enable-predicate when buffer-file-name is nil.
author Karl Heuer <kwzh@gnu.org>
date Fri, 27 Feb 1998 22:13:26 +0000
parents fae8b808a822
children bf4300d62bd1
files lisp/files.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Fri Feb 27 22:11:43 1998 +0000
+++ b/lisp/files.el	Fri Feb 27 22:13:26 1998 +0000
@@ -1735,7 +1735,8 @@
   (kill-local-variable 'vc-mode)
   ;; Turn off backup files for certain file names.
   ;; Since this is a permanent local, the major mode won't eliminate it.
-  (and (not (funcall backup-enable-predicate buffer-file-name))
+  (and buffer-file-name
+       (not (funcall backup-enable-predicate buffer-file-name))
        (progn
 	 (make-local-variable 'backup-inhibited)
 	 (setq backup-inhibited t)))