* vc-start-entry and add-log-current-defun, vc-comment-to-change-log
@ 2011-03-24 19:04 Uwe Brauer
2011-03-25 1:28 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2011-03-24 19:04 UTC (permalink / raw)
To: emacs-devel
Hello
I always found it a little annoying that add-change-log-entry
and vc-start-entry could lead to similar but different
entries in the corresponding log files.
vc-comment-to-change-log allows you to insert vc entries to
the Changelog, but changelog has at least for me the nicer
format.
Anyhow I came up with a small modification for
vc-start-entry, which uses add-log-current-defun.
But I found my solution not very elegant so are there plans
to implement such a feature in the vc packages?
Uwe Brauer
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc-start-entry and add-log-current-defun, vc-comment-to-change-log
2011-03-24 19:04 vc-start-entry and add-log-current-defun, vc-comment-to-change-log Uwe Brauer
@ 2011-03-25 1:28 ` Stefan Monnier
2011-03-26 11:31 ` Uwe Brauer
0 siblings, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2011-03-25 1:28 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-devel
> I always found it a little annoying that add-change-log-entry
> and vc-start-entry could lead to similar but different
> entries in the corresponding log files.
I don't know what you mean by vc-start-entry.
> vc-comment-to-change-log allows you to insert vc entries to the
> Changelog, but changelog has at least for me the nicer format.
That's why log-edit-mode provides C-c C-a to bring the ChangeLog entry
into the VC-Log buffer before committing.
> But I found my solution not very elegant so are there plans
> to implement such a feature in the vc packages?
I'd like to see C-x 4 a changed so that it can work without
a ChangeLog file. E.g., it could add entries directly to *VC-Log*, or
maybe use some special file instead (so it can auto-save log comments
before in case you take a while writing them).
Patches welcome,
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc-start-entry and add-log-current-defun, vc-comment-to-change-log
2011-03-25 1:28 ` Stefan Monnier
@ 2011-03-26 11:31 ` Uwe Brauer
2011-03-26 12:22 ` Stefan Monnier
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Brauer @ 2011-03-26 11:31 UTC (permalink / raw)
To: emacs-devel
>> Regarding Re: vc-start-entry and add-log-current-defun,
>> vc-comment-to-change-log; Stefan Monnier
>> <monnier@iro.umontreal.ca> adds:
>> I always found it a little annoying that add-change-log-entry
>> and vc-start-entry could lead to similar but different
>> entries in the corresponding log files.
> I don't know what you mean by vc-start-entry.
It seems that I use an ancient vc version. In my version
vc-next-action
calls
vc-next-action-on-file
calls
vc-checkin
calls
vc-start-entry
And it is this last function which I wanted to change and
add
(let ((defun (add-log-current-defun)))
at the beginning of that function and later insert defun.
>> vc-comment-to-change-log allows you to insert vc entries to the
>> Changelog, but changelog has at least for me the nicer format.
> That's why log-edit-mode provides C-c C-a to bring the ChangeLog entry
> into the VC-Log buffer before committing.
I have not seen this feature in my vc version! No wait I am
confused you say I can use C-c C-a in ChangeLog, well not
in GNU emacs 22 I am using. Can you please clarify?
>> But I found my solution not very elegant so are there plans
>> to implement such a feature in the vc packages?
Uwe
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: vc-start-entry and add-log-current-defun, vc-comment-to-change-log
2011-03-26 11:31 ` Uwe Brauer
@ 2011-03-26 12:22 ` Stefan Monnier
0 siblings, 0 replies; 4+ messages in thread
From: Stefan Monnier @ 2011-03-26 12:22 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-devel
>>> vc-comment-to-change-log allows you to insert vc entries to the
>>> Changelog, but changelog has at least for me the nicer format.
>> That's why log-edit-mode provides C-c C-a to bring the ChangeLog entry
>> into the VC-Log buffer before committing.
> I have not seen this feature in my vc version! No wait I am
> confused you say I can use C-c C-a in ChangeLog, well not
> in GNU emacs 22 I am using. Can you please clarify?
The C-c C-a is in the VC-Log buffer, not in the ChangeLog buffer.
I.e. you first write your ChangeLog with C-x 4 a as usual and once
you're done, you do the C-x v v command to commit, which brings up
a VC-Log buffer into which you can hit C-c C-a to bring in a copy of the
ChangeLog entry you just typed.
You can also add log-edit-insert-changelog to log-edit-hook so it's done
for you automatically.
Stefan
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-26 12:22 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-24 19:04 vc-start-entry and add-log-current-defun, vc-comment-to-change-log Uwe Brauer
2011-03-25 1:28 ` Stefan Monnier
2011-03-26 11:31 ` Uwe Brauer
2011-03-26 12:22 ` Stefan Monnier
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).