[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#6870: Make vc-root-diff work in more modes
From: |
Chong Yidong |
Subject: |
bug#6870: Make vc-root-diff work in more modes |
Date: |
Tue, 05 Jul 2011 16:58:14 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> What about all buffers that have file names? A la
>
>> (and (buffer-file-name)
>> (vc-responsible-backend default-directory))
>
> That'd be fine, yes.
But this might be confusing, since this check would not trigger for
non-file buffers generated from those file buffers.
i.e., if you have a buffer with a file name that is not handled by VC,
vc-root-diff would work for that buffer but not for a diff file
generated from that buffer.
Whereas if a buffer with a file name *is* handled by VC, vc-root-diff
would work for both that buffer and a diff file generated for that
buffer.