From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 100A36DE1E65 for ; Sun, 5 Mar 2017 03:52:35 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.005 X-Spam-Level: X-Spam-Status: No, score=-0.005 tagged_above=-999 required=5 tests=[AWL=0.006, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] 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 Fxj_ZcOwg00A for ; Sun, 5 Mar 2017 03:52:34 -0800 (PST) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by arlo.cworth.org (Postfix) with ESMTPS id 218CD6DE1E36 for ; Sun, 5 Mar 2017 03:52:34 -0800 (PST) Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1ckUhc-0003bF-Pb; Sun, 05 Mar 2017 06:51:52 -0500 Received: (nullmailer pid 4078 invoked by uid 1000); Sun, 05 Mar 2017 11:52:30 -0000 From: David Bremner To: David Edmondson , Pieter Praet Cc: Notmuch Mail Subject: Re: [PATCH v4 2/3] emacs: `notmuch-show-buttonize-links' only `notmuch-show's a message if it exists In-Reply-To: References: <871uqsku4h.fsf@praet.org> <1327222469-29487-2-git-send-email-pieter@praet.org> Date: Sun, 05 Mar 2017 07:52:30 -0400 Message-ID: <87efyc7xfl.fsf@tethera.net> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Sun, 05 Mar 2017 11:52:35 -0000 David Edmondson writes: > [ Trimmed to/cc list. ] > > On Sun, Jan 22 2012, Pieter Praet wrote: >> * emacs/notmuch-show.el (notmuch-show-found-target-p): new predicate function >> that uses notmuch(1) 'count' to see if a query turns up any results. >> >> * emacs/notmuch-show.el (notmuch-show-if-found): new function that only shows >> a message/thread if present in the database and otherwise returns an error. >> >> * emacs/notmuch-show.el (notmuch-show-buttonize-links): some deduplication, >> and use new function `notmuch-show-if-found' instead of `notmuch-show' >> to prevent showing a blank screen for Message-Id's which aren't present >> in the database. > > Mark provided some feedback about this (relating to exclusions), but > more generally there is a problem that `M-x notmuch-show id:doesntexist' > will result in an error ("notmuch-show-message-top: Beginning of > buffer"). That seems like a bug that should be fixed. This also now seems fixed in 0.23.7-131-g85df8b39 d