git.el: Set a regexp for paragraph-separate in log-edit mode.
This allows using fill-paragraph on the log message without interference from the various header fields. Signed-off-by: Alexandre Julliard <julliard@winehq.org>
Alexandre Julliard committed
Jan 27, 2009 at 11:59 UTC
efd49f50fc087df2ad46f194ca848c5335f4cca9
1 file changed
+1
contrib/emacs/git.el
+1
@@ -1329,6 +1329,7 @@ Return the list of files that haven't been handled."
1329
(log-edit-diff-function . git-log-edit-diff)) buffer)
1330
(log-edit 'git-do-commit nil 'git-log-edit-files buffer))
1331
(setq font-lock-keywords (font-lock-compile-keywords git-log-edit-font-lock-keywords))
1332
+ (setq paragraph-separate (concat (regexp-quote git-log-msg-separator) "$\\|Author: \\|Date: \\|Merge: \\|Signed-off-by: \\|\f\\|[ ]*$"))
1333
(setq buffer-file-coding-system coding-system)
1334
(re-search-forward (regexp-quote (concat git-log-msg-separator "\n")) nil t))))
1335