[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: Sun, 17 Jun 2007 08:50:39 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux)

>> This function is good because it will enable programmers to DTRT in a
>> simpler way in many cases.

>     I fail to see the simplicity.  All the difficulty comes from having to
>     think about when to be careful about the match-data.

> 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 this is a delusion.  Maybe 100 years from now, it won't be the case
any more but in the foreseeable future most functions will still potentially
(i.e. unless documented otherwise) change the match-data and it'll still be
the only safe assumption to make.


reply via email to

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