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 72AC76DE16F0 for ; Wed, 13 Jun 2018 10:18:30 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.004 X-Spam-Level: X-Spam-Status: No, score=0.004 tagged_above=-999 required=5 tests=[AWL=-0.006, RCVD_IN_DNSWL_NONE=-0.0001, T_SPF_PERMERROR=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 Ey9WxGyvwj53 for ; Wed, 13 Jun 2018 10:18:24 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 5D84E6DE16D3 for ; Wed, 13 Jun 2018 10:18:24 -0700 (PDT) Received: from fifthhorseman.net (ool-6c3a0662.static.optonline.net [108.58.6.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 94D90F99A; Wed, 13 Jun 2018 13:18:22 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 560E0202E0; Wed, 13 Jun 2018 13:04:22 -0400 (EDT) From: Daniel Kahn Gillmor To: David Bremner , Jameson Graef Rollins , notmuch@notmuchmail.org Subject: Re: [PATCH] emacs: use new show --decrypt=stash feature in emacs UI In-Reply-To: <87zhzy1wml.fsf@tesseract.cs.unb.ca> References: <20180611230900.11211-1-jrollins@finestructure.net> <878t7k5clp.fsf@fifthhorseman.net> <87y3fj4np2.fsf@fifthhorseman.net> <87vaanqkwq.fsf@ligo.caltech.edu> <87po0u4sns.fsf@fifthhorseman.net> <87zhzy1wml.fsf@tesseract.cs.unb.ca> Date: Wed, 13 Jun 2018 13:04:14 -0400 Message-ID: <87muvy4nzl.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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: Wed, 13 Jun 2018 17:18:30 -0000 --=-=-= Content-Type: text/plain On Wed 2018-06-13 13:25:54 -0300, David Bremner wrote: > What about using symbols and some kind of case? less efficient but > better error checking symbols would also make for a more brittle interaction between future versions of the notmuch cli and notmuch-emacs, but i agree that the error checking would probably be worth it (it's not hard to update the list of symbols if a new option gets added to "show --decrypt". also, it looks like notmuch-mua-reply reasons about notmuch-show-process-crypto to create the --decrypt= arg for "notmuch reply". "notmuch reply" doesn't have --decrypt=stash (and i don't think there's any sensible workflow that would warrant puting it there) so some reasoning needs to be done there. symbols would make that a more sensible approach. --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQTTaP514aqS9uSbmdJsHx7ezFD6UwUCWyFOjgAKCRBsHx7ezFD6 U6fvAPwPH3szEIl0oTgVQIcHWuczKvOdMEIy79fggF7zNxoRDAD7BVhfg4In+PdH KZO6iXahw7zUaL5/huizAOvcpwbAOAw= =hn86 -----END PGP SIGNATURE----- --=-=-=--