Skip to content

Commit efd49f5

Browse files
committed
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>
1 parent a7da5c4 commit efd49f5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/emacs/git.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1329,6 +1329,7 @@ Return the list of files that haven't been handled."
13291329
(log-edit-diff-function . git-log-edit-diff)) buffer)
13301330
(log-edit 'git-do-commit nil 'git-log-edit-files buffer))
13311331
(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\\|[ ]*$"))
13321333
(setq buffer-file-coding-system coding-system)
13331334
(re-search-forward (regexp-quote (concat git-log-msg-separator "\n")) nil t))))
13341335

0 commit comments

Comments
 (0)