[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, 06 Jun 2007 18:09:58 -0400 |
99% of non-trivial functions use regexps. So you cannot assume a function
doesn't use regexps just because it doesn't say that it uses regexps.
It's rather the opposite: a function can only be assumed not to use regexps
if it is really trivial/primitive (e.g. `car' or `expand-file-name').
I almost agree with you. There are some functions that aren't
literally primitive, but seem like things that should be safe to call.
file-truename is an example. It would be good to make file-truename
safe regarding regexps.
find-file-noselect doesn't have to be regexp-safe, but why not make it
regexp-safe, since it is so slow.
However, we shouldn't go around trying to make all Emacs functions
regexp-safe.
- Re: find-file-noselect needs save-match-data, (continued)
- Re: find-file-noselect needs save-match-data, martin rudalics, 2007/06/04
- Re: find-file-noselect needs save-match-data, Herbert Euler, 2007/06/04
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/05
- Re: find-file-noselect needs save-match-data, Herbert Euler, 2007/06/05
- Re: find-file-noselect needs save-match-data, martin rudalics, 2007/06/06
- Re: find-file-noselect needs save-match-data, David Kastrup, 2007/06/06
- Re: find-file-noselect needs save-match-data, Richard Stallman, 2007/06/06
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/06
- Re: find-file-noselect needs save-match-data,
Richard Stallman <=
- Re: find-file-noselect needs save-match-data, martin rudalics, 2007/06/06
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/06
- Re: find-file-noselect needs save-match-data, Lennart Borgman (gmail), 2007/06/06
- Re: find-file-noselect needs save-match-data, martin rudalics, 2007/06/06
- Re: find-file-noselect needs save-match-data, Richard Stallman, 2007/06/06
- Re: find-file-noselect needs save-match-data, Stefan Monnier, 2007/06/06
- Re: find-file-noselect needs save-match-data, Richard Stallman, 2007/06/08
- Re: find-file-noselect needs save-match-data, Kim F. Storm, 2007/06/08
- Re: find-file-noselect needs save-match-data, martin rudalics, 2007/06/08
- Re: find-file-noselect needs save-match-data, Kim F. Storm, 2007/06/08