[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: locate-file in Emacs
From: |
Miles Bader |
Subject: |
Re: locate-file in Emacs |
Date: |
19 Apr 2002 01:54:04 +0900 |
Hrvoje Niksic <address@hidden> writes:
> > I think that the common cases could (and probably should) be hardwired
> > for efficiency's sake. [E.g., (eq predicate 'file-executable-p) ]
>
> Maybe. But playing that kind of game can be extremely dangerous.
> People can and do redefine built-in functions for all kinds of reasons.
> When I say `file-executable-p', I expect *that* to be run, and not
> something else.
Ok, then use
(eq (symbol-function predicate) #<subr Ffile_executable_p>)
replacing #<subr Ffile_executable_p> with appropriate magic.
-Miles
--
"I distrust a research person who is always obviously busy on a task."
--Robert Frosch, VP, GM Research
- Re: locate-file in Emacs, (continued)
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Stefan Monnier, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/25
- Re: locate-file in Emacs, Stefan Monnier, 2002/04/25
- Re: locate-file in Emacs, Richard Stallman, 2002/04/19
- Re: locate-file in Emacs, Miles Bader, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs, Miles Bader, 2002/04/18
- Re: locate-file in Emacs, Hrvoje Niksic, 2002/04/18
- Re: locate-file in Emacs,
Miles Bader <=