From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.bugs Subject: bug#46047: 28.0.50; Namazu-based mail searching not working anymore Date: Fri, 21 May 2021 10:47:26 -0700 Message-ID: <87cztkt1w1.fsf@ericabrahamsen.net> References: <87pn1wnsv0.fsf@physik.rwth-aachen.de> <878s8j7do6.fsf@ericabrahamsen.net> <875z3ntnl3.fsf@physik.rwth-aachen.de> <87v9bn5miq.fsf@ericabrahamsen.net> <87k0s35ly6.fsf@ericabrahamsen.net> <87zh0xjpif.fsf@physik.rwth-aachen.de> <87sg67k03h.fsf@ericabrahamsen.net> <87k0rdfl3n.fsf@physik.rwth-aachen.de> <87a6s9z4t1.fsf@physik.rwth-aachen.de> <87sg2w3s3u.fsf@physik.rwth-aachen.de> <87fsymwq0x.fsf@ericabrahamsen.net> <87eee6qxba.fsf@physik.rwth-aachen.de> <87im3iz5v1.fsf@ericabrahamsen.net> <87pmxpdhjb.fsf@physik.rwth-aachen.de> <87o8d9xkd4.fsf@ericabrahamsen.net> <87mtsse8eb.fsf@physik.rwth-aachen.de> <23A20064-75F2-40DD-9AF9-1FB920487656@gnu.org> <87cztovvev.fsf@ericabrahamsen.net> <83r1i4q8v7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="15524"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46047@debbugs.gnu.org, bronger@physik.rwth-aachen.de To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri May 21 19:48:15 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lk9Fv-0003oy-F1 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 May 2021 19:48:15 +0200 Original-Received: from localhost ([::1]:47944 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lk9Fu-0003tC-BQ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 May 2021 13:48:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lk9Fi-0003rG-E6 for bug-gnu-emacs@gnu.org; Fri, 21 May 2021 13:48:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54207) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lk9Fi-0005rV-6h for bug-gnu-emacs@gnu.org; Fri, 21 May 2021 13:48:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lk9Fi-0002QL-4S for bug-gnu-emacs@gnu.org; Fri, 21 May 2021 13:48:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eric Abrahamsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 May 2021 17:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46047 X-GNU-PR-Package: emacs Original-Received: via spool by 46047-submit@debbugs.gnu.org id=B46047.16216192579281 (code B ref 46047); Fri, 21 May 2021 17:48:02 +0000 Original-Received: (at 46047) by debbugs.gnu.org; 21 May 2021 17:47:37 +0000 Original-Received: from localhost ([127.0.0.1]:37520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lk9FJ-0002Pd-3a for submit@debbugs.gnu.org; Fri, 21 May 2021 13:47:37 -0400 Original-Received: from ericabrahamsen.net ([52.70.2.18]:42762 helo=mail.ericabrahamsen.net) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lk9FH-0002PQ-DG for 46047@debbugs.gnu.org; Fri, 21 May 2021 13:47:36 -0400 Original-Received: from localhost (c-71-197-184-122.hsd1.wa.comcast.net [71.197.184.122]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id A7B87FED1A; Fri, 21 May 2021 17:47:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericabrahamsen.net; s=mail; t=1621619249; bh=dwSOG83Pj/COdZ0lOiC0M4ytlyBZc4MX3XKgtJbrERE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TCfQmF4UMF5/Fg2RuOG3g6D03RN6fOAmz/LFJ6CAKVQ46XU3YToUYtgDLFcZrU/JK +av0HRzNDI4WIY55zmkCjpOe+mUTQVGQcmFQOUwuAF7FWhTSUo8RwRtqT+NRlMwkzp y4yJFyQG9/kfW8lbvvi/NWILnM5KQ1F0YYp7Y9V0= In-Reply-To: <83r1i4q8v7.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 18 May 2021 19:55:56 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206994 Archived-At: --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> From: Eric Abrahamsen >> 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 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=searchparsing.diff 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) --=-=-=--