1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-19 18:13:55 +00:00

(vc-ensure-vc-buffer): Check liveness of vc-parent-buffer.

This commit is contained in:
Stefan Monnier 2008-01-06 16:02:38 +00:00
parent effb695274
commit cc72026bca
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2008-01-06 Stefan Monnier <monnier@iro.umontreal.ca>
* vc.el (vc-ensure-vc-buffer): Check liveness of vc-parent-buffer.
2008-01-06 Dan Nicolaescu <dann@ics.uci.edu>
* vc.el (vc-status-fileinfo): New defstruct.

View File

@ -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))))