From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bob Rogers Newsgroups: gmane.emacs.devel Subject: Re: Selection-set editing without VC-dired Date: Tue, 1 Jan 2008 23:55:31 -0500 Message-ID: <18299.6467.260415.207662@rgrjr.rgrjr.com> References: <20071230142812.C8027CF80B9@golux.thyrsus.com> <85wsqww8ie.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199249742 28778 80.91.229.12 (2 Jan 2008 04:55:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 2 Jan 2008 04:55:42 +0000 (UTC) To: Stefan Monnier , David Kastrup , "Eric S. Raymond" , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 02 05:56:00 2008 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 1J9ve3-0003Vk-Ot for ged-emacs-devel@m.gmane.org; Wed, 02 Jan 2008 05:56:00 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9vdh-00013i-Ap for ged-emacs-devel@m.gmane.org; Tue, 01 Jan 2008 23:55:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J9vde-00013d-HL for emacs-devel@gnu.org; Tue, 01 Jan 2008 23:55:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J9vde-00013R-1A for emacs-devel@gnu.org; Tue, 01 Jan 2008 23:55:34 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J9vdd-00013O-VJ for emacs-devel@gnu.org; Tue, 01 Jan 2008 23:55:33 -0500 Original-Received: from c-24-128-232-192.hsd1.ma.comcast.net ([24.128.232.192] helo=rgrjr.dyndns.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1J9vdd-0001tc-OR for emacs-devel@gnu.org; Tue, 01 Jan 2008 23:55:33 -0500 Original-Received: (qmail 28528 invoked by uid 89); 2 Jan 2008 04:55:31 -0000 Original-Received: from unknown (HELO rgrjr.dyndns.org) (192.168.57.1) by home with SMTP; 2 Jan 2008 04:55:31 -0000 Original-Received: (qmail 22719 invoked by uid 500); 2 Jan 2008 04:55:31 -0000 In-Reply-To: X-Mailer: VM 7.19 under Emacs 23.0.50.1 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:85854 Archived-At: From: Stefan Monnier Date: Tue, 01 Jan 2008 21:52:55 -0500 >> So, I'm not outright rejecting the idea of a non-VC-Dired UI for >> specifying selection sets. But I think it would be better for >> now if I continued to focus on making VC-Dired so fast that >> you won't really want or need an alternate set-editing method. > PCL-CVS is certainly fast enough but I still consider having to use it > (or other directory-based methods) for multi-file commits a crutch and > inconvenience. There is no point in having to go through a directory > listing when committing two files already loaded and edited in buffers. While I like PCL-CVS, obviously, I agree that I also use VC to commit single files and that I occasionally feel like it would be nice to have an intermediate level . . . Sorry for stepping into this conversation so late. I have code to do multi-file commits based on *VC-log* comments. The workflows goes like this: 1. M-x vc-start-commit to create a new *VC-log* buffer with all of the modified files named. Only those files still named in the buffer at commit time are actually committed, and new files can be added manually. (There is also a M-x vc-split-entry command to split the log buffer at point, copying half out into a new buffer). 2. C-x v = in the log-edit buffer produces a diff of the listed files for perusal while writing the comment. 3. C-! in a diff hunk snarfs the definition name from point in the source (though only a few language modes are handled so far) and starts a comment for that definition, under the correct file. 4. Iterate and/or split until happy, then commit normally. Unfortunately, I have been lazy about updating this code to work with the changes ESR has introduced since the Emacs 22.1 release. Worse, it is also essentially undocumented. But if there's interest, I will try to accelerate work on making it current (and documenting it!). -- Bob Rogers http://rgrjr.dyndns.org/