Function: log-edit-insert-message-template
log-edit-insert-message-template is an interactive and byte-compiled
function defined in log-edit.el.gz.
Signature
(log-edit-insert-message-template)
Documentation
Insert the default VC commit log template with Summary and Author.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/vc/log-edit.el.gz
(defun log-edit-insert-message-template ()
"Insert the default VC commit log template with Summary and Author."
(interactive)
(when (or (called-interactively-p 'interactive)
(log-edit-empty-buffer-p))
;; Put Author first because then the user can immediately yank in a
;; multiline log message, or use \\`C-c C-w' (probably because they
;; know it will generate exactly one line), without thereby pushing
;; Author out of the header and into the log message body.
;; (Also note that `log-edit-set-header' inserts all other headers
;; before Summary.)
(when log-edit-setup-add-author
(insert (log-edit--make-header-line "Author")))
(insert (log-edit--make-header-line "Summary") "\n")
(end-of-line -1)))