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 473AF429E39 for ; Sun, 8 Jan 2012 17:27:44 -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 Fp5ZDqfg68AZ for ; Sun, 8 Jan 2012 17:27:41 -0800 (PST) Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2457D429E33 for ; Sun, 8 Jan 2012 17:27:41 -0800 (PST) Received: by iakk12 with SMTP id k12so6761631iak.26 for ; Sun, 08 Jan 2012 17:27:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type:content-transfer-encoding; bh=wR9RXdXgD6HkeK9mwyO8LqDmokRXVdfdQQycbY+StRI=; b=xadqdsqBYAjzJS0vsktCTX5gmBkueDAI0XXDJk3AiBn9X99cjTC7jKEM/KtIJjLPRT 6Kpm+DIm2h5Qa3B0Bni757imc3OM3pZUx9saSE+PYAGc6CxvvUfP2zPI2HAKQvuUvzoq W7igVgMr1zjstED9KiSCDPqy2DzdNBIr7/aRE= Received: by 10.43.54.10 with SMTP id vs10mr14059698icb.13.1326072460447; Sun, 08 Jan 2012 17:27:40 -0800 (PST) Received: from localhost (c-68-80-94-73.hsd1.pa.comcast.net. [68.80.94.73]) by mx.google.com with ESMTPS id r18sm244793914ibh.4.2012.01.08.17.27.39 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 08 Jan 2012 17:27:39 -0800 (PST) From: Aaron Ecay To: Adam Wolfe Gordon , notmuch@notmuchmail.org Subject: Re: [PATCH 4/4] emacs: Use the new JSON reply format. In-Reply-To: <1326009162-19524-5-git-send-email-awg+notmuch@xvx.ca> 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.1+56~gd709fd6 (http://notmuchmail.org) Emacs/24.0.92.3 (i386-apple-darwin10.8.0) Date: Sun, 08 Jan 2012 20:27:36 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Mon, 09 Jan 2012 01:27:53 -0000 Adam, One comment below. On Sun, 8 Jan 2012 00:52:42 -0700, Adam Wolfe Gordon = wrote: > From: Adam Wolfe Gordon >=20 > Using the new JSON reply format allows emacs to quote HTML parts > nicely by first parsing them with w3m, then quoting them. This is > very useful for users who regularly receive HTML-only email. >=20 > The behavior for messages that contain plain text parts should be > unchanged, except that an additional quoted line is added to the end > of the reply message. The test has been updated to reflect this. > --- > emacs/notmuch-mua.el | 62 +++++++++++++++++++++++++++++++++++++++-----= ----- > test/emacs | 1 + > 2 files changed, 50 insertions(+), 13 deletions(-) >=20 > diff --git a/emacs/notmuch-mua.el b/emacs/notmuch-mua.el > index 7114e48..7f894cb 100644 > --- a/emacs/notmuch-mua.el > +++ b/emacs/notmuch-mua.el > @@ -19,6 +19,7 @@ > ;; > ;; Authors: David Edmondson >=20=20 > +(require 'json) > (require 'message) >=20=20 > (require 'notmuch-lib) > @@ -71,27 +72,62 @@ list." > (push header message-hidden-headers))) > notmuch-mua-hidden-headers)) >=20=20 > +(defun w3m-region (start end)) ;; From `w3m.el'. What is the purpose of the above line? If it is to make the compiler aware of the function, you should use =E2=80=98declare-function=E2=80=99 in= stead. Defun will erase the original definition of the w3m-region function. --=20 Aaron Ecay