summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2007-01-04 22:14:32 +0000
committerRichard M. Stallman <rms@gnu.org>2007-01-04 22:14:32 +0000
commitb98a8e06e645ef4c595e09175125f9779388e725 (patch)
tree308719890a94745dfa1aecfdfba00745188059f5 /lisp
parentc8d554e95eee912803b1fff623db1a3f07aeba86 (diff)
downloademacs-b98a8e06e645ef4c595e09175125f9779388e725.tar.gz
(find-file-noselect-1, set-visited-file-name):
Allow backup-enable-predicate to be nil.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/files.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el
index cc4cd1220f9..7a9c1b4b9da 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -1650,7 +1650,8 @@ Do you want to revisit the file normally now? ")
(setq default-directory (file-name-directory buffer-file-name))
;; 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 backup-enable-predicate
+ (not (funcall backup-enable-predicate buffer-file-name))
(progn
(make-local-variable 'backup-inhibited)
(setq backup-inhibited t)))
@@ -2904,6 +2905,7 @@ the old visited file has been renamed to the new name FILENAME."
;; Turn off backup files for certain file names.
;; Since this is a permanent local, the major mode won't eliminate it.
(and buffer-file-name
+ backup-enable-predicate
(not (funcall backup-enable-predicate buffer-file-name))
(progn
(make-local-variable 'backup-inhibited)