From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id DC9626DE01EC for ; Sat, 29 Sep 2018 18:20:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=5 tests=[AWL=0.013, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i9559LqoAYv3 for ; Sat, 29 Sep 2018 18:20:21 -0700 (PDT) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 8AFF06DE0151 for ; Sat, 29 Sep 2018 18:20:21 -0700 (PDT) Received: from remotemail by fethera.tethera.net with local (Exim 4.89) (envelope-from ) id 1g6QPC-00021R-B6; Sat, 29 Sep 2018 21:20:18 -0400 Received: (nullmailer pid 29518 invoked by uid 1000); Sun, 30 Sep 2018 01:06:46 -0000 From: David Bremner To: David Edmondson , notmuch@notmuchmail.org Subject: Re: [PATCH v1 2/2] emacs: Call `notmuch-mua-send-hook' hooks when sending a message In-Reply-To: <87d0sx2mbe.fsf@tethera.net> References: <20180925150910.22318-1-dme@dme.org> <20180925150910.22318-3-dme@dme.org> <87pnwz3ei5.fsf@tethera.net> <87d0sx2mbe.fsf@tethera.net> Date: Sat, 29 Sep 2018 22:06:46 -0300 Message-ID: <875zyn3iah.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Sep 2018 01:20:23 -0000 David Bremner writes: > David Bremner writes: > >> >> This looks plausible to me, and of course the test passes. I did wonder >> if this means that people actually using notmuch-user-agent would run >> the hook twice now? > > After a certain amount of re-reading the docstring of > define-mail-user-agent, and the source for compose-mail, I see that the > HOOKVAR parameter is something that users of the mail-agent can tweak, > rather than something that e.g. compose-mail promises to run. So I think > your patch is fine. And I'm 99% sure the issue with the spurious output > is just a little bug in test-lib.sh pushed to master d