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 4C559431FD0 for ; Mon, 9 Jan 2012 23:25:47 -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 bnTNkhKtDFE5 for ; Mon, 9 Jan 2012 23:25:43 -0800 (PST) Received: from mail-we0-f181.google.com (mail-we0-f181.google.com [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2082C431FB6 for ; Mon, 9 Jan 2012 23:25:43 -0800 (PST) Received: by werm12 with SMTP id m12so3924359wer.26 for ; Mon, 09 Jan 2012 23:25:40 -0800 (PST) Received: by 10.216.138.151 with SMTP id a23mr8680159wej.52.1326180340467; Mon, 09 Jan 2012 23:25:40 -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 f36sm38764046wbo.10.2012.01.09.23.25.38 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 09 Jan 2012 23:25:39 -0800 (PST) Received: by hotblack-desiato.hh.sledj.net (Postfix, from userid 30000) id D6AC2A05E9; Tue, 10 Jan 2012 07:25:36 +0000 (GMT) To: Adam Wolfe Gordon Subject: Re: [PATCH 4/4] emacs: Use the new JSON reply format. In-Reply-To: References: <1326009162-19524-1-git-send-email-awg+notmuch@xvx.ca> <1326009162-19524-5-git-send-email-awg+notmuch@xvx.ca> User-Agent: Notmuch/0.10.2+151~gbf1dc2b (http://notmuchmail.org) Emacs/24.0.92.1 (x86_64-pc-linux-gnu) From: David Edmondson Date: Tue, 10 Jan 2012 07:25:32 +0000 Message-ID: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Cc: notmuch@notmuchmail.org 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: Tue, 10 Jan 2012 07:25:47 -0000 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 9 Jan 2012 19:10:48 -0700, Adam Wolfe Gordon wrote: > > Using w3m means that you should `require' it. What happens when a user > > doesn't have it? (Either the elisp or the command.) >=20 > This was my initial thought, but when I looked at notmuch-show.el, > which uses w3m features, I noticed that it doesn't have a require. To > be clear, this patch requires w3m.el (not just the w3m binary), which > I don't think anything else in notmuch does. >=20 > In the previous version I had a customize variable specifying whether > to quote HTML parts, which meant that if the user could set the > customize variable to false and everything would work without w3m.el. > I'd like not to introduce a new prerequisite, so if there's a way to > make w3m.el optional that would be my preference. Can you provide > some guidance on this? My suggestion would be to move the `html to text' functionality to a new .el, as we might have more than one way to achieve it (emacs 24 has `shr', for example). Have `notmuch-mua.el' use a generically named function to perform the transformation from html to text and that function should determine the best way to achieve it. Testing for `w3m.el' is relatively easy (`require' it and check for error). Testing for `w3m' itself can be done using some code similar to `notmuch-address-locate-command' (search the list - it's not yet integrated), which is itself just copied from w3m (and should end up in `notmuch-lib.el'). --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk8L5+wACgkQaezQq/BJZRYd1gCdH/Yct01nvLCKJGPt7PnwErVx GWAAniT5KgNj7sUUvH1KUICjs0XApsOs =IwEr -----END PGP SIGNATURE----- --=-=-=--