[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#6870: Make vc-root-diff work in more modes

From: Lars Magne Ingebrigtsen
Subject: bug#6870: Make vc-root-diff work in more modes
Date: Tue, 05 Jul 2011 15:32:05 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

Stefan Monnier <address@hidden> writes:

> It's only reasonable in buffers where default-directory is really
> meaningful.  E.g. in *Help* or *info* it's likely not going to do you
> much good.
> So feel free to add more major modes (rather than just `dired'), but
> I don't think using (vc-responsible-backend default-directory)
> everywhere is a good idea.

What about all buffers that have file names?  A la

(and (buffer-file-name)
     (vc-responsible-backend default-directory))

or something along those lines...
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]