emacs-devel
[Top][All Lists]
Advanced

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

Re: executable-find in files.el


From: Eli Zaretskii
Subject: Re: executable-find in files.el
Date: Wed, 11 May 2005 21:29:12 +0300

> 
> + (defun executable-find (command)
> +   "Search for COMMAND in `exec-path' and return the absolute file name.
> + Return nil if COMMAND is not found anywhere in `exec-path'."
> +   ;; Use 1 rather than file-executable-p to better match the behavior of
> +   ;; call-process.
> +   (locate-file command exec-path exec-suffixes 1))

Passing 1 as last arg of locate-file is subtly different from passing
file-executable-p.  I think the latter does a better job, so I think
executable-find should use file-executable-p.




reply via email to

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