diff options
| author | Richard M. Stallman | 2007-01-04 22:14:32 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2007-01-04 22:14:32 +0000 |
| commit | b98a8e06e645ef4c595e09175125f9779388e725 (patch) | |
| tree | 308719890a94745dfa1aecfdfba00745188059f5 | |
| parent | c8d554e95eee912803b1fff623db1a3f07aeba86 (diff) | |
| download | emacs-b98a8e06e645ef4c595e09175125f9779388e725.tar.gz emacs-b98a8e06e645ef4c595e09175125f9779388e725.zip | |
(find-file-noselect-1, set-visited-file-name):
Allow backup-enable-predicate to be nil.
| -rw-r--r-- | lisp/files.el | 4 |
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? ") | |||
| 1650 | (setq default-directory (file-name-directory buffer-file-name)) | 1650 | (setq default-directory (file-name-directory buffer-file-name)) |
| 1651 | ;; Turn off backup files for certain file names. Since | 1651 | ;; Turn off backup files for certain file names. Since |
| 1652 | ;; this is a permanent local, the major mode won't eliminate it. | 1652 | ;; this is a permanent local, the major mode won't eliminate it. |
| 1653 | (and (not (funcall backup-enable-predicate buffer-file-name)) | 1653 | (and backup-enable-predicate |
| 1654 | (not (funcall backup-enable-predicate buffer-file-name)) | ||
| 1654 | (progn | 1655 | (progn |
| 1655 | (make-local-variable 'backup-inhibited) | 1656 | (make-local-variable 'backup-inhibited) |
| 1656 | (setq backup-inhibited t))) | 1657 | (setq backup-inhibited t))) |
| @@ -2904,6 +2905,7 @@ the old visited file has been renamed to the new name FILENAME." | |||
| 2904 | ;; Turn off backup files for certain file names. | 2905 | ;; Turn off backup files for certain file names. |
| 2905 | ;; Since this is a permanent local, the major mode won't eliminate it. | 2906 | ;; Since this is a permanent local, the major mode won't eliminate it. |
| 2906 | (and buffer-file-name | 2907 | (and buffer-file-name |
| 2908 | backup-enable-predicate | ||
| 2907 | (not (funcall backup-enable-predicate buffer-file-name)) | 2909 | (not (funcall backup-enable-predicate buffer-file-name)) |
| 2908 | (progn | 2910 | (progn |
| 2909 | (make-local-variable 'backup-inhibited) | 2911 | (make-local-variable 'backup-inhibited) |