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 E29A26DE26B6 for ; Mon, 19 Mar 2018 14:40:50 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, 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 UXGWhIpxHCc8 for ; Mon, 19 Mar 2018 14:40:50 -0700 (PDT) Received: from istari.evenmere.org (istari.evenmere.org [136.248.125.194]) by arlo.cworth.org (Postfix) with ESMTP id E83AD6DE26B5 for ; Mon, 19 Mar 2018 14:40:49 -0700 (PDT) Received: by istari.evenmere.org (Postfix, from userid 113) id 73CBF1E006A; Mon, 19 Mar 2018 17:40:49 -0400 (EDT) Received: from [IPv6:2001:4878:a000:3000:6913:27b1:7061:fad7] (unknown [IPv6:2001:4878:a000:3000:6913:27b1:7061:fad7]) by istari.evenmere.org (Postfix) with ESMTPSA id 56D871E0048; Mon, 19 Mar 2018 17:40:47 -0400 (EDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: tip: how to not forget attachments From: Brian Sniffen X-Mailer: iPhone Mail (15E5216a) In-Reply-To: <87605r253k.fsf@curie.anarc.at> Date: Mon, 19 Mar 2018 17:40:40 -0400 Cc: notmuch@notmuchmail.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <87d10042pu.fsf@curie.anarc.at> <87woy8vx7i.fsf@tesseract.cs.unb.ca> <87a7v42bv9.fsf@curie.anarc.at> <874llc2bkp.fsf@curie.anarc.at> <87fu4v27hb.fsf@curie.anarc.at> <64758D7F-2CB7-4D48-ABB9-143C75785CB0@evenmere.org> <87605r253k.fsf@curie.anarc.at> To: =?utf-8?Q?Antoine_Beaupr=C3=A9?= 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: Mon, 19 Mar 2018 21:40:51 -0000 Throw your function name, catch it outside the save-excursion, and raise an e= rror there? --=20 Brian Sniffen > On Mar 19, 2018, at 4:16 PM, Antoine Beaupr=C3=A9 wrote: >=20 >> On 2018-03-19 15:57:05, Brian Sniffen wrote: >> `error` doesn=E2=80=99t do any unwinding; it leaves the program state whe= rever it was for analysis. You probably want throw/catch, as described at h= ttps://www.gnu.org/software/emacs/manual/html_node/elisp/Catch-and-Throw.htm= l#Catch-and-Throw >=20 > Wait, but what tag would I throw? message-send doesn't do any catching > around the hook calls... >=20 > a. >=20 > --=20 > The United States is a nation of laws: > badly written and randomly enforced. > - Frank Zappa