[Top][All Lists]

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

Re: find-file-noselect needs save-match-data

From: Richard Stallman
Subject: Re: find-file-noselect needs save-match-data
Date: Wed, 13 Jun 2007 12:22:45 -0400

    > I think all of those are misleading.
    > "string-match-reentrant"?

    What use is reentrancy in a routine that does not call Lisp and can't
    be called in interrupts?

The question need not be answered.  We want a meaningful and clear way
to distinguish this function from `string-match'.  The fact that it is
reentrant is a good way to distinguish.  The name looks good.

    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.

reply via email to

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