If so required, Patcher lets you manually edit the log message after
having initialized it. Log message editing happens in a special buffer
called *<project name> Patcher Project Log Message*
.
This buffer is governed by a major mode called
patcher-logmsg-mode
. This mode offers a hook,
patcher-logmsg-mode-hook
, which you can use to plug additional
behavior like turning on font lock. If you do so, you might also want to
have a look at patcher-logmsg-font-lock-keywords
,
patcher-comment-face
and patcher-reference-face
which are
the built-in elements for log message fontification.
When the log message buffer is initialized, it starts with an informative comment header. The actual log message starts at the first non blank line after this header.
While editing this buffer, commands to insert the items described in Log Message Elements are at your disposal. These commands perform insertion at point:
patcher-logmsg-insert-subject
patcher-logmsg-insert-change-logs
patcher-logmsg-insert-compressed-change-logs
In addition to these commands, you can also completely reinitialize the
log message by calling the function patcher-logmsg-init-message
,
bound to C-c C-p i. Caution: this command first erases the buffer.
Once you're happy with your log message, you proceed to the commit
operation by calling the function patcher-logmsg-commit
, bound to
either C-c C-p c as in mail buffers, or directly to C-c C-c.
Finally, the log message offers two more commands in case you change your mind about the commit:
patcher-logmsg-cancel
patcher-logmsg-kill