Re: [BUG] notmuch-search: notmuch search process already running for query

Subject: Re: [BUG] notmuch-search: notmuch search process already running for query

Date: Thu, 11 Jan 2024 23:01:51 -0400

To: Sławomir Grochowski, notmuch@notmuchmail.org

Cc:

From: David Bremner


Sławomir Grochowski <slawomir.grochowski@gmail.com> writes:

> Dear All,
>
> I just have started using notmuch with Emacs.
>
> When I run `notmuch-poll-and-refresh-this-buffer` which run script '.notmuch/hooks/pre-new':
>
> #!/bin/sh
> mbsync -L gmail
>
> Most of the time it gives me an error & message:
> "notmuch-search: notmuch search process already running for query ‘tag:inbox’".
>

I could reliably duplicate this in two ways: one is calling the function
twice in a row, like

(defun doit ()
  (interactive)
  (notmuch-poll-and-refresh-this-buffer)
  (message "completed %f" (float-time))
  (notmuch-poll-and-refresh-this-buffer))

the second way is calling

    (notmuch-poll-and-refresh-this-buffer)

or just

   (notmuch-refresh-this-buffer)

in a buffer when the search was still being loaded. That can happen with
larger searches (more than 10k threads, roughly).

Do either of those cases seem possible to you?
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: