]> git.eshelyaron.com Git - emacs.git/commitdiff
* vc/vc-hooks.el (vc-file-clearprops): Kill vc-parent-buffer.
authorChong Yidong <cyd@gnu.org>
Mon, 29 Oct 2012 11:12:17 +0000 (19:12 +0800)
committerChong Yidong <cyd@gnu.org>
Mon, 29 Oct 2012 11:12:17 +0000 (19:12 +0800)
Suggested by Dan Nicolaescu.

Fixes: debbugs:6326
lisp/ChangeLog
lisp/vc/vc-hooks.el

index 4edf3cdd03b8e780c3baaafad1aee9548874c062..db12be1301f7cd5ee4bfcb866d2f4c49035b9575 100644 (file)
@@ -1,5 +1,8 @@
 2012-10-29  Chong Yidong  <cyd@gnu.org>
 
+       * vc/vc-hooks.el (vc-file-clearprops): Kill vc-parent-buffer.
+       Suggested by Dan Nicolaescu (Bug#6326).
+
        * info.el (Info-complete-menu-item): Avoid duplicates (Bug#12705).
 
        * startup.el (fancy-about-screen): Don't message (Bug#12680).
index cac3eb559a101d801842b26b26cb324240f1fd6c..07a292ae435915a754e43365c124fb76406fd8c7 100644 (file)
@@ -224,6 +224,8 @@ VC commands are globally reachable under the prefix `\\[vc-prefix-map]':
 
 (defun vc-file-clearprops (file)
   "Clear all VC properties of FILE."
+  (if (boundp 'vc-parent-buffer)
+      (kill-local-variable 'vc-parent-buffer))
   (setplist (intern file vc-file-prop-obarray) nil))
 
 \f