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 65559431FBC for ; Sat, 26 May 2012 08:55:05 -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 5lO0ValXbzwP for ; Sat, 26 May 2012 08:55:05 -0700 (PDT) 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 D1ADA431FB6 for ; Sat, 26 May 2012 08:55:04 -0700 (PDT) Received: by werj55 with SMTP id j55so1411304wer.26 for ; Sat, 26 May 2012 08:55:03 -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=Wgb5n5nStHplXhPtD1RsB8aAhfyBAwA/3Rb6Fiyzl9Q=; b=nfJJ8B7DK7I5XfJXCtn+KqiUVOn7+B3Hvqn78EMjy+GktT29oevH0q1uMnYmrK0+z1 ZjDit/Fs5tyAgkbopa7gddFoPywQRxyWUwz/aWV0MZUud/Czh5snPcSvj+CqfHhKZ/j6 Ljk40ije/vo4MaLPUYNMufmZOSvez+5golfGitFfLX+O9lENE/C+/OYGBx8Y+w2wMZt+ KKQMWH35lXIZ2lLdIlyQP1Ky4CSQTjyMvowuN85/BbgGmsstemz919xao0CLG+FwXVoN DadcLPWIDBOtWmS+25Xc7o+nHai4+5dDQPxdoX4YbeUNf0ReiX8biJ3MzFLhvIhwd5R8 69Ew== Received: by 10.216.213.163 with SMTP id a35mr1517715wep.131.1338047703378; Sat, 26 May 2012 08:55:03 -0700 (PDT) Received: from localhost (94-192-233-223.zone6.bethere.co.uk. [94.192.233.223]) by mx.google.com with ESMTPS id et10sm5919000wib.2.2012.05.26.08.55.01 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 26 May 2012 08:55:02 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH v5 0/5] Allow JSON to use non-entire thread, and use for elide Date: Sat, 26 May 2012 16:54:49 +0100 Message-Id: <1338047694-32548-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: Sat, 26 May 2012 15:55:05 -0000 This is version 5 of this patch series: version 4 is at id:"1335258675-29439-1-git-send-email-markwalters1009@gmail.com". This version changes the way the command-line parser deals with keywords so that specifying --option without an = returns the first option. This means that boolean options can easily have extra options added without breaking the existing syntax. Patch 3/5 takes advantage of this new feature to implement the --entire-thread option to notmuch-show in a non-hacky way. Best wishes Mark Mark Walters (5): 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. command-line-arguments.c | 13 ++++++++++--- devel/TODO | 2 -- devel/schemata | 2 +- emacs/notmuch-show.el | 18 ++++++++++-------- notmuch-client.h | 1 + notmuch-show.c | 45 +++++++++++++++++++++++++++++++++++++++------ 6 files changed, 61 insertions(+), 20 deletions(-) -- 1.7.9.1