GNU bug report logs -
#45950
27.1; Certain regexps can cause comint-redirect-results-list-from-process to loop.
Previous Next
Reported by: Richard Sharman <rsharman <at> pobox.com>
Date: Mon, 18 Jan 2021 07:04:02 UTC
Severity: normal
Tags: fixed
Merged with 45952
Found in version 27.1
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Richard Sharman <rsharman <at> pobox.com> writes:
> Sorry, there was a mistake on the patch on my previous message;
> the (re-search-forward regexp nil t)) was inadvertently changed to
> (re-search-forward regexp nil).
>
> Sorry.
>
> Here’s the corrected version:
[...]
> + (if (equal (point) last-point)
> + (forward-line 1)
> + (push (buffer-substring-no-properties
> + (match-beginning regexp-group)
> + (match-end regexp-group))
> + results))
> + (setq last-point (point)))
> (nreverse results))))
I can reproduce the infloop in Emacs 28, but I don't think this is quite
the correct fix -- if you've asked for "^.*$", then you should get an
empty string in the result set, and not just "a" "b" "d". So I've
installed a variant of what you suggest in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 119 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.