mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-27 16:51:06 -07:00
Robustify parsing of gnus-search search results
* lisp/gnus/gnus-search.el (gnus-search-indexed-parse-output): Look for a "process finished" tag, and don't choke on mis-parsed lines.
This commit is contained in:
parent
484bd8137a
commit
5fe343a44c
1 changed files with 5 additions and 2 deletions
|
|
@ -1358,9 +1358,12 @@ Returns a list of [group article score] vectors."
|
|||
"\\|")))
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue