From: Alexandre Julliard Date: Tue, 27 Jan 2009 10:59:54 +0000 (+0100) Subject: git.el: Set a regexp for paragraph-separate in log-edit mode. X-Git-Tag: v1.6.2-rc0~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/efd49f50fc087df2ad46f194ca848c5335f4cca9?ds=inline;hp=--cc 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 --- efd49f50fc087df2ad46f194ca848c5335f4cca9 diff --git a/contrib/emacs/git.el b/contrib/emacs/git.el index 415765ec51..f86c437518 100644 --- a/contrib/emacs/git.el +++ b/contrib/emacs/git.el @@ -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))))