From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yAg6NmgTimL7fgEAbAwnHQ (envelope-from ) for ; Sun, 22 May 2022 12:41:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yL/dNWgTimJaxgAAauVa8A (envelope-from ) for ; Sun, 22 May 2022 12:41:44 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 40D402CE16 for ; Sun, 22 May 2022 12:41:44 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 5A9955E022; Sun, 22 May 2022 10:41:41 +0000 (UTC) X-Greylist: delayed 356 seconds by postgrey-1.36 at yantan; Sun, 22 May 2022 07:14:37 UTC Received: from mail.choca.pics (mail.choca.pics [80.67.172.235]) by mail.notmuchmail.org (Postfix) with ESMTPS id 16CB75E00F for ; Sun, 22 May 2022 07:14:37 +0000 (UTC) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id C972C18197CC7 for ; Sun, 22 May 2022 09:08:39 +0200 (CEST) Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id EAXod4e4T5Sj for ; Sun, 22 May 2022 09:08:39 +0200 (CEST) Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id E4A821817C2C5 for ; Sun, 22 May 2022 09:08:38 +0200 (CEST) X-Virus-Scanned: amavisd-new at choca.pics Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id MQZy20DrDrEy for ; Sun, 22 May 2022 09:08:38 +0200 (CEST) Received: from localhost (153.226.95.79.rev.sfr.net [79.95.226.153]) by mail.choca.pics (Postfix) with ESMTPSA id 91D6C18193F60 for ; Sun, 22 May 2022 09:08:38 +0200 (CEST) From: Damien Cassou To: notmuch@notmuchmail.org Subject: [PATCH] Fix notmuch-mua.el notmuch-mua-mail Date: Sun, 22 May 2022 09:08:38 +0200 Message-ID: <87fsl22geh.fsf@cassou.me> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-MailFrom: damien@cassou.me X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: 4OKVMIR34CT3AQYG2V6PTJJDUM3TBTVM X-Message-ID-Hash: 4OKVMIR34CT3AQYG2V6PTJJDUM3TBTVM X-Mailman-Approved-At: Sun, 22 May 2022 10:41:38 +0000 X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1653216104; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type:list-id: list-help:list-owner:list-unsubscribe:list-subscribe:list-post; bh=hv5xHp6VPCBELkERRkslkzrGhDJ+AFe9NkA1RZ1Wm0M=; b=IESpQXsp/h0axQC8SfR2MTnoVPKJBwyMOefBPxgQX+UYAudz7O0KjzyzAhoYysU12LVlRS O2TzSy+YygjeILxYlhLlhycCQPfhi6toiFCOrQDuZrZCGryFqQEfdK54W5kZo7pxBfaH+i wFiu8uDCzvwUuFPjEZsqzsmk9vN/Qv/jnaY+N/ME0+rV4JnWtrLzAawRqpC9qtazWQUx1F +j9MGau7MYvV/fXVy7XZRnmhlwdFXP52ZWWn1zFlcGv4zLkabSnzAVPmVT6158mWkOryEL df1fDAkjLkmTthcPWTl9QwRVt/tIlO/lzVRBzWzgZnfV+pnwYhgqqQclM0xz/A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1653216104; a=rsa-sha256; cv=none; b=NS+quh5tFX9UjqK9AKd6aZza/Q+ZB4EaHIaqUHzq/StBWVCoy6x6xQKdUfzf91SYiVlOMd 9nVAN1eStvlWtiJaARA+Jg3c8kF7Hpe5dYHFy5SV0AFPXxEfn1GrYEdD8jghwcvf+5A64P tmO2DC1tHC7KErWXWKD68U46Zvd2HJIeSZvoEW5XTDLQreGnppvEZ+rs+KdXheLTc5/+OP MU3/J4ieHEWyOsllKeZ1q7x8RCSaMNY9cZTMK9oURJUuZetXULNa620FqGj5sITnM1pfC1 qEZzmkXiIM/IhMRU4H56anylnmeZxvRQ0NYm+S0Uq1PyvjR8c/isYQ1xGOiQMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -3.45 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 40D402CE16 X-Spam-Score: -3.45 X-Migadu-Scanner: scn0.migadu.com X-TUID: OynYKPwLOP0n --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=fix-notmuch-mua-mail.patch --- 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) --=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --=-=-=--