emacs-devel
[Top][All Lists]
Advanced

[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



reply via email to

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