mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(executable-find): Move from executable.el. Use locate-file.
This commit is contained in:
parent
b71813cb9a
commit
c3f6aa2088
1 changed files with 8 additions and 1 deletions
|
|
@ -676,6 +676,13 @@ PATH-AND-SUFFIXES is a pair of lists (DIRECTORIES . SUFFIXES)."
|
|||
((null action) (try-completion string names))
|
||||
(t (test-completion string names))))))
|
||||
|
||||
(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))
|
||||
|
||||
(defun load-library (library)
|
||||
"Load the library named LIBRARY.
|
||||
This is an interface to the function `load'."
|
||||
|
|
@ -4855,5 +4862,5 @@ With prefix arg, silently save all file-visiting buffers, then kill."
|
|||
(define-key ctl-x-5-map "\C-f" 'find-file-other-frame)
|
||||
(define-key ctl-x-5-map "r" 'find-file-read-only-other-frame)
|
||||
|
||||
;;; arch-tag: bc68d3ea-19ca-468b-aac6-3a4a7766101f
|
||||
;; arch-tag: bc68d3ea-19ca-468b-aac6-3a4a7766101f
|
||||
;;; files.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue