From 01d98028dc951bbea4ed451474078aef296718dd Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Wed, 18 Nov 2020 00:24:06 -0500 Subject: km/magit-patch-create-series: Handle already-visited cover letter In the unlikely case that there's already a buffer visiting the cover letter, point may be beyond the subject. --- lisp/km-magit.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/km-magit.el b/lisp/km-magit.el index 3828812..2d44808 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -913,6 +913,7 @@ appending [M/N] to each entry." (magit-call-git "commit" "-mtweak cover" "--" cover)) (when cover (find-file-other-window cover) + (goto-char (point-min)) (re-search-forward (rx "Subject: [PATCH" (zero-or-more not-newline) "] ")) (setq buffer-read-only nil))))) -- cgit v1.2.3