unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Steinar Bang <sb@dod.no>
Cc: help-gnu-emacs@gnu.org
Subject: Re: How to get rid of the "Summary: " inserted by vc log-edit.el?
Date: Mon, 28 Oct 2019 08:17:39 +0000	[thread overview]
Message-ID: <CAPM58ojhov-cbuTrOErRojRhudZE=BBYA7sVJZp7N2bpjggPVw@mail.gmail.com> (raw)
In-Reply-To: <867e4qva3z.fsf@dod.no>

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	other threads:[~2019-10-28  8:17 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-27  8:57 How to get rid of the "Summary: " inserted by vc log-edit.el? Steinar Bang
2019-10-28  8:17 ` Richard Copley [this message]
2019-10-29 17:48   ` Steinar Bang
2019-10-29 15:14 ` Dmitry Gutov
2019-10-29 17:48   ` Steinar Bang
2019-10-29 18:50     ` Dmitry Gutov
2019-10-29 20:24       ` Steinar Bang
2019-10-29 20:34         ` Dmitry Gutov

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPM58ojhov-cbuTrOErRojRhudZE=BBYA7sVJZp7N2bpjggPVw@mail.gmail.com' \
    --to=rcopley@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sb@dod.no \
    /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.
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).