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