> 
> + (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.


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to