From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A6D9A431FC0 for ; Sat, 17 Mar 2012 09:52:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[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 ZdUCTV2+eltm for ; Sat, 17 Mar 2012 09:52:17 -0700 (PDT) Received: from dmz-mailsec-scanner-4.mit.edu (DMZ-MAILSEC-SCANNER-4.MIT.EDU [18.9.25.15]) by olra.theworths.org (Postfix) with ESMTP id 1ED89431FAE for ; Sat, 17 Mar 2012 09:52:17 -0700 (PDT) X-AuditID: 1209190f-b7f8a6d000000914-8d-4f64c140f9d9 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-4.mit.edu (Symantec Messaging Gateway) with SMTP id B8.6C.02324.041C46F4; Sat, 17 Mar 2012 12:52:16 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id q2HGqGeM032161; Sat, 17 Mar 2012 12:52:16 -0400 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q2HGqFLt012230 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sat, 17 Mar 2012 12:52:16 -0400 (EDT) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77) (envelope-from ) id 1S8wrX-00047j-Ep; Sat, 17 Mar 2012 12:52:15 -0400 Date: Sat, 17 Mar 2012 12:52:15 -0400 From: Austin Clements To: Mark Walters Subject: Re: [PATCH 5/5] emacs: make show set --exclude=flag Message-ID: <20120317165215.GJ2670@mit.edu> References: <1331836925-31437-1-git-send-email-markwalters1009@gmail.com> <1331836925-31437-6-git-send-email-markwalters1009@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1331836925-31437-6-git-send-email-markwalters1009@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgleLIzCtJLcpLzFFi42IRYrdT0XU4mOJvcHiPrsXquTwW12/OZHZg 8tg56y67x7NVt5gDmKK4bFJSczLLUov07RK4Mr78f8hasJeromnjb/YGxrkcXYwcHBICJhLf n3t2MXICmWISF+6tZ+ti5OIQEtjHKPHnxG1mCGcDo8SDmUfZIZyTTBL3P/yBKlvCKPF/5gxW kH4WAVWJJUcOsIHYbAIaEtv2L2cEsUUEdCRuH1rADmIzC0hLfPvdzARiCwvYSBy81sQIcgav gLZE01EekLCQQCejxIdvxiA2r4CgxMmZT1ggWrUkbvx7yQRSDjJm+T+wBzgFvCTO3FQCqRAV UJGYcnIb2wRGoVlImmchaZ6F0LyAkXkVo2xKbpVubmJmTnFqsm5xcmJeXmqRrolebmaJXmpK 6SZGUEBzSvLvYPx2UOkQowAHoxIPL8eEZH8h1sSy4srcQ4ySHExKoryMB1L8hfiS8lMqMxKL M+KLSnNSiw8xSnAwK4nwSi0HyvGmJFZWpRblw6SkOViUxHnVtN75CQmkJ5akZqemFqQWwWRl ODiUJHg7QIYKFqWmp1akZeaUIKSZODhBhvMADd8PUsNbXJCYW5yZDpE/xagoJc7bCJIQAElk lObB9cISzitGcaBXhHmXgVTxAJMVXPcroMFMQINnliWDDC5JREhJNTCWneCz9Ds+d9bM5Nf6 hf4vGzJmvnvIrv+45IX7uau79vm0Z6z79XLf1sLy4sNdTTXP2725+7ICLt7yz1r5/PTu6H8O 36oWdU3ft2m7z6x7fqKyr3IOvxP/p5xs/m5xlWzGmvWFCuUvr0XmbNpZYLuJJerbE++0ohfB 1X0ah+S5y8/kNh6adExQiaU4I9FQi7moOBEA+5PdchMDAAA= Cc: notmuch@notmuchmail.org 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, 17 Mar 2012 16:52:19 -0000 Quoth Mark Walters on Mar 15 at 6:42 pm: > Show has to set --exclude=flag to deal with cases where it is asked > to show a single excluded message. It uses JSON so it can easily pass > the exclude information to the user. > --- > emacs/notmuch-show.el | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el > index 4a60631..8ab2485 100644 > --- a/emacs/notmuch-show.el > +++ b/emacs/notmuch-show.el > @@ -1099,13 +1099,15 @@ function is used." > (append (list "\'") basic-args > (list "and (" notmuch-show-query-context ")\'")) > (append (list "\'") basic-args (list "\'"))))) > - (notmuch-show-insert-forest (notmuch-query-get-threads args)) > + (notmuch-show-insert-forest (notmuch-query-get-threads > + (append (list "--exclude=flag") args))) (cons "--exclude=flag" args) > ;; If the query context reduced the results to nothing, run > ;; the basic query. > (when (and (eq (buffer-size) 0) > notmuch-show-query-context) > (notmuch-show-insert-forest > - (notmuch-query-get-threads basic-args)))) > + (notmuch-query-get-threads > + (append (list "--exclude=flag") basic-args))))) Same here. > > (jit-lock-register #'notmuch-show-buttonise-links) >