From: Mark Walters Date: Tue, 10 Apr 2012 17:04:54 +0000 (+0100) Subject: [PATCH 0/2] Allow JSON to use non-entire thread, and use for elide X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ca0ca107e1a6a8ef5e7ad52cb9a8e0e6a58bc23e;p=notmuch-archives.git [PATCH 0/2] Allow JSON to use non-entire thread, and use for elide --- diff --git a/9d/89985bbe0e6715a63e148305045ba6f53abd8a b/9d/89985bbe0e6715a63e148305045ba6f53abd8a new file mode 100644 index 000000000..2f3223d17 --- /dev/null +++ b/9d/89985bbe0e6715a63e148305045ba6f53abd8a @@ -0,0 +1,99 @@ +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 135A9431FAF + for ; Tue, 10 Apr 2012 10:04:57 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0.201 +X-Spam-Level: +X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, + FREEMAIL_ENVFROM_END_DIGIT=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 1p6RtZ2kikj2 for ; + Tue, 10 Apr 2012 10:04:55 -0700 (PDT) +Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com + [209.85.212.169]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 7AACA431FAE + for ; Tue, 10 Apr 2012 10:04:55 -0700 (PDT) +Received: by wibhm17 with SMTP id hm17so3400444wib.2 + for ; Tue, 10 Apr 2012 10:04:54 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer; + bh=r9o7B+ofWq3gqbml7d+60U1a3k7h4dZb8YxKn2E8huM=; + b=JtxD7dy18c6OjJb5E6fh0rCk/qUtuCpVopaWXL99sfQgG6+pAikgRsoy6/zKcugZ9S + CR0pIv7JiGqPRrmXnQXSW9nQjZrsks2XCdbapWm6M+9q0/N+4yk6vT6utTot/U00ts7K + PjzV+BcTvbZT5GBy+S5JYSrvGaTRuGOh7oYlHyNXuDCbY5ohiiT3oP6c2EEh9o0BFuXI + +wbc+POmafA6+3d0xAhrnmkuRwzdKgkyRE5P8+A7Z04+6btlPYohSTDwUCo0O31C5q29 + GcvijSySQOFCbqTvNfW0CBejN1c/DixwK2vqSC4iOUjaplKHSSKH9kDkkP0Z/nKrrX5n + 2J+Q== +Received: by 10.180.92.130 with SMTP id cm2mr8846326wib.4.1334077494114; + Tue, 10 Apr 2012 10:04:54 -0700 (PDT) +Received: from localhost (94-192-233-223.zone6.bethere.co.uk. + [94.192.233.223]) by mx.google.com with ESMTPS id + ea6sm38820791wib.5.2012.04.10.10.04.51 (version=TLSv1/SSLv3 cipher=OTHER); + Tue, 10 Apr 2012 10:04:52 -0700 (PDT) +From: Mark Walters +To: notmuch@notmuchmail.org +Subject: [PATCH 0/2] Allow JSON to use non-entire thread, and use for elide +Date: Tue, 10 Apr 2012 18:04:54 +0100 +Message-Id: <1334077496-9172-1-git-send-email-markwalters1009@gmail.com> +X-Mailer: git-send-email 1.7.9.1 +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 Apr 2012 17:04:57 -0000 + +These two patches supersede the series [1] and the first patch +replaces [2]. + +The first patch allows --entire-thread=false for notmuch-show.c when +the output format is JSON. In the previous version [2] Austin +suggested that we should output an empty message (i.e., {}) for +non-matching messages rather than just omitting them. This version +does that. + +Note the first patch is entirely functional without the second. + +The second patch uses the first to implement the "elide" functionality +in the emacs interface on the cli-side rather than on the emacs +side. This is substantially faster in some cases. In current emacs +show view it is a relatively small speed-up which is only noticable +with large threads. However, it will be used by notmuch-pick [3] and +there the speed up will be important. (I have a current version of +notmuch-pick which I will submit in the near future.) + +Best wishes + +Mark + + +[1] id:"1330033294-21980-1-git-send-email-markwalters1009@gmail.com" +[2] id:"1331377533-30262-3-git-send-email-markwalters1009@gmail.com" +[3] id:"1329072579-27340-1-git-send-email-markwalters1009@gmail.com" + +Mark Walters (2): + cli: make --entire-thread=false work for format=json. + emacs: make elide messages use notmuch-show for omitting messages. + + emacs/notmuch-show.el | 17 +++++++++-------- + notmuch-show.c | 33 ++++++++++++++++++++++++++++----- + 2 files changed, 37 insertions(+), 13 deletions(-) + +-- +1.7.9.1 +