From: David Edmondson Date: Sat, 6 Feb 2016 18:21:31 +0000 (+0000) Subject: [PATCH v1] (notmuch-show "id:doesnotexist") should not throw an error. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f1c4abc7ce430fb83e2b8bdc8a0faa93fc51d6e2;p=notmuch-archives.git [PATCH v1] (notmuch-show "id:doesnotexist") should not throw an error. --- diff --git a/8d/a295843741dde0944a3470ac570b4d9d05eebe b/8d/a295843741dde0944a3470ac570b4d9d05eebe new file mode 100644 index 000000000..703ad7771 --- /dev/null +++ b/8d/a295843741dde0944a3470ac570b4d9d05eebe @@ -0,0 +1,98 @@ +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 E43EC6DE0B25 + for ; Sat, 6 Feb 2016 10:21:38 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.237 +X-Spam-Level: +X-Spam-Status: No, score=0.237 tagged_above=-999 required=5 tests=[AWL=0.304, + 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 64Xq-0gHqAKp for ; + Sat, 6 Feb 2016 10:21:36 -0800 (PST) +Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com + [74.125.82.67]) by arlo.cworth.org (Postfix) with ESMTPS id 43E7C6DE09ED for + ; Sat, 6 Feb 2016 10:21:36 -0800 (PST) +Received: by mail-wm0-f67.google.com with SMTP id g62so8340189wme.2 + for ; Sat, 06 Feb 2016 10:21:35 -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=ud1RjcrUa1CXc7gI9Y9J5e7gbfZ+Rzt94qsEFDiROxo=; + b=Lrc7TzX6kgPhS4wBFUhWlJA1ToeCOhypalYmSsGHwquUK6GxcPb2jk5x0QOS2NaPdL + 9KyxdusvVVQrgUWB8eBk0S+ZHZ8fLQgPMi3b4WCma+raCozGBrGELcBc93WpK2hqvDCB + XGiglP0iaABLzFfC6UtiO4DYq2wIlKi4/YsMMhT1j20h5odn+kXcIowxrNTBBBq4fnCJ + Z77SqxY80/MIv7jpxdEW7YDnU8fw2NEyzhlgAl5vk6Vu2UafXoaj+gfQC7Z8iBrV4FTx + Zol2vBWNT2GGp6vA1anhSSaTLIybpztkpXOY9da5KPJXSR1Ef7lcPCEToTRhrt4JvZC6 + 57yQ== +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=ud1RjcrUa1CXc7gI9Y9J5e7gbfZ+Rzt94qsEFDiROxo=; + b=NZCOB1XuJ0L6jNfqTS5hyIB5LuLpPpNWzgcDtvThwVuvOZCBgB86ZO7oKrY31BR1u7 + 2rZA85wCg/RlM9xCEG24o6GnEN3m3UGFz4kUCU7+2K5dTi6GhCWxybqF8YJfc2vqsDip + 4GzlY9hi5qcwS4n2uRq1Z8Sj6VqMXgFVwSbwPtRcbJ33KGGxk+WGHkZfbsxisl3+YH0o + IbLp465o4Nnjx7srcZnCfIX0CAiFgecXWfBCxPmeDMTm1JyikXpuetqBXwQACS4WINX2 + t6cdT9/TfHgjAuj0NqyKc8NZIraYPXxYec5GWzHvh0KQS7qdLTqTVmARcjvJftrU2JUE + HnsA== +X-Gm-Message-State: + AG10YOT20nRwGlZilIDXFuOev9A5/gZOnRINFVhA9qrtrBXj2IL5vG0ijfuKQvAnxCOo0g== +X-Received: by 10.28.224.212 with SMTP id x203mr22752195wmg.29.1454782894636; + Sat, 06 Feb 2016 10:21:34 -0800 (PST) +Received: from disaster-area.hh.sledj.net + ([2a01:348:1a2:1:ea39:35ff:fe2c:a227]) + by smtp.gmail.com with ESMTPSA id e19sm1232744wmd.1.2016.02.06.10.21.32 + for + (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 06 Feb 2016 10:21:32 -0800 (PST) +Received: from localhost (disaster-area.hh.sledj.net [local]) + by disaster-area.hh.sledj.net (OpenSMTPD) with ESMTPA id 960fc9c0 + for ; Sat, 6 Feb 2016 18:21:32 +0000 (UTC) +From: David Edmondson +To: notmuch@notmuchmail.org +Subject: [PATCH v1] (notmuch-show "id:doesnotexist") should not throw an + error. +Date: Sat, 6 Feb 2016 18:21:31 +0000 +Message-Id: <1454782892-1690-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: Sat, 06 Feb 2016 18:21:39 -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. + + +David Edmondson (1): + emacs: Report a lack of matches when calling `notmuch-show'. + + emacs/notmuch-show.el | 8 +++++++- + 1 file changed, 7 insertions(+), 1 deletion(-) + +-- +2.1.4 +