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 21BCB431FBC for ; Sun, 27 May 2012 01:22:32 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 2.7 X-Spam-Level: ** X-Spam-Status: No, score=2.7 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, FREEMAIL_REPLY=2.499, 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 ZtOAZMLlht25 for ; Sun, 27 May 2012 01:22:31 -0700 (PDT) Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com [209.85.212.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7DD1C431FAF for ; Sun, 27 May 2012 01:22:31 -0700 (PDT) Received: by wibhr14 with SMTP id hr14so647090wib.2 for ; Sun, 27 May 2012 01:22:30 -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=NgIIZmveDEU6VU2Oc39jxsdo8b65k7G8WPqmXHGgiGU=; b=Ej9hIG6lkalXXOJlWjP6j7g25HshiuZrOF0TTaEgwyyV9vmxWxLtDwzmtv4XSYUsi9 vp3K5FqYoE2m4zaDSReeyEXM7dtD8jgi5WhbSVdPLp3KnlrElp9JNWwLMuKh/3nznHNF POSRxRlBYiEP/lX7IQo+q8ZD7jYFzrbtBYeQySKkAgu/Fip7ejbNkXq6DDymTd8Lelom iCYB4vB+2Ma090AQ+umuO7r3Di8bkIi7ojj7su61gTKozJBEcX9Pwp4EmNCjVtsefGvS zn4M4xv9AQwxUY96q9P/Sf5N3uSvS0FWu1fMS/wTscieaxxugJAZmBnG+nx2ogI/434W NDFg== Received: by 10.180.14.193 with SMTP id r1mr7681111wic.13.1338106950153; Sun, 27 May 2012 01:22:30 -0700 (PDT) Received: from localhost (94-192-233-223.zone6.bethere.co.uk. [94.192.233.223]) by mx.google.com with ESMTPS id hv7sm13841283wib.0.2012.05.27.01.22.28 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 27 May 2012 01:22:28 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH v6 0/6] Allow JSON to use non-entire thread, and use for elide Date: Sun, 27 May 2012 09:22:20 +0100 Message-Id: <1338106946-7611-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: Sun, 27 May 2012 08:22:32 -0000 This is version 6 of this patch series: version 5 is at id:"1338047694-32548-1-git-send-email-markwalters1009@gmail.com". The changes for this version: As suggest by Peter in id:"20120527123253.GA3049@hili.localdomain" the command line handling for keywords is changed so that if the option is specified as --option (i.e., not --option=) then an empty string is passed to the parser. Thus the caller can deal with this case rather than it being an automatic error. This makes it easier to add options to an existing boolean option without breaking the syntax. Patch 3/6 has a one line change in response to the above change. The previous version also had some whitespace errors that have been fixed. Patch 6/6 is a trivial whitespace fix. It is right next to the main changes so may be worth taking (since any patches touching this code will need to be fixed up anyway) but is obviously independent of the series. Best wishes Mark Mark Walters (6): cli: command line parsing: allow default for keyword options cli: Let json output "null" messages for non --entire-thread cli: make --entire-thread=false work for format=json. Update devel/schemata for --entire-thread=false emacs: make elide messages use notmuch-show for omitting messages. cli: notmuch-show.c fix whitespace error command-line-arguments.c | 17 +++++++++++--- devel/TODO | 2 - devel/schemata | 2 +- emacs/notmuch-show.el | 18 ++++++++------ notmuch-client.h | 1 + notmuch-show.c | 54 +++++++++++++++++++++++++++++++++++++-------- 6 files changed, 69 insertions(+), 25 deletions(-) -- 1.7.9.1