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