|
From: | Lennart Borgman (gmail) |
Subject: | Re: What is the difference between looking-at and an anchored search? |
Date: | Thu, 17 Jul 2008 19:45:05 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
Johan Bockgård wrote:
"Lennart Borgman" <address@hidden> writes:If you want to reject matches that extend past some point, just do something like: (and (looking-at REGEXP) (<= (match-end 0) BOUND))Thanks Miles, Yes, that is one possibility. But then perhaps I would assume that re-search-forward better might optimize that search since it can (in theory) cut off the searching at BOUND. In the case I am looking at performance is important.You can try narrowing the buffer.
Ah, thanks that is a good suggestion.Eh, at least to my question, but I am beginning to realize that I have asked the wrong question. I wanted to modify the xmltok.el library that comes with nxml so that it could be used with mumamo in a better way than now. I want to jump over regions that are not parseable by nxml-mode. (I thought I had already done that, but forgot about xmltok.el.)
I will ask some questions about that in a separate thread.
[Prev in Thread] | Current Thread | [Next in Thread] |