aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc.el
diff options
context:
space:
mode:
authorStefan Monnier <[email protected]>2008-01-06 16:02:38 +0000
committerStefan Monnier <[email protected]>2008-01-06 16:02:38 +0000
commitcc72026bcacf63f7c62c8e711cba8758fdb6202c (patch)
tree7333ba41df15eb321d1dd801800fd25534b69fc1 /lisp/vc.el
parenteffb6952745e54189a4ab68f550476c33992c8cb (diff)
(vc-ensure-vc-buffer): Check liveness of vc-parent-buffer.
Diffstat (limited to 'lisp/vc.el')
-rw-r--r--lisp/vc.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 9e5df68654..61a2c67d9d 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1310,6 +1310,7 @@ Otherwise, throw an error."
(if vc-dired-mode
(set-buffer (find-file-noselect (dired-get-filename)))
(while (and vc-parent-buffer
+ (buffer-live-p vc-parent-buffer)
;; Avoid infinite looping when vc-parent-buffer and
;; current buffer are the same buffer.
(not (eq vc-parent-buffer (current-buffer))))