* bug#62451: 29.0.60; nnselect-request-threads assumes gnus-search-use-parsed-queries
@ 2023-03-25 23:16 Sean Whitton
2023-03-26 0:17 ` Andrew Cohen
0 siblings, 1 reply; 3+ messages in thread
From: Sean Whitton @ 2023-03-25 23:16 UTC (permalink / raw)
To: 62451; +Cc: cohen
X-debbugs-cc: cohen@bu.edu
nnselect-request-threads generates a query in Gnus's generic search
language and expects gnus-search-prepare-query to convert it to a raw
query. But if gnus-search-use-parsed-queries is nil, as it is by
default, then this doesn't happen, and the search engine receives a
query it can't understand. For example, notmuch receives a query like
"id:<foo> or id:<bar>" when it should receive "id:foo or id:bar".
This breaks the gnus-summary-refer-thread command.
One way to fix it is to add a binding (gnus-search-use-parsed-queries t)
to the let* form in which the call to gnus-search-run-query is made.
--
Sean Whitton
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#62451: 29.0.60; nnselect-request-threads assumes gnus-search-use-parsed-queries
2023-03-25 23:16 bug#62451: 29.0.60; nnselect-request-threads assumes gnus-search-use-parsed-queries Sean Whitton
@ 2023-03-26 0:17 ` Andrew Cohen
2023-03-26 18:05 ` Sean Whitton
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Cohen @ 2023-03-26 0:17 UTC (permalink / raw)
To: Sean Whitton; +Cc: cohen, 62451
>>>>> "SW" == Sean Whitton <spwhitton@spwhitton.name> writes:
SW> X-debbugs-cc: cohen@bu.edu nnselect-request-threads generates a
SW> query in Gnus's generic search language and expects
SW> gnus-search-prepare-query to convert it to a raw query. But if
SW> gnus-search-use-parsed-queries is nil, as it is by default, then
SW> this doesn't happen, and the search engine receives a query it
SW> can't understand. For example, notmuch receives a query like
SW> "id:<foo> or id:<bar>" when it should receive "id:foo or
SW> id:bar".
SW> This breaks the gnus-summary-refer-thread command.
SW> One way to fix it is to add a binding
SW> (gnus-search-use-parsed-queries t) to the let* form in which the
SW> call to gnus-search-run-query is made.
This has been in my tree for ages but I never pushed it (it is part of
larger changes to thread referral/retrieval). Its worth pushing by
itself and I'll try to do that.
Sorry for the delay.
--
Andrew Cohen
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#62451: 29.0.60; nnselect-request-threads assumes gnus-search-use-parsed-queries
2023-03-26 0:17 ` Andrew Cohen
@ 2023-03-26 18:05 ` Sean Whitton
0 siblings, 0 replies; 3+ messages in thread
From: Sean Whitton @ 2023-03-26 18:05 UTC (permalink / raw)
To: Andrew Cohen; +Cc: 62451-close
Hello,
On Sun 26 Mar 2023 at 08:17AM +08, Andrew Cohen wrote:
>>>>>> "SW" == Sean Whitton <spwhitton@spwhitton.name> writes:
>
> SW> X-debbugs-cc: cohen@bu.edu nnselect-request-threads generates a
> SW> query in Gnus's generic search language and expects
> SW> gnus-search-prepare-query to convert it to a raw query. But if
> SW> gnus-search-use-parsed-queries is nil, as it is by default, then
> SW> this doesn't happen, and the search engine receives a query it
> SW> can't understand. For example, notmuch receives a query like
> SW> "id:<foo> or id:<bar>" when it should receive "id:foo or
> SW> id:bar".
>
> SW> This breaks the gnus-summary-refer-thread command.
>
> SW> One way to fix it is to add a binding
> SW> (gnus-search-use-parsed-queries t) to the let* form in which the
> SW> call to gnus-search-run-query is made.
>
>
> This has been in my tree for ages but I never pushed it (it is part of
> larger changes to thread referral/retrieval). Its worth pushing by
> itself and I'll try to do that.
>
> Sorry for the delay.
Thank you for installing the change. I noticed that you didn't add the
bug number to the commit message -- it would be good if you could do
that next time.
Closing the bug.
--
Sean Whitton
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-26 18:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-25 23:16 bug#62451: 29.0.60; nnselect-request-threads assumes gnus-search-use-parsed-queries Sean Whitton
2023-03-26 0:17 ` Andrew Cohen
2023-03-26 18:05 ` Sean Whitton
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.