(vc-find-file-hook): Check buffer-file-name is non-nil.
This commit is contained in:
parent
2e388a26de
commit
3c9c43d957
1 changed files with 2 additions and 1 deletions
|
@ -137,7 +137,8 @@ visiting FILE."
|
|||
(defun vc-find-file-hook ()
|
||||
;; Recompute whether file is version controlled,
|
||||
;; if user has killed the buffer and revisited.
|
||||
(vc-file-setprop buffer-file-name 'vc-backend nil)
|
||||
(if buffer-file-name
|
||||
(vc-file-setprop buffer-file-name 'vc-backend nil))
|
||||
(if (and (vc-mode-line buffer-file-name) (not vc-make-backup-files))
|
||||
(progn
|
||||
(make-local-variable 'make-backup-files)
|
||||
|
|
Loading…
Add table
Reference in a new issue