all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lluis Vilanova <vilanova@ac.upc.edu>
To: bug-gnu-emacs@gnu.org
Subject: bug#3462: Auto-fill VC log contents
Date: Wed, 3 Jun 2009 21:17:29 +0200	[thread overview]
Message-ID: <20090603191729.GA21320@ginnungagap.pc.ac.upc.edu> (raw)

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






             reply	other threads:[~2009-06-03 19:17 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-03 19:17 Lluis Vilanova [this message]
2009-06-04 16:14 ` bug#3462: Auto-fill VC log contents Stefan Monnier
2009-06-14 20:58   ` Lluis Vilanova
2012-04-11 12:54     ` Lars Magne Ingebrigtsen
2013-11-24 18:52     ` Dmitry Gutov
2013-11-26 12:02       ` Lluís Vilanova
2013-11-26 12:20         ` Dmitry Gutov
2013-11-26 13:15           ` Lluís Vilanova
2013-11-26 19:38             ` Glenn Morris
2016-02-29  3:42               ` Lars Ingebrigtsen

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=20090603191729.GA21320@ginnungagap.pc.ac.upc.edu \
    --to=vilanova@ac.upc.edu \
    --cc=3462@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@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.