Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
c3f6aa20
Commit
c3f6aa20
authored
May 11, 2005
by
Stefan Monnier
Browse files
(executable-find): Move from executable.el. Use locate-file.
parent
b71813cb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
lisp/files.el
lisp/files.el
+8
-1
No files found.
lisp/files.el
View file @
c3f6aa20
...
@@ -676,6 +676,13 @@ PATH-AND-SUFFIXES is a pair of lists (DIRECTORIES . SUFFIXES)."
...
@@ -676,6 +676,13 @@ PATH-AND-SUFFIXES is a pair of lists (DIRECTORIES . SUFFIXES)."
((
null
action
)
(
try-completion
string
names
))
((
null
action
)
(
try-completion
string
names
))
(
t
(
test-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
)
(
defun
load-library
(
library
)
"Load the library named LIBRARY.
"Load the library named LIBRARY.
This is an interface to the function `load'."
This is an interface to the function `load'."
...
@@ -4855,5 +4862,5 @@ With prefix arg, silently save all file-visiting buffers, then kill."
...
@@ -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
"\C-f"
'find-file-other-frame
)
(
define-key
ctl-x-5-map
"r"
'find-file-read-only-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
;;; files.el ends here
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment