* vc-hooks.el (vc-file-clearprops): Check, that FILE is a string.

This commit is contained in:
Michael Albinus 2008-09-29 18:58:08 +00:00
parent 69ad666d70
commit 613658d4b2
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2008-09-29 Michael Albinus <michael.albinus@gmx.de>
* vc-hooks.el (vc-file-clearprops): Check, that FILE is a string.
2008-09-29 Eli Zaretskii <eliz@gnu.org>
* files.el (locate-dominating-file): Take file-attributes of
@ -9,7 +13,7 @@
also be `localname'.
* net/ange-ftp.el (ange-ftp-file-remote-p): Handle `localname' as
identification.
IDENTIFICATION.
2008-09-28 Glenn Morris <rgm@gnu.org>

View file

@ -238,7 +238,10 @@ VC commands are globally reachable under the prefix `\\[vc-prefix-map]':
(defun vc-file-clearprops (file)
"Clear all VC properties of FILE."
(setplist (intern file vc-file-prop-obarray) nil))
;; Sometimes, Tramp runs into trouble, FILE is nil then. We shall
;; avoid an error in this case.
(when (stringp file)
(setplist (intern file vc-file-prop-obarray) nil)))
;; We keep properties on each symbol naming a backend as follows: