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 B4AA3431FAF for ; Sat, 31 Mar 2012 15:54:11 -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 ABTuG0bsqROZ for ; Sat, 31 Mar 2012 15:54:11 -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 F359C431FAE for ; Sat, 31 Mar 2012 15:54:10 -0700 (PDT) Received: by werm13 with SMTP id m13so1257125wer.26 for ; Sat, 31 Mar 2012 15:54:08 -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=s6XgnjQLIRCXpyJLE9hX65Bm0MeflGa3g5fDphXUHxY=; b=Efp0VUKM2NaTA0ZFJ9axbfytthn9tAVmI14wJv6/FAxexUh0W9UXigEeTK4rQ651vO ju35CzkclvY8jAqvTGLy0ORuwWqe+23gFirpUgi9nSS/xjQt/4OS5DNoG6MEqk1KccMz nFZcigHM1KoWAdYG443/o+brJBkwRCzFnExShlRAiMXQLEiI2AUa2EdwNYORLFu/c1nk xKN9KOEZtew5Q7Uz28HRTCqRtiVWCBWa0yiiRpP/LCZ1Ymmvf1IpAcy/xgVUABFMXVmk 1Z+ohksVv9JKn6p/yREdC0MjMW00pfrzm/nZ7xds6yMmJeVBoIfmdIOUVMo4mi6m4doP Qnfg== Received: by 10.180.80.104 with SMTP id q8mr9898808wix.14.1333234448274; Sat, 31 Mar 2012 15:54:08 -0700 (PDT) Received: from localhost (94-192-233-223.zone6.bethere.co.uk. [94.192.233.223]) by mx.google.com with ESMTPS id fn2sm31923667wib.0.2012.03.31.15.54.06 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 31 Mar 2012 15:54:07 -0700 (PDT) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH v2 0/6] Move --no-exclude to --exclude=(true|false|flag) Date: Sat, 31 Mar 2012 23:53:56 +0100 Message-Id: <1333234442-28616-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, 31 Mar 2012 22:54:11 -0000 This is version 2 of the exclude= series (version 1 is [1]). The main changes are the addition of some systematic notmuch-search tests for all the exclude options, and I no longer add the exclude=flag option to notmuch-show.c (the output was too similar to exclude=false to be worth keeping). Best wishes Mark id:"1331836925-31437-1-git-send-email-markwalters1009@gmail.com". Mark Walters (6): lib: change default for notmuch_query_set_omit_excluded cli: move count to the new --exclude=(true|false|flag) naming scheme. cli: move search to the new --exclude= naming scheme. test: add some exclude tests cli: move show to the new --exclude= option naming scheme. emacs: make show set --exclude=false emacs/notmuch-show.el | 6 +- lib/notmuch.h | 11 ++- lib/query.cc | 10 +- man/man1/notmuch-count.1 | 5 +- man/man1/notmuch-search.1 | 12 ++- man/man1/notmuch-show.1 | 16 +++- notmuch-client.h | 1 + notmuch-count.c | 17 +++- notmuch-search.c | 32 +++++-- notmuch-show.c | 50 +++++++---- test/count | 4 +- test/notmuch-test | 1 + test/search | 48 ---------- test/search-excludes | 214 +++++++++++++++++++++++++++++++++++++++++++++ 14 files changed, 325 insertions(+), 102 deletions(-) create mode 100755 test/search-excludes -- 1.7.9.1