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: Miles Bader
Subject: Re: find-file-noselect needs save-match-data
Date: Sun, 17 Jun 2007 06:39:36 +0900

Richard Stallman <address@hidden> writes:
> Yes, but if people get in the habit of using a new function
> whenever they don't actually want to use the match data,
> which I expect is most of the time, that need to think carefully
> will be much less frequent.

I think the name `string-match-p' probably aids that end more than the
name I suggested.  A guideline like "use (string-match-p) if you just
need to do a test, and (save-match-data (string-match ...)) if you need
the match data" seems fairly natural.

-miles

-- 
Everywhere is walking distance if you have the time.  -- Steven Wright




reply via email to

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