# HG changeset patch # User Richard M. Stallman # Date 739139381 0 # Node ID 763bc1ba714ef898915f7c05d8e0d8d526389e35 # Parent 447a28bdc0fe51de5f2eb6f29e7c00aefd6b20b9 (vc-find-file-hook): Check buffer-file-name is non-nil. diff -r 447a28bdc0fe -r 763bc1ba714e lisp/vc-hooks.el --- 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)