[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the difference between looking-at and an anchored search?
From: |
Johan Bockgård |
Subject: |
Re: What is the difference between looking-at and an anchored search? |
Date: |
Thu, 17 Jul 2008 14:29:25 +0200 |
User-agent: |
Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) |
"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.
--
Johan Bockgård
- What is the difference between looking-at and an anchored search?, Lennart Borgman (gmail), 2008/07/17
- Re: What is the difference between looking-at and an anchored search?, Miles Bader, 2008/07/17
- Re: What is the difference between looking-at and an anchored search?, Lennart Borgman, 2008/07/17
- Re: What is the difference between looking-at and an anchored search?, Miles Bader, 2008/07/17
- Re: What is the difference between looking-at and an anchored search?, Lennart Borgman, 2008/07/17
- Re: What is the difference between looking-at and an anchored search?, Miles Bader, 2008/07/17
- Re: What is the difference between looking-at and an anchored search?, Lennart Borgman, 2008/07/17
Re: What is the difference between looking-at and an anchored search?, David Kastrup, 2008/07/17