summaryrefslogtreecommitdiff
path: root/lisp/vc.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2007-11-23 15:17:25 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2007-11-23 15:17:25 +0000
commitd24182bbae78bc58d31c96faf7ad49c165c6b6ef (patch)
treef039196649e1ecd0fb73f0d9cd7952f8ab9886ce /lisp/vc.el
parent4d77fc8ece1e07b65407d7a2b323149f971a6370 (diff)
downloademacs-d24182bbae78bc58d31c96faf7ad49c165c6b6ef.tar.gz
(vc-deduce-fileset): Also look for a fileset in the parent
buffer if the parent buffer is in vc-dired-mode.
Diffstat (limited to 'lisp/vc.el')
-rw-r--r--lisp/vc.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index 5dc91bf14f8..2775fd6a758 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1267,7 +1267,9 @@ Otherwise, throw an error."
marked))
((vc-backend buffer-file-name)
(list buffer-file-name))
- ((and vc-parent-buffer (buffer-file-name vc-parent-buffer))
+ ((and vc-parent-buffer (or (buffer-file-name vc-parent-buffer)
+ (with-current-buffer vc-parent-buffer
+ vc-dired-mode)))
(progn
(set-buffer vc-parent-buffer)
(vc-deduce-fileset)))