emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Make peg.el a built-in library?


From: Michael Heerdegen
Subject: Re: Make peg.el a built-in library?
Date: Sat, 09 Oct 2021 07:28:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Michael Heerdegen <michael_heerdegen@web.de> writes:

> "how do you jump over arbitrary text preceding a match?" (the answer
> seems to be: "use `or' and recursion", at least this is what I found
> out by myself after a while).

No - using recursive rules of the kind

 (rule   [maches what I want])
 (search (or rule (and (any) search)))

to advance over preceding text is not a good method in Emacs, this hits
Emacs' maximum recursion level after a bunch of lines if we advance one
character each time (which can't be avoided when searching text).  Is
there a better solution for this kind of problem?

Thanks,

Michael.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]