Commit 4d49551a authored by Karl Heuer's avatar Karl Heuer
Browse files

(set-visited-file-name): Don't call backup-enable-predicate

when buffer-file-name is nil.
parent 9b3d0a18
......@@ -1735,7 +1735,8 @@ the old visited file has been renamed to the new name FILENAME."
(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))
(make-local-variable 'backup-inhibited)
(setq backup-inhibited t)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment