From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lluis Vilanova Newsgroups: gmane.emacs.bugs Subject: bug#3462: Auto-fill VC log contents Date: Wed, 3 Jun 2009 21:17:29 +0200 Message-ID: <20090603191729.GA21320@ginnungagap.pc.ac.upc.edu> Reply-To: Lluis Vilanova , 3462@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1244085481 10390 80.91.229.12 (4 Jun 2009 03:18:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Jun 2009 03:18:01 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jun 04 05:17:58 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MC3Sn-0004QW-2o for geb-bug-gnu-emacs@m.gmane.org; Thu, 04 Jun 2009 05:17:57 +0200 Original-Received: from localhost ([127.0.0.1]:59225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MC3Sm-00079s-6p for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jun 2009 23:17:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBwH6-0008M8-JC for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:37:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBwH2-0008Lg-RX for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:37:24 -0400 Original-Received: from [199.232.76.173] (port=43630 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBwH2-0008Ld-MF for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:37:20 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60162) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MBwH2-0004Qh-45 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:37:20 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n53JbIxv001764; Wed, 3 Jun 2009 12:37:18 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n53JP5qr032424; Wed, 3 Jun 2009 12:25:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Lluis Vilanova Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 03 Jun 2009 19:25:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 3462 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.124405665731730 (code B ref -1); Wed, 03 Jun 2009 19:25:05 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 3 Jun 2009 19:17:37 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n53JHSjd031724 for ; Wed, 3 Jun 2009 12:17:30 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBvxo-0008E3-26 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:17:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBvxj-00085z-5l for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:17:27 -0400 Original-Received: from [199.232.76.173] (port=54497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBvxj-00085v-1n for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:17:23 -0400 Original-Received: from gw.ac.upc.es ([147.83.30.3]:34049 helo=gw.ac.upc.edu) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBvxi-0007gj-M5 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2009 15:17:22 -0400 Original-Received: from localhost (dync-30-245.ac.upc.es [147.83.30.245]) by gw.ac.upc.edu (Postfix) with ESMTP id EBE116B0264 for ; Wed, 3 Jun 2009 21:17:16 +0200 (CEST) Content-Disposition: inline User-Agent: Mutt 1.5.18 (2008-05-17) X-Operating-System: Debian GNU/Linux Kernel 2.6.29-2-amd64 (x86_64) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 03 Jun 2009 15:37:24 -0400 X-Mailman-Approved-At: Wed, 03 Jun 2009 23:17:38 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:28483 Archived-At: I've written a simple `log-edit-fill' command that automatically fills the `VC-log' by means of `add-change-log-entry-other-window' (`diff-add-change-log-entries-other-window', in fact, so improvements on that come for free in `log-edit-fill'). Although the function is currently very tied to my needs, I think other people can also benefit from it. I know, I can always push the diff info into the Changelog file and after that import it into VC-log, but: 1) `log-edit-fill' streamlines this process 2) I do not keep Changelog files on my projects For people who keep a Changelog file, I think it would be more comfortable to: 1) Import all changes into the log message (I think that modifying `add-change-log-entry' and related functions to accept a destination buffer instead of a file would be valuable, so changes can be directly pushed into the `VC-log' buffer) 2) On log pre-commit push the editions in the log message into the Changelog file, write it to disk and add to commit set. Of course, the other way around is also possible: commiting from VC can open the Changelog with newly added entries, then writing it (or a specific command) triggers the extraction of newly written information into the log message. Multiple options are available, all depends on the desired flow of actions. Just hope it could be integrated into VC in a way that maintains my renegation from Changelog files, so I can delete that snippet from my initialization files :) In any case, I hope it can save some typing to you. Ah! The code... http://www.emacswiki.org/emacs/log-edit-fill Read you, Lluis PS: I've tested this code only in debian's emacs-snapshot -- "And it's much the same thing with knowledge, for whenever you learn something new, the whole world becomes that much richer." -- The Princess of Pure Reason, as told by Norton Juster in The Phantom Tollbooth