I just upgraded to Emacs 24.4 (from 24.3). Now, whenever I run vc-next-action on a modified file, the *vc-log* buffer that comes up starts with the word "Summary:" in log-edit-header face, followed by a line of inverse video.

This wasn't happening in 24.3, but I can't find anything about it in NEWS. What's going on? I see this in both Git and Subversion working copies.


Since around Emacs-24, the vc-log buffer supports/expects an RFC822-style format, with some headers handled specially (e.g. Author:, Fixes:, and Summary:). In Emacs-24.4, the default message content was changed to make this more clear.

  • 1
    Can you expand on what the Summary: header does?
    – cjm
    Oct 27 '14 at 17:39
  • 3
    To be clear, the 'Summary:' is included in the log message that's sent to the version control system. Personally, I am already using the convention that the first line of the log message is the summary, so I don't want to cruft up every commit with this extra word :-(
    – Ed Avis
    Nov 3 '14 at 16:52
  • 2
    @Stefan it is for me, though... (using RCS if that makes any difference)
    – petergil
    Nov 5 '14 at 6:38
  • 2
    I see the Summary: header included in the log message, using svn, so as you suggest I have filed debbugs.gnu.org/cgi/bugreport.cgi?bug=18954
    – Ed Avis
    Nov 5 '14 at 14:47
  • 1
    The bug is now fixed in the emacs-25 branch, apparently.
    – Ed Avis
    Nov 25 '15 at 15:34

It's surprising that there is no way to configure this. You can choose whether the Author: header should appear, but Summary: is jammed in by default no matter what.

I had to redefine a function:

(load "log-edit")
(defun log-edit-insert-message-template ()
  "Insert the default template."
  (when (or (called-interactively-p 'interactive)
    (when log-edit-setup-add-author
      (insert "\nAuthor: "))

Compared with the vanilla version in log-edit.el, I deleted the lines adding "Summary:" and "\n\n".

Loading log-edit first is needed (if you put the above code in your .emacs) because otherwise the new definition would be overwritten when that library is loaded the first time you do a commit operation.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.