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 B800A429E25 for ; Thu, 12 Jan 2012 00:34:54 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 AHdEYsj60U71 for ; Thu, 12 Jan 2012 00:34:54 -0800 (PST) Received: from mail-bk0-f53.google.com (mail-bk0-f53.google.com [209.85.214.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id DE400431FB6 for ; Thu, 12 Jan 2012 00:34:53 -0800 (PST) Received: by bkat2 with SMTP id t2so1291509bka.26 for ; Thu, 12 Jan 2012 00:34:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; bh=MZH0+gmFkgHtz8k0B5cbNBFfOs2fBrMGAM+lEWp70OA=; b=SnN6j3AjW+Rz95JQ2PqSWtY3HoJr6NvkAEjpEgRm3cqqrk1gdI3Zp0eZTDaViN+4G9 +rWjBjQP7bGCOFuGdCaNmQk1lbFuX1G3kE+gzKu+f2Qp6LQEh9Ltgb6wq5eKc4ayqezN e/BnlAYt7Ivet05FG7svhcwgpjhLWi3pOFE44= Received: by 10.204.152.219 with SMTP id h27mr783918bkw.75.1326357291257; Thu, 12 Jan 2012 00:34:51 -0800 (PST) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id gg11sm9145304bkc.9.2012.01.12.00.34.49 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jan 2012 00:34:49 -0800 (PST) From: Dmitry Kurochkin To: Adam Wolfe Gordon , David Edmondson 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+135~gb811a3c (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Thu, 12 Jan 2012 12:33:58 +0400 Message-ID: <87k44xgw09.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Thu, 12 Jan 2012 08:34:55 -0000 Hi Adam. On Mon, 9 Jan 2012 19:10:48 -0700, Adam Wolfe Gordon wrote: > Hi David, >=20 > Thanks for the review. Most of the things you've suggested are easy > changes, and I think obvious improvements, so I'll change them for the > next version. A bit of discussion on the more involved things below: >=20 > On Mon, Jan 9, 2012 at 01:50, David Edmondson wrote: > > On Sun, =C2=A08 Jan 2012 00:52:42 -0700, Adam Wolfe Gordon wrote: > >> +(defun w3m-region (start end)) ;; From `w3m.el'. > >> +(defun notmuch-mua-quote-part (part) > >> + =C2=A0(with-temp-buffer > >> + =C2=A0 =C2=A0(insert part) > >> + =C2=A0 =C2=A0(message-mode) > >> + =C2=A0 =C2=A0(fill-region (point-min) (point-max)) > >> + =C2=A0 =C2=A0(goto-char (point-min)) > >> + =C2=A0 =C2=A0(perform-replace "^" "> " nil t nil) > >> + =C2=A0 =C2=A0(set-buffer-modified-p nil) > >> + =C2=A0 =C2=A0(buffer-substring (point-min) (point-max)))) > > > > Couldn't all of this be done directly in the reply buffer? >=20 > Indeed, it could, I just hadn't thought of it. I'll do this for the > next version. >=20 > > 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? >=20 I did not follow the rest of the discussion, so sorry if I missed something obvious. But why can't we render HTML parts in replies the same way we do in notmuch-show (using `mm-display-part')? That should not introduce a w3m.el requirement, would use the same renderer as configured for show and hence would produce consistent output in show and reply. Regards, Dmitry > --=20 > Adam Wolfe Gordon > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch