comparison lisp/files.el @ 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 deb167dcda0b
children a7526e76aac9
comparison
equal deleted inserted replaced
21000:fae8b808a822 21001:88e63a96a2d4
1733 (if vc-mode 1733 (if vc-mode
1734 (setq buffer-read-only nil)) 1734 (setq buffer-read-only nil))
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)))
1742 (let ((oauto buffer-auto-save-file-name)) 1743 (let ((oauto buffer-auto-save-file-name))
1743 ;; If auto-save was not already on, turn it on if appropriate. 1744 ;; If auto-save was not already on, turn it on if appropriate.