emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `make' written in elisp


From: Eli Zaretskii
Subject: Re: `make' written in elisp
Date: Mon, 03 Jan 2005 11:36:06 +0200

> From: David Kastrup <address@hidden>
> Date: Mon, 03 Jan 2005 09:02:37 +0100
> Cc: Ralf Angeli <address@hidden>, address@hidden
> 
> Well, at least a standard function for finding the path name of an
> executable in PATH and/or in general a file in a set of locations
> might be nice to have.

We already have that, I think:

    locate-file-internal is a built-in function in `C source code'.
    (locate-file-internal FILENAME PATH &optional SUFFIXES PREDICATE)

    Search for FILENAME through PATH.
    If SUFFIXES is non-nil, it should be a list of suffixes to append to
    file name when searching.
    If non-nil, PREDICATE is used instead of `file-readable-p'.
    PREDICATE can also be an integer to pass to the access(2) function,
    in which case file-name-handlers are ignored.

Isn't this what you wanted?




reply via email to

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