emacs-devel
[Top][All Lists]
Advanced

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

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


From: David Kastrup
Subject: Re: find-file-noselect needs save-match-data
Date: Tue, 12 Jun 2007 23:55:21 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

Andreas Schwab <address@hidden> writes:

> Juri Linkov <address@hidden> writes:
>
>>> Bob Rogers <address@hidden> writes:
>>>> The only possible use for a "string-match" that doesn't set the match
>>>> data is the boolean return value, right?  So how about "string-match-p"?
>>>
>>> Er, no.  string-match returns the index of the match (or nil for no match),
>>> which is actually quite useful.
>>
>> Since it returns the value of (match-beginning 0), how about the name
>> `string-match-0'?  It is short, and zero has additional mnemonic that
>> no data is set by this function.
>
> How about string-match-no-record?

What about string-match-beginning?  Or string-match-save?  Or
stealthy-string-match?

The possibilities are endless.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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