unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Mark Walters <markwalters1009@gmail.com>
To: David Edmondson <dme@dme.org>, notmuch@notmuchmail.org
Subject: Re: [PATCH v2] emacs: Report a lack of matches when calling `notmuch-show'.
Date: Wed, 10 Feb 2016 21:05:25 +0000	[thread overview]
Message-ID: <87lh6s5l9m.fsf@qmul.ac.uk> (raw)
In-Reply-To: <m260xw2vim.fsf@dme.org>


On Wed, 10 Feb 2016, David Edmondson <dme@dme.org> wrote:
> On Wed, Feb 10 2016, Mark Walters wrote:
>> This basically looks fine to me and all tests pass. The code movement
>> and cleanup all looks fine.
>
> Thanks.
>
>> Two minor things, one tiny nit below; and I wonder whether just having
>> the buffer say "No search results" (or something similar) and leave
>> the user to kill it would be nicer than dinging (and more in line with
>> the way search and tree behave).
>>
>> [In some sense I think this way is right and search and tree are wrong,
>> but that is probably difficult to get round as search and tree run
>> asynchronously.]
>
> What if we did "notmuch count $query" first in the search and tree case,
> and did the "(ding) (message ...)" thing if the count returned 0? (Just
> wondering about whether having everything behave that way would be
> possible and acceptable.)
>
> The original impetus for this change was someone who hits an id: button
> that is either a false match (i.e it wasn't ever intended to be a
> notmuch reference) or for a message that they don't have. In both of
> those cases popping up a buffer that says only "No match." would be
> annoying. If we were considering the case where people are using "M-x
> notmuch-show", it seems less clear on the right thing to do, but overall
> I prefer this approach to the useless buffer that I have to kill/quit.
>

I am quite happy to leave it as you have it with the ding; currently we
have an obscure error message and this is obviously better so (with the
comment change below) +1 from me.

Best wishes

Mark

>>> +      ;; Cache the original tags for each message so that we can display
>>> +      ;; changes.
>>
>> ^^ I think "Store the original tags for each message" would be better,
>> particularly as this is nothing to do with the tag cache as used by say
>> notmuch-tag-clear-cache.
>
> Agreed - fixed.

      parent reply	other threads:[~2016-02-10 21:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10 14:01 [PATCH v2] (notmuch-show "id:doesnotexist") should not throw an error David Edmondson
2016-02-10 14:01 ` [PATCH v2] emacs: Report a lack of matches when calling `notmuch-show' David Edmondson
2016-02-10 18:50   ` Mark Walters
2016-02-10 19:52     ` David Edmondson
2016-02-10 20:14       ` David Edmondson
2016-02-10 21:05       ` Mark Walters [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lh6s5l9m.fsf@qmul.ac.uk \
    --to=markwalters1009@gmail.com \
    --cc=dme@dme.org \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).