Skip to content

Commit

Permalink
git.el: Set a regexp for paragraph-separate in log-edit mode.
Browse files Browse the repository at this point in the history
This allows using fill-paragraph on the log message without
interference from the various header fields.

Signed-off-by: Alexandre Julliard <[email protected]>
  • Loading branch information
julliard committed Feb 7, 2009
1 parent a7da5c4 commit efd49f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contrib/emacs/git.el
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,7 @@ Return the list of files that haven't been handled."
(log-edit-diff-function . git-log-edit-diff)) buffer)
(log-edit 'git-do-commit nil 'git-log-edit-files buffer))
(setq font-lock-keywords (font-lock-compile-keywords git-log-edit-font-lock-keywords))
(setq paragraph-separate (concat (regexp-quote git-log-msg-separator) "$\\|Author: \\|Date: \\|Merge: \\|Signed-off-by: \\|\f\\|[ ]*$"))
(setq buffer-file-coding-system coding-system)
(re-search-forward (regexp-quote (concat git-log-msg-separator "\n")) nil t))))

Expand Down

0 comments on commit efd49f5

Please sign in to comment.