[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inefficient code in reftex-index.el
From: |
Kim F. Storm |
Subject: |
Re: Inefficient code in reftex-index.el |
Date: |
Wed, 08 Jun 2005 12:00:36 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
David Kastrup <address@hidden> writes:
>> Actually the only cases I can vaguely remember using the
>> (/ (length (match-data)) 2) idiom didn't use the whole (match-data).
>> They typically used the idiom in order to know *which* subgroup matched (of
>> course it only works if you craft your regexp carefully).
>
> That would not work. (length (match-data)) is a property of the
> regexp, not the match.
According to the code, it does work.
Match data only contains markers until the last successful match.
--
Kim F. Storm <address@hidden> http://www.cua.dk
- Re: Inefficient code in reftex-index.el, (continued)
- Re: Inefficient code in reftex-index.el, Kim F. Storm, 2005/06/07
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/07
- Re: Inefficient code in reftex-index.el, Kim F. Storm, 2005/06/07
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/07
- Re: Inefficient code in reftex-index.el, Kim F. Storm, 2005/06/07
- Re: Inefficient code in reftex-index.el, Richard Stallman, 2005/06/07
- Re: Inefficient code in reftex-index.el, Kim F. Storm, 2005/06/07
- Re: Inefficient code in reftex-index.el, Stefan Monnier, 2005/06/07
- Re: Inefficient code in reftex-index.el, Kim F. Storm, 2005/06/08
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/08
- Re: Inefficient code in reftex-index.el,
Kim F. Storm <=
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/08
- Re: Inefficient code in reftex-index.el, Richard Stallman, 2005/06/08
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/08
- Re: Inefficient code in reftex-index.el, Richard Stallman, 2005/06/09
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/09
- Re: Inefficient code in reftex-index.el, Richard Stallman, 2005/06/10
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/10
- Re: Inefficient code in reftex-index.el, Richard Stallman, 2005/06/07
- Re: Inefficient code in reftex-index.el, David Kastrup, 2005/06/07
- Re: Inefficient code in reftex-index.el, Richard Stallman, 2005/06/08