diff options
author | Damien Cassou <damien@cassou.me> | 2022-05-22 08:32:38 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-05-22 13:24:21 +0200 |
commit | 959d041677205a370b21bc89503fa1d7e5a9bd6b (patch) | |
tree | 0de241598bb73e1b60d61276f2b93f65aae9692b /lisp/mail/emacsbug.el | |
parent | 35d0190b0b91c085c73bbe6c2b8e93ea8288b589 (diff) | |
download | emacs-959d041677205a370b21bc89503fa1d7e5a9bd6b.tar.gz emacs-959d041677205a370b21bc89503fa1d7e5a9bd6b.tar.bz2 emacs-959d041677205a370b21bc89503fa1d7e5a9bd6b.zip |
Fix submit-emacs-patch
submit-emacs-patch creates a new message and immediately inserts new
lines without first moving the point to the message body. This
doesn't work with notmuch (and its notmuch-user-agent symbol) because
the point starts in the headers and nothing in Emacs specifies that
the mua should move point to the body automatically.
* lisp/mail/emacsbug.el (submit-emacs-patch): Make sure point is in
the body before inserting new lines (bug#55571).
Diffstat (limited to 'lisp/mail/emacsbug.el')
-rw-r--r-- | lisp/mail/emacsbug.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/mail/emacsbug.el b/lisp/mail/emacsbug.el index 8cb4a00009f..df2b7a7453b 100644 --- a/lisp/mail/emacsbug.el +++ b/lisp/mail/emacsbug.el @@ -516,6 +516,7 @@ Message buffer where you can explain more about the patch." (view-mode 1) (button-mode 1)) (message-mail-other-window report-emacs-bug-address subject) + (message-goto-body) (insert "\n\n\n") (emacs-bug--system-description) (mml-attach-file file "text/patch" nil "attachment") |