From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Eric S. Raymond" Newsgroups: gmane.emacs.devel Subject: Re: vc-diff in non-VC buffer Date: Thu, 11 Oct 2007 08:00:05 -0400 Organization: Eric Conspiracy Secret Labs Message-ID: <20071011120005.GD6804@thyrsus.com> References: Reply-To: esr@thyrsus.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1192103989 4568 80.91.229.12 (11 Oct 2007 11:59:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 Oct 2007 11:59:49 +0000 (UTC) Cc: Juanma Barranquero , emacs-devel@gnu.org To: Richard Stallman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 11 13:59:48 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ifwha-0004L1-5J for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 13:59:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfwhU-0006tX-BV for ged-emacs-devel@m.gmane.org; Thu, 11 Oct 2007 07:59:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IfwhQ-0006sw-EW for emacs-devel@gnu.org; Thu, 11 Oct 2007 07:59:32 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IfwhP-0006sk-3e for emacs-devel@gnu.org; Thu, 11 Oct 2007 07:59:31 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IfwhO-0006sh-Ua for emacs-devel@gnu.org; Thu, 11 Oct 2007 07:59:30 -0400 Original-Received: from static-71-162-243-5.phlapa.fios.verizon.net ([71.162.243.5] helo=snark) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IfwhK-0002eB-Oo; Thu, 11 Oct 2007 07:59:26 -0400 Original-Received: by snark (Postfix, from userid 23) id A038138032; Thu, 11 Oct 2007 08:00:05 -0400 (EDT) Content-Disposition: inline In-Reply-To: X-Eric-Conspiracy: There is no conspiracy User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-Detected-Kernel: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:80599 Archived-At: Richard Stallman : > 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. -- Eric S. Raymond