From 4e335ee435ee2531a622832b066f873adad083ed Mon Sep 17 00:00:00 2001 From: David Edmondson Date: Wed, 10 Feb 2016 20:14:49 +0000 Subject: [PATCH] Re: [PATCH v2] emacs: Report a lack of matches when calling `notmuch-show'. --- a4/61342b55340dd09e9f2dc9e031796ff0a83369 | 100 ++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 a4/61342b55340dd09e9f2dc9e031796ff0a83369 diff --git a/a4/61342b55340dd09e9f2dc9e031796ff0a83369 b/a4/61342b55340dd09e9f2dc9e031796ff0a83369 new file mode 100644 index 000000000..1996a9a07 --- /dev/null +++ b/a4/61342b55340dd09e9f2dc9e031796ff0a83369 @@ -0,0 +1,100 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 2F3CD6DE0BF6 + for ; Wed, 10 Feb 2016 12:14:56 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.118 +X-Spam-Level: +X-Spam-Status: No, score=-0.118 tagged_above=-999 required=5 + tests=[AWL=-0.051, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, + RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652, UNPARSEABLE_RELAY=0.001] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id WMkULtG2O0LZ for ; + Wed, 10 Feb 2016 12:14:54 -0800 (PST) +Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com + [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id 359076DE0B36 for + ; Wed, 10 Feb 2016 12:14:54 -0800 (PST) +Received: by mail-wm0-f65.google.com with SMTP id p63so6450329wmp.1 + for ; Wed, 10 Feb 2016 12:14:54 -0800 (PST) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=dme-org.20150623.gappssmtp.com; s=20150623; + h=to:subject:in-reply-to:references:from:date:message-id:mime-version + :content-type; bh=oSAg2zDvQYdc0/j9hfRMBiw2mbREn6StZa+IliT3gOA=; + b=I2gBfEFRt9B8saWaRhXgam6SaFLAbFbwGo0x9oPjybla4eP70bf/ou1lIFqlqu9vt/ + KUqkrZPwmJHNJ9/9Ch9OLqFMR4P+QU6A/MvZRFpTr55FIeXwhxW2WUdth5DUcZt8siNc + 3NQwSCulS0lfXDH0ll0OIrLqTPj33saMiEuEZmXu29BDGKFAuvaULIJ/sy+VgYfkpVpq + ftXbCrqKfjemZD4f0O1Z2WmQV97aH2sIanA9rMLD+uZ+S0WnhPMESyzLPFZGrw+Q2bxt + uplT6E2rZpPP4N0qYDdaULenoHnnNPIsIXF0m2Eo1l1UQL6nA+AbcMbjuMHtM8OW+c3E + Vj4Q== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:to:subject:in-reply-to:references:from:date + :message-id:mime-version:content-type; + bh=oSAg2zDvQYdc0/j9hfRMBiw2mbREn6StZa+IliT3gOA=; + b=CNjcIEi7nZFDKF8BV2UDznOw963nbMrobTuObhPq0OalHfrog9uBIl5XyOyN8uaWFm + LWHoL2iElfj+Y0nBFsdBQzM9DmOhDJNdYP+L6lf+KPrG37uhq4uTNNbe30DkIbpNDpgD + TcRk9EAjeTvXI5kFzVMWvALHT7k/s7ZJIziw9gj32R/6+dJxDI1JQDtObcj7N0TNnUb/ + 51PnGzdL/vQLLlfaj/cEn6D0BWJhcgJ5vCNLP1DdA2EukPJBCGjcAE5HAhMARCAVs13w + n8/7QnvMUON2RDPV6WA/kPXh0gFFthCZ51S74uIm7fPJID/+1Qqdfhq3XpwS8VJj/Ggv + 9ItA== +X-Gm-Message-State: + AG10YOTjYpous8V/gL6KcKVj4u5bzOeWFrbN6b6NIxSykYMJxs4/JyEcRm8WFaXcENy2fQ== +X-Received: by 10.194.104.38 with SMTP id gb6mr47145225wjb.22.1455135292827; + Wed, 10 Feb 2016 12:14:52 -0800 (PST) +Received: from disaster-area.hh.sledj.net + ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) + by smtp.gmail.com with ESMTPSA id lc3sm4445861wjb.7.2016.02.10.12.14.50 + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Wed, 10 Feb 2016 12:14:50 -0800 (PST) +Received: from localhost (disaster-area.hh.sledj.net [local]) + by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id d3a2a010; + Wed, 10 Feb 2016 20:14:49 +0000 (UTC) +To: Mark Walters , notmuch@notmuchmail.org +Subject: Re: [PATCH v2] emacs: Report a lack of matches when calling + `notmuch-show'. +In-Reply-To: +References: <1455112878-23497-1-git-send-email-dme@dme.org> + <1455112878-23497-2-git-send-email-dme@dme.org> <87oabo5rix.fsf@qmul.ac.uk> + +From: David Edmondson +Date: Wed, 10 Feb 2016 20:14:49 +0000 +Message-ID: +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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: Wed, 10 Feb 2016 20:14:56 -0000 + +On Wed, Feb 10 2016, David Edmondson wrote: +>> Two minor things, one tiny nit below; and I wonder whether just having +>> the buffer say "No search results" (or something similar) and leave +>> the user to kill it would be nicer than dinging (and more in line with +>> the way search and tree behave). +>> +>> [In some sense I think this way is right and search and tree are wrong, +>> but that is probably difficult to get round as search and tree run +>> asynchronously.] +> +> What if we did "notmuch count $query" first in the search and tree case, +> and did the "(ding) (message ...)" thing if the count returned 0? (Just +> wondering about whether having everything behave that way would be +> possible and acceptable.) + +This is pretty easy for `notmuch-search', and "notmuch count $query" +seems very quick. The changes are a bit more involved for `notmuch-tree'. -- 2.26.2