Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 37D71431FD2 for ; Tue, 24 Jan 2012 22:15:15 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yEWDoFs2n24H for ; Tue, 24 Jan 2012 22:15:14 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7089C431FB6 for ; Tue, 24 Jan 2012 22:15:14 -0800 (PST) Received: by wibhi8 with SMTP id hi8so2202085wib.26 for ; Tue, 24 Jan 2012 22:15:13 -0800 (PST) Received: by 10.180.95.199 with SMTP id dm7mr25944401wib.9.1327472113432; Tue, 24 Jan 2012 22:15:13 -0800 (PST) Received: from hotblack-desiato.hh.sledj.net (host81-149-164-25.in-addr.btopenworld.com. [81.149.164.25]) by mx.google.com with ESMTPS id hc10sm19248203wib.8.2012.01.24.22.15.11 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 24 Jan 2012 22:15:12 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id ECFAB9FD47; Wed, 25 Jan 2012 06:15:09 +0000 (GMT) To: Jameson Graef Rollins , notmuch@notmuchmail.org Subject: Re: [PATCH 1/3] emacs: Don't return the button from `notmuch-show-insert-part-header'. In-Reply-To: <87bopszxna.fsf@servo.finestructure.net> References: <1327052612-1040-1-git-send-email-dme@dme.org> <1327409620-10133-1-git-send-email-dme@dme.org> <1327409620-10133-2-git-send-email-dme@dme.org> <87k44hym3i.fsf@servo.finestructure.net> <87bopszxna.fsf@servo.finestructure.net> User-Agent: Notmuch/0.11+105~g08b3b0f (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Wed, 25 Jan 2012 06:15:06 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Gm-Message-State: ALoCoQnlN1QN8OQTj9PnYhMxFxV4vDz3Gv52UN2dVQTCCrHalBarQdgIGuU5dTR/qIu/sTbjQLmu X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Wed, 25 Jan 2012 06:15:15 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Tue, 24 Jan 2012 11:52:09 -0800, Jameson Graef Rollins wrote: > On Tue, 24 Jan 2012 19:25:19 +0000, David Edmondson wrote: > > On Tue, 24 Jan 2012 10:46:57 -0800, Jameson Graef Rollins wrote: > > > Is there a reason it's really necessary to make this change? Can't > > > callers just ignore the returned button if they don't care about it > > > further? I can see that maybe it's nice to be able to specify > > > parameters at creation time, but I'm not sure why that requires throw= ing > > > out the returned object as well. > >=20 > > Patches 2 and 3 in that series can result in the button not being > > inserted. >=20 > Can patches 2 and 3 be rewritten so they are compatible with the button > being returned by the button creation function? No. The whole purpose of 2 and 3 is that they don't insert a button in some circumstances. If no button is inserted then there is no button to return. The changes to `notmuch-show-insert-part-multipart/signed' and `notmuch-show-insert-part-multipart/encrypted' in patch 1 could be re-written to anticipate that a button might not be returned, but the resulting code was more complex that that I sent. > > > I can see that maybe it's nice to be able to specify parameters at > > > creation time, but I'm not sure why that requires throwing out the > > > returned object as well. Do you have a specific use case for this? --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8fneoACgkQaezQq/BJZRYxLwCfVU7BLe2QG91SPjoehqJ1YLZM FBgAnAzPRbV4a8T5YG+fxP5/+lT4yWa7 =fZ6e -----END PGP SIGNATURE----- --=-=-=--