[PATCH] Fix notmuch-mua.el notmuch-mua-mail

Subject:[PATCH] Fix notmuch-mua.el notmuch-mua-mail

Date:Sun, 22 May 2022 09:08:38 +0200

To:notmuch@notmuchmail.org

Cc:

From:Damien Cassou


Hi,

Emacs' `mail-user-agent` variable specifies several options and
notmuch-mua.el defines a new one that can be used with:

  (setq mail-user-agent 'notmuch-user-agent)

This setup works well except that notmuch-mua-mail moves point to the TO
header at the end whereas message, sendmail and gnus all move point to
the BODY. This is ok because nothing in the Emacs documentation says
that point should be in the BODY but some functions expect it there such
as submit-emacs-patch: I sent a fix upstream in
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55571 so point doesn't
have to be in the BODY at then end.

The attached patch makes sure that notmuch-mua-mail moves point to the
BODY at the end so that its behavior is closer to the one of other MUAs.

Best

-- 
Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: