[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: find-file-noselect needs save-match-data
From: |
Stefan Monnier |
Subject: |
Re: find-file-noselect needs save-match-data |
Date: |
Wed, 13 Jun 2007 13:31:49 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
> Anyway, such a function should likely _return_ the corresponding
> match-data (rather than setting a global variable to it), and things
> like match-beginning should optionally take an argument for this
> particular match-data.
> That is a good idea. If there is no match, it returns nil; if there
> is a match, it returns the match data.
Then what's the advantage compared to using save-match-data? This whole
discussion started because people want to add save-match-data everywhere and
I pointed out that it's very rarely necessary, and it can be costly (where
the "it" is generating the Lisp-level match data).
The suggestion to have a specialized string-match operation that preserves
match-data was for performance reasons, AFAICT, like fast_c_string_match.
Stefan
- RE: find-file-noselect needs save-match-data, (continued)
- RE: find-file-noselect needs save-match-data, Drew Adams, 2007/06/09
- Re: find-file-noselect needs save-match-data, Richard Stallman, 2007/06/10
- Re: find-file-noselect needs save-match-data, Bob Rogers, 2007/06/11
- Re: find-file-noselect needs save-match-data, Miles Bader, 2007/06/12
- Re: find-file-noselect needs save-match-data, Juri Linkov, 2007/06/12
- Re: find-file-noselect needs save-match-data, Andreas Schwab, 2007/06/12
- Re: find-file-noselect needs save-match-data, David Kastrup, 2007/06/12
- Re: find-file-noselect needs save-match-data, Miles Bader, 2007/06/12
- Re: find-file-noselect needs save-match-data, David Kastrup, 2007/06/12
- Re: find-file-noselect needs save-match-data, Richard Stallman, 2007/06/13
- Re: find-file-noselect needs save-match-data,
Stefan Monnier <=
- Re: find-file-noselect needs save-match-data, David Kastrup, 2007/06/13
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/13
- Re: find-file-noselect needs save-match-data, Herbert Euler, 2007/06/14
- Re: find-file-noselect needs save-match-data, Richard Stallman, 2007/06/15
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/15
- Re: find-file-noselect needs save-match-data, Herbert Euler, 2007/06/15
- Re: find-file-noselect needs save-match-data, martin rudalics, 2007/06/14
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/14
- Re: find-file-noselect needs save-match-data, Herbert Euler, 2007/06/14
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/14