unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 46047@debbugs.gnu.org, bronger@physik.rwth-aachen.de
Subject: bug#46047: 28.0.50; Namazu-based mail searching not working anymore
Date: Fri, 21 May 2021 10:47:26 -0700	[thread overview]
Message-ID: <87cztkt1w1.fsf@ericabrahamsen.net> (raw)
In-Reply-To: <83r1i4q8v7.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 18 May 2021 19:55:56 +0300")

[-- Attachment #1: Type: text/plain, Size: 858 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Eric Abrahamsen <eric@ericabrahamsen.net>
>> Cc: 46047@debbugs.gnu.org,  bronger@physik.rwth-aachen.de
>> Date: Tue, 18 May 2021 09:50:00 -0700
>> 
>> > I think it's process exit status notification and comes from the
>> > process sentinel function.
>> 
>> Huh, I'm surprised this hasn't been an issue before, then. It looks like
>> that message is standard for any start-process/accept-process-output
>> situation. Is there any way to shut it off?
>
> The only way I know of is to provide your own sentinel function.
>
>> Regardless, the output parsing shouldn't be so fragile that it chokes on
>> this. I'll look into making it more robust.
>
> Agreed, and thanks in advance.

Torsten, if you have a moment, would you try the attached diff and
confirm that it fixes the problem you're seeing?

Thanks,
Eric



[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: searchparsing.diff --]
[-- Type: text/x-patch, Size: 740 bytes --]

diff --git a/lisp/gnus/gnus-search.el b/lisp/gnus/gnus-search.el
index a59d0e57a7..fc9f8684f6 100644
--- a/lisp/gnus/gnus-search.el
+++ b/lisp/gnus/gnus-search.el
@@ -1358,9 +1358,12 @@ gnus-search-indexed-parse-output
 			 "\\|")))
 	artlist vectors article group)
     (goto-char (point-min))
-    (while (not (eobp))
+    (while (not (or (eobp)
+                    (looking-at-p
+                     "\\(?:[[:space:]\n]+\\)?Process .+ finished")))
       (pcase-let ((`(,f-name ,score) (gnus-search-indexed-extract engine)))
-	(when (and (file-readable-p f-name)
+	(when (and f-name
+                   (file-readable-p f-name)
 		   (null (file-directory-p f-name))
 		   (or (null groups)
 		       (and (gnus-search-single-p query)

  reply	other threads:[~2021-05-21 17:47 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
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 [this message]
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=87cztkt1w1.fsf@ericabrahamsen.net \
    --to=eric@ericabrahamsen.net \
    --cc=46047@debbugs.gnu.org \
    --cc=bronger@physik.rwth-aachen.de \
    --cc=eliz@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).