all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#3462: Auto-fill VC log contents
@ 2009-06-03 19:17 Lluis Vilanova
  2009-06-04 16:14 ` Stefan Monnier
  0 siblings, 1 reply; 10+ messages in thread
From: Lluis Vilanova @ 2009-06-03 19:17 UTC (permalink / raw
  To: bug-gnu-emacs

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






^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-02-29  3:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-03 19:17 bug#3462: Auto-fill VC log contents Lluis Vilanova
2009-06-04 16:14 ` 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

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.