diff options
| author | Karl Heuer | 1998-02-27 22:13:26 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-02-27 22:13:26 +0000 |
| commit | 4d49551aeef090cb8ec3dcaccf72082ad45d0cb2 (patch) | |
| tree | a8a37b913c0bc0ad50aaff5ec7edc2b590ce3dce | |
| parent | 9b3d0a18fa7767f02c195dfae388a3c4e8ba9b03 (diff) | |
| download | emacs-4d49551aeef090cb8ec3dcaccf72082ad45d0cb2.tar.gz emacs-4d49551aeef090cb8ec3dcaccf72082ad45d0cb2.zip | |
(set-visited-file-name): Don't call backup-enable-predicate
when buffer-file-name is nil.
| -rw-r--r-- | lisp/files.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/files.el b/lisp/files.el index e1c80a6ef6f..a3ea8adac28 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -1735,7 +1735,8 @@ the old visited file has been renamed to the new name FILENAME." | |||
| 1735 | (kill-local-variable 'vc-mode) | 1735 | (kill-local-variable 'vc-mode) |
| 1736 | ;; Turn off backup files for certain file names. | 1736 | ;; Turn off backup files for certain file names. |
| 1737 | ;; Since this is a permanent local, the major mode won't eliminate it. | 1737 | ;; Since this is a permanent local, the major mode won't eliminate it. |
| 1738 | (and (not (funcall backup-enable-predicate buffer-file-name)) | 1738 | (and buffer-file-name |
| 1739 | (not (funcall backup-enable-predicate buffer-file-name)) | ||
| 1739 | (progn | 1740 | (progn |
| 1740 | (make-local-variable 'backup-inhibited) | 1741 | (make-local-variable 'backup-inhibited) |
| 1741 | (setq backup-inhibited t))) | 1742 | (setq backup-inhibited t))) |