diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-11-18 00:24:06 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-11-18 00:24:06 -0500 |
commit | 01d98028dc951bbea4ed451474078aef296718dd (patch) | |
tree | ecf7851ecfef39418ee3af3f5d001bef16413a3a /lisp | |
parent | 3c631ee3315344d77e4f64c13c32d5b43f381c38 (diff) | |
download | emacs.d-01d98028dc951bbea4ed451474078aef296718dd.tar.gz |
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.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/km-magit.el | 1 |
1 files changed, 1 insertions, 0 deletions
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))))) |