Function: ede--find-executable

ede--find-executable is a byte-compiled function defined in make.el.gz.

This function is obsolete since 28.1; use locate-file instead.

Signature

(ede--find-executable EXEC)

Documentation

Return an expanded file name for a program EXEC on the exec path.

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/ede/make.el.gz
;;; ede/make.el --- General information about "make"  -*- lexical-binding: t -*-

;; Copyright (C) 2009-2025 Free Software Foundation, Inc.

;; Author: Eric M. Ludlam <zappo@gnu.org>

;; This file is part of GNU Emacs.

;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.

;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.

;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.

;;; Commentary:
;;
;; This file needs to choose the version of "make" it wants to use.
;; Whenever an executable "gmake" is available, we prefer that since
;; it usually means GNU Make.  If it doesn't exist, use "make".
;;
;; Run tests on make --version to be sure it is GNU make so that
;; logical error messages can be provided.

;;; Code:

(defsubst ede--find-executable (exec)
  "Return an expanded file name for a program EXEC on the exec path."
  (declare (obsolete locate-file "28.1"))
  (locate-file exec exec-path))