unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Damien Cassou <damien@cassou.me>
To: notmuch@notmuchmail.org
Subject: [PATCH] Fix notmuch-mua.el notmuch-mua-mail
Date: Sun, 22 May 2022 09:08:38 +0200	[thread overview]
Message-ID: <87fsl22geh.fsf@cassou.me> (raw)

[-- Attachment #1: Type: text/plain, Size: 888 bytes --]

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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: fix-notmuch-mua-mail.patch --]
[-- Type: text/x-patch, Size: 323 bytes --]

--- notmuch-mua.el	1970-01-01 01:00:01.000000000 +0100
+++ notmuch-mua2.el	2022-05-22 08:58:10.073043741 +0200
@@ -418,7 +418,7 @@
   (message-hide-headers)
   (set-buffer-modified-p nil)
   (notmuch-mua-maybe-set-window-dedicated)
-  (message-goto-to))
+  (message-goto-body))
 
 (defvar notmuch-mua-sender-history nil)
 

[-- Attachment #3: Type: text/plain, Size: 0 bytes --]



             reply	other threads:[~2022-05-22 10:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-22  7:08 Damien Cassou [this message]
2022-05-23  6:21 ` [PATCH] Fix notmuch-mua.el notmuch-mua-mail Damien Cassou
2022-06-01  9:49   ` David Bremner
2022-06-01 19:57     ` Damien Cassou
2022-06-02 11:12       ` David Bremner
2022-06-02 12:53         ` Damien Cassou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87fsl22geh.fsf@cassou.me \
    --to=damien@cassou.me \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).