[PATCH v2] (notmuch-show "id:doesnotexist") should not throw an error.
authorDavid Edmondson <dme@dme.org>
Wed, 10 Feb 2016 14:01:17 +0000 (14:01 +0000)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:04 +0000 (16:21 -0700)
b1/7abf9ceb605843b94cd7f3121dbad32a2079d6 [new file with mode: 0644]

diff --git a/b1/7abf9ceb605843b94cd7f3121dbad32a2079d6 b/b1/7abf9ceb605843b94cd7f3121dbad32a2079d6
new file mode 100644 (file)
index 0000000..91f514a
--- /dev/null
@@ -0,0 +1,105 @@
+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 257456DE0275\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Feb 2016 06:01:27 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.11\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.11 tagged_above=-999 required=5 tests=[AWL=-0.043,\r
+  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_NEUTRAL=0.652,\r
+ UNPARSEABLE_RELAY=0.001] 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 Zg6dYg1hOhES for <notmuch@notmuchmail.org>;\r
+ Wed, 10 Feb 2016 06:01:24 -0800 (PST)\r
+Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com\r
+ [74.125.82.54]) by arlo.cworth.org (Postfix) with ESMTPS id 0EC7E6DE021E for\r
+ <notmuch@notmuchmail.org>; Wed, 10 Feb 2016 06:01:23 -0800 (PST)\r
+Received: by mail-wm0-f54.google.com with SMTP id g62so28230319wme.0\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Feb 2016 06:01:23 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=dme-org.20150623.gappssmtp.com; s=20150623;\r
+ h=from:to:subject:date:message-id;\r
+ bh=Z17xZZrJucvQ7bUunM28tB68F41u8SUohm3yhbpcejQ=;\r
+ b=w1m/hBVObqHR9VDyvmCudXLu2MsWg78DuPmuMdwxOseLECQEl2KkYEGwURhoDr8aGI\r
+ t3ezJi80Zg02XaDFKzlk8xNVoPU9WifHRUPjOw7MdgstzwUKsKs6OF1nTB0AOCb1iAa/\r
+ gi61IUssmd2BquYl4N0AkWYQIiwn1pg2r0/1FrDwP3Za37nz0FsLbglIJ3lj8F2JR31F\r
+ 9j0V7LGGm8j7OCtLXH51SIOxD1Y+whA3mYUDSVL9rZ3+7X9uQdXZvHTneIO4iwGmV2PQ\r
+ +BUrjgQl/1VlQXBauqd0E/2ez0zgzf/wz22JEWoTeJLysNRCBbF/Bu167W8jwneJfXvK\r
+ TyOA==\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:from:to:subject:date:message-id;\r
+ bh=Z17xZZrJucvQ7bUunM28tB68F41u8SUohm3yhbpcejQ=;\r
+ b=YSlqe7nwuBZzu9JiE6kE2NzGHzM2Tujebbzvv+A8Y8tYHHtbrBJsYfH1lWmfdc+5zF\r
+ 16gtVMS4Ox2L9RR1u/QbnuHMNGSs/siuU0K3669qoiiZBScEN+6oPNS10YcTEh+EHJWb\r
+ 02YwGp02bUzQ8T95Q+vz4qqOOcQli1pl3rq7vs7s1td90OKG1JYvSDykDTVsOTUdu21m\r
+ BX+shFMu9dCDSAPTSZi3NeuL7QGTmgiUmGr1Z/ZWiEoymcZRX3FRPYhxqvG1/yv/LffA\r
+ fGKpHMTXYiNJqpfALEdVeoXLRU7SgcwHDYhCobAqHueyD5lNBQyfOZ4FOz9ko5Gr5GD9\r
+ LSsg==\r
+X-Gm-Message-State:\r
+ AG10YOSET5s8+bdIWoGPbPB/5A7sF48S1W3p0teF5Qr2mNlrUUjRHFO74uSV/0lDrt5QBQ==\r
+X-Received: by 10.28.212.9 with SMTP id l9mr11859339wmg.75.1455112880925;\r
+ Wed, 10 Feb 2016 06:01:20 -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 75sm22566226wmo.22.2016.02.10.06.01.19\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Wed, 10 Feb 2016 06:01:19 -0800 (PST)\r
+Received: from localhost (disaster-area.hh.sledj.net [local])\r
+ by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id be0fdd93\r
+ for <notmuch@notmuchmail.org>; Wed, 10 Feb 2016 14:01:18 +0000 (UTC)\r
+From: David Edmondson <dme@dme.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2] (notmuch-show "id:doesnotexist") should not throw an\r
+ error.\r
+Date: Wed, 10 Feb 2016 14:01:17 +0000\r
+Message-Id: <1455112878-23497-1-git-send-email-dme@dme.org>\r
+X-Mailer: git-send-email 2.1.4\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 14:01:27 -0000\r
+\r
+\r
+(notmuch-show "id:doesnotexist") should not throw an error.\r
+\r
+This is a followup to id:"874nw0ltwz.fsf@praet.org" and\r
+id:"cuntx91fwaa.fsf@hotblack-desiato.hh.sledj.net".\r
+\r
+The originally proposed change (to have id: links call `notmuch-show'\r
+rather than `notmuch-search') was already made, but the difficulties\r
+with links that generated no results was not addressed. This patch\r
+aims to do that.\r
+\r
+v2:\r
+- Re-worked to `ding' rather than throwing an error.\r
+- Re-jig the relationship between `notmuch-show',\r
+  `notmuch-show-refresh-view' and `notmuch-show--build-buffer'.\r
+- Various buffer local variables no longer need to be `permanent-local'.\r
+\r
+\r
+David Edmondson (1):\r
+  emacs: Report a lack of matches when calling `notmuch-show'.\r
+\r
+ emacs/notmuch-show.el | 144 +++++++++++++++++++++++++++++---------------------\r
+ emacs/notmuch.el      |   6 ++-\r
+ 2 files changed, 89 insertions(+), 61 deletions(-)\r
+\r
+-- \r
+2.1.4\r
+\r