@matheusbsbs / matheus-bagliano / commits / 2ac2b19601
Fork 0

git.el: Move point after the log message header when entering log-edit mode.

Suggested by Han-Wen Nienhuys. Signed-off-by: Alexandre Julliard <julliard@winehq.org> Signed-off-by: Junio C Hamano <junkio@cox.net>

Alexandre Julliard committed Nov 3, 2006 at 17:42 UTC 2ac2b19601cd8db8660a8d55647079f1ff4885b1
1 file changed +2 -1
contrib/emacs/git.el
+2 -1
@@ -899,7 +899,8 @@ and returns the process output as a string."
899 (2 font-lock-function-name-face))
900 (,(concat "^\\(" (regexp-quote git-log-msg-separator) "\\)$")
901 (1 font-lock-comment-face)))))
902 - (log-edit #'git-do-commit nil #'git-log-edit-files buffer))))
902 + (log-edit #'git-do-commit nil #'git-log-edit-files buffer)
903 + (re-search-forward (regexp-quote (concat git-log-msg-separator "\n")) nil t))))
904
905 (defun git-find-file ()
906 "Visit the current file in its own buffer."