aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/executable.el
diff options
context:
space:
mode:
authorKaroly Lorentey2004-02-19 13:25:32 +0000
committerKaroly Lorentey2004-02-19 13:25:32 +0000
commitbfdfad9294d072ad12b670d23912998f7e439394 (patch)
tree0e83846ea270896631e403d0faf48190c22926c9 /lisp/progmodes/executable.el
parent24268213e13b61f2cb8f88e69164161e84f08f5f (diff)
parent1d71218362bb1c75ed0c630d80b9710637538bcc (diff)
downloademacs-bfdfad9294d072ad12b670d23912998f7e439394.tar.gz
emacs-bfdfad9294d072ad12b670d23912998f7e439394.zip
Merged in changes from CVS HEAD
Patches applied: * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-103 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-82
Diffstat (limited to 'lisp/progmodes/executable.el')
-rw-r--r--lisp/progmodes/executable.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el
index b301d84d144..a5d401a5f5e 100644
--- a/lisp/progmodes/executable.el
+++ b/lisp/progmodes/executable.el
@@ -145,12 +145,8 @@ See `compilation-error-regexp-alist'.")
145 "Check if PROGRAM handles arguments Posix-style. 145 "Check if PROGRAM handles arguments Posix-style.
146If PROGRAM is non-nil, use that instead of \"find\"." 146If PROGRAM is non-nil, use that instead of \"find\"."
147 ;; Pick file to search from location we know 147 ;; Pick file to search from location we know
148 (let* ((dir (car load-path)) 148 (let* ((dir (file-truename data-directory))
149 (file (find-if 149 (file (car (directory-files dir nil "^[^.]"))))
150 (lambda (x)
151 ;; Filter directories . and ..
152 (not (string-match "^\\.\\.?$" x)))
153 (directory-files dir))))
154 (with-temp-buffer 150 (with-temp-buffer
155 (call-process (or program "find") 151 (call-process (or program "find")
156 nil 152 nil