From: "Eric S. Raymond" <esr@thyrsus.com>
To: Richard Stallman <rms@gnu.org>
Cc: Juanma Barranquero <lekktu@gmail.com>, emacs-devel@gnu.org
Subject: Re: vc-diff in non-VC buffer
Date: Thu, 11 Oct 2007 08:00:05 -0400 [thread overview]
Message-ID: <20071011120005.GD6804@thyrsus.com> (raw)
In-Reply-To: <E1IfqTC-00053a-CU@fencepost.gnu.org>
Richard Stallman <rms@gnu.org>:
> C:\> emacs -Q -D
> C-x v =
>
> => launches a traversal of the hard disk.
>
> I think it should verify that the current buffer corresponds to a
> version-controlled directory or file. Eric, do you see any
> argument against doing so?
Yes. For that particular operation, and some other non-modifying ones
such as printing change-history logs, what users often want is a
fallback rule for computing selected filesets that says, in effect:
if the selected fileset is empty, look at all version-controlled
files beneath the current directory.
So, for example, you can go to a top-level project directory and just
do C-x v = to look at the state of all changes beneath it, regardless
of whether you're actually visiting a controlled file. This is useful,
and I think many VC users would be (rightly) annoyed if they lost it.
What Juanma is pointing out is that this rule grinds your disk in what
is for him an unhelpful way when you do C-x v = from $HOME. He's got a
point; aggregating diffs from the multiple projects that doubtless live
under there is not likely to be useful.
I'm testing code that errors out if you (a) have an empty fileset, and
(b) no files are registered immediately under default-directory. Juanma
thinks this will cover his use case.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
next prev parent reply other threads:[~2007-10-11 12:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-10 17:19 vc-diff in non-VC buffer Juanma Barranquero
2007-10-10 17:38 ` Eric S. Raymond
2007-10-10 21:31 ` Juanma Barranquero
2007-10-10 21:49 ` Eric S. Raymond
2007-10-10 21:58 ` Juanma Barranquero
2007-10-10 22:13 ` Eric S. Raymond
2007-10-10 22:23 ` Juanma Barranquero
2007-10-10 22:57 ` Eric S. Raymond
2007-10-10 23:06 ` Juanma Barranquero
2007-10-14 16:29 ` Richard Stallman
2007-10-10 22:30 ` Andreas Schwab
2007-10-10 22:57 ` Eric S. Raymond
2007-10-11 5:20 ` Richard Stallman
2007-10-11 12:00 ` Eric S. Raymond [this message]
2007-10-11 14:39 ` Stefan Monnier
2007-10-11 17:40 ` Richard Stallman
2007-10-13 6:40 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071011120005.GD6804@thyrsus.com \
--to=esr@thyrsus.com \
--cc=emacs-devel@gnu.org \
--cc=lekktu@gmail.com \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.