help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get rid of the "Summary: " inserted by vc log-edit.el?


From: Richard Copley
Subject: Re: How to get rid of the "Summary: " inserted by vc log-edit.el?
Date: Mon, 28 Oct 2019 08:17:39 +0000

On Sun, 27 Oct 2019 at 08:56, Steinar Bang <sb@dod.no> wrote:

> Platform: emacs 26
>
> Is there a simple way to get rid of the "Summary: " tag inserted into
> the comment buffer when making a commit with 'C-x v v'?
>
> The first, and only, thing I do with the Summary: tag is to delete
> it. And it would be nice not to have to.
>
> But it doesn't look like this tag is configurable...?  And it wasn't all
> that easy to find where it is set either.
>
> The place I've found is set, are:
>  When the author field is set
>   http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/vc/log-edit.el#n834
>  When the Amend header is toggled
>
> http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/vc/log-edit.el#n1179
>  Possibly as a side effect of extracting headers from the commit
> message...?
>
> http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/vc/log-edit.el#n1124
>
> Or is it perhaps set in a completely different place?
>

Hi,
Customize the variable "log-edit-hook" and remove
"log-edit-insert-message-template" from the list of functions there. There
are three functions on the list by default. They can all be removed if you
want, without causing any problems.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]