diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-18 12:08:11 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-08-18 12:08:11 +0200 |
commit | 9384674aa31c27719aa55a9440ff59b721f0dd75 (patch) | |
tree | 2ea91f05547f9303c8378a3ef34eb0544721d412 /lisp/cedet/ede/make.el | |
parent | 033f98efc30d128748cc2f6672ddfbbb416fcbfb (diff) | |
download | emacs-9384674aa31c27719aa55a9440ff59b721f0dd75.tar.gz |
Remove some compat code from ede/make.el and semantic/dep.el
* lisp/cedet/ede/make.el (ede--find-executable): Make obsolete.
(ede-make-command): Adjust caller.
* lisp/cedet/semantic/dep.el
(semantic--dependency-find-file-on-path): Make obsolete.
(semantic-dependency-find-file-on-path): Adjust callers.
Diffstat (limited to 'lisp/cedet/ede/make.el')
-rw-r--r-- | lisp/cedet/ede/make.el | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/lisp/cedet/ede/make.el b/lisp/cedet/ede/make.el index ecce3e7105b..140e7387a68 100644 --- a/lisp/cedet/ede/make.el +++ b/lisp/cedet/ede/make.el @@ -32,29 +32,15 @@ (declare-function inversion-check-version "inversion") -(if (fboundp 'locate-file) - (defsubst ede--find-executable (exec) - "Return an expanded file name for a program EXEC on the exec path." - (locate-file exec exec-path)) - - ;; Else, older version of Emacs. - - (defsubst ede--find-executable (exec) - "Return an expanded file name for a program EXEC on the exec path." - (let ((p exec-path) - (found nil)) - (while (and p (not found)) - (let ((f (expand-file-name exec (car p)))) - (if (file-exists-p f) - (setq found f))) - (setq p (cdr p))) - found)) - ) +(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)) (defvar ede-make-min-version "3.0" "Minimum version of GNU make required.") -(defcustom ede-make-command (cond ((ede--find-executable "gmake") +(defcustom ede-make-command (cond ((executable-find "gmake") "gmake") (t "make")) ;; What to do? "The MAKE command to use for EDE when compiling. |