unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: 46047@debbugs.gnu.org
Subject: bug#46047: 28.0.50; Namazu-based mail searching not working anymore
Date: Sun, 07 Feb 2021 14:02:42 -0800	[thread overview]
Message-ID: <87sg67k03h.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <87zh0xjpif.fsf@physik.rwth-aachen.de> (Torsten Bronger's message of "Mon, 25 Jan 2021 11:10:32 +0100")

Torsten Bronger <bronger@physik.rwth-aachen.de> writes:

> Hallöchen!
>
> Eric Abrahamsen writes:
>
>> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>>
>>> Torsten Bronger <bronger@physik.rwth-aachen.de> writes:
>>>
>>>> Hallöchen!
>>>>
>>>> [...]
>>>>
>>>> Franky, I don’t understand all this really.  I'm driving
>>>> blindfolded a bit.  Anyway, I put
>>>>
>>>> (setq gnus-secondary-select-methods
>>>>       '((nnml "" (nnir-search-engine namazu
>>>>                                      (nnir-namazu-index-directory "/var/lib/namazu/")))))
>>>> (setq gnus-search-namazu-index-directory "/var/lib/namazu/")
>>>>
>>>> in my .gnus.
>>>
>>> Sorry if I wasn't clear -- I *can* provide backwards-compatible
>>> code to handle the above, but I haven't yet. If you don't care
>>> about downgrading Emacs, I would use the above, but take off the
>>> "nnir-namazu-" prefix, ie just:
>>>
>>> (index-directory "/var/lib/namazu/")
>
> This has no effect on how Namazu is called on my machine.  Only
> gnus-search-namazu-index-directory set the directory parameter of
> the Namazu call correctly.
>
>> [...]
>
> I have now
>
> (setq gnus-secondary-select-methods
>       '((nnml "" (nnir-search-engine namazu))))
> (setq gnus-search-namazu-index-directory "/var/lib/namazu/")

Yes, the bare 'index-directory and 'remove-prefix configuration keys will only be
honored if you're using the 'gnus-search-engine config, not the
'nnir-search-engine config. I thought about picking up mixed config, but
it's just going to turn into too much of a mess. So your completely
correct, should-work-every-time config would look like:

(setq gnus-secondary-select-methods
      '((nnml "" (gnus-search-engine
		  gnus-search-namazu
		  remove-prefix "/home/bronger/Mail"
		  index-directory "/var/lib/namazu/"))))

> in my.gnus, and with current Git Emacs, Namazu is correctly called!
> But it only works if no search results are found.  Otherwise,
> *Messages* contains:
>
> nnselect-run: gnus-search-run-query on ((search-query-spec (query .
> myquerystring) (raw)) (search-group-spec (nnml: nnml:Somegroup))) gave
> error (wrong-type-argument stringp nil)
> Group nnselect:nnselect-877do1l461.fsf contains no messages
>
> I have attached a shell script that you can use as a drop-in
> replacement for namazu proper for easy generation of search results
> that trigger this error for me.

Thanks for providing this. There was a bug in the parsing of namazu
output that should now be fixed. Please let me know if you can confirm!

Thanks,
Eric





  reply	other threads:[~2021-02-07 22:02 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23  5:07 bug#46047: 28.0.50; Namazu-based mail searching not working anymore Torsten Bronger
2021-01-23 17:42 ` Eric Abrahamsen
2021-01-23 20:17   ` Torsten Bronger
2021-01-23 22:14     ` Eric Abrahamsen
2021-01-23 22:26       ` Eric Abrahamsen
2021-01-25 10:10         ` Torsten Bronger
2021-02-07 22:02           ` Eric Abrahamsen [this message]
2021-02-12 13:53             ` Torsten Bronger
2021-02-12 15:25               ` Torsten Bronger
2021-04-21  3:19                 ` Stefan Kangas
2021-05-09 14:21                   ` Torsten Bronger
2021-05-12 18:18                     ` Eric Abrahamsen
2021-05-16 17:24                     ` Eric Abrahamsen
2021-05-16 19:43                       ` Torsten Bronger
2021-05-16 22:11                         ` Eric Abrahamsen
2021-05-17  6:02                           ` Torsten Bronger
2021-05-17 18:53                             ` Eric Abrahamsen
2021-05-18  8:46                               ` Torsten Bronger
2021-05-18  9:08                                 ` Eli Zaretskii
2021-05-18 16:50                                   ` Eric Abrahamsen
2021-05-18 16:55                                     ` Eli Zaretskii
2021-05-21 17:47                                       ` Eric Abrahamsen
2021-05-21 19:10                                         ` Torsten Bronger
2021-05-21 20:38                                           ` Eric Abrahamsen
2021-01-23 22:30       ` Eric Abrahamsen

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://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87sg67k03h.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=46047@debbugs.gnu.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://git.savannah.gnu.org/cgit/emacs.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).