changeset 3459:763bc1ba714e

(vc-find-file-hook): Check buffer-file-name is non-nil.
author Richard M. Stallman <rms@gnu.org>
date Thu, 03 Jun 1993 20:29:41 +0000
parents 447a28bdc0fe
children 9943fb1c45ca
files lisp/vc-hooks.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Thu Jun 03 20:27:26 1993 +0000
+++ b/lisp/vc-hooks.el	Thu Jun 03 20:29:41 1993 +0000
@@ -137,7 +137,8 @@
 (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)