aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2008-09-29 18:58:08 +0000
committerMichael Albinus2008-09-29 18:58:08 +0000
commit613658d4b2f4b5a48dc5cb3340f17b3520cbe5e8 (patch)
treec4191643a59c1cc9116d60e4fd4918eac203b050
parent69ad666d70dbf92ab66b4aaa291e8d806514b9e3 (diff)
downloademacs-613658d4b2f4b5a48dc5cb3340f17b3520cbe5e8.tar.gz
emacs-613658d4b2f4b5a48dc5cb3340f17b3520cbe5e8.zip
* vc-hooks.el (vc-file-clearprops): Check, that FILE is a string.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/vc-hooks.el5
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3a1b8ade9c8..1ab3018a994 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-09-29 Michael Albinus <michael.albinus@gmx.de>
2
3 * vc-hooks.el (vc-file-clearprops): Check, that FILE is a string.
4
12008-09-29 Eli Zaretskii <eliz@gnu.org> 52008-09-29 Eli Zaretskii <eliz@gnu.org>
2 6
3 * files.el (locate-dominating-file): Take file-attributes of 7 * files.el (locate-dominating-file): Take file-attributes of
@@ -9,7 +13,7 @@
9 also be `localname'. 13 also be `localname'.
10 14
11 * net/ange-ftp.el (ange-ftp-file-remote-p): Handle `localname' as 15 * net/ange-ftp.el (ange-ftp-file-remote-p): Handle `localname' as
12 identification. 16 IDENTIFICATION.
13 17
142008-09-28 Glenn Morris <rgm@gnu.org> 182008-09-28 Glenn Morris <rgm@gnu.org>
15 19
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el
index 8d17eeac699..78814726365 100644
--- a/lisp/vc-hooks.el
+++ b/lisp/vc-hooks.el
@@ -238,7 +238,10 @@ VC commands are globally reachable under the prefix `\\[vc-prefix-map]':
238 238
239(defun vc-file-clearprops (file) 239(defun vc-file-clearprops (file)
240 "Clear all VC properties of FILE." 240 "Clear all VC properties of FILE."
241 (setplist (intern file vc-file-prop-obarray) nil)) 241 ;; Sometimes, Tramp runs into trouble, FILE is nil then. We shall
242 ;; avoid an error in this case.
243 (when (stringp file)
244 (setplist (intern file vc-file-prop-obarray) nil)))
242 245
243 246
244;; We keep properties on each symbol naming a backend as follows: 247;; We keep properties on each symbol naming a backend as follows: