diff options
author | Markus Rost <rost@math.uni-bielefeld.de> | 2004-02-18 20:48:26 +0000 |
---|---|---|
committer | Markus Rost <rost@math.uni-bielefeld.de> | 2004-02-18 20:48:26 +0000 |
commit | c6190ba03bb1140848f87daab09d2f3f4877c395 (patch) | |
tree | 3b7d1c7b33b583228cffe5c147c44e54818d044f /lisp/progmodes/executable.el | |
parent | d29edb21c8fb2abc77cd119e5dbb0fe34a82120f (diff) | |
download | emacs-c6190ba03bb1140848f87daab09d2f3f4877c395.tar.gz emacs-c6190ba03bb1140848f87daab09d2f3f4877c395.tar.bz2 emacs-c6190ba03bb1140848f87daab09d2f3f4877c395.zip |
(executable-command-find-posix-p): Fix choice of the directory.
Diffstat (limited to 'lisp/progmodes/executable.el')
-rw-r--r-- | lisp/progmodes/executable.el | 8 |
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'.") "Check if PROGRAM handles arguments Posix-style. If PROGRAM is non-nil, use that instead of \"find\"." ;; Pick file to search from location we know - (let* ((dir (car load-path)) - (file (find-if - (lambda (x) - ;; Filter directories . and .. - (not (string-match "^\\.\\.?$" x))) - (directory-files dir)))) + (let* ((dir (file-truename data-directory)) + (file (car (directory-files dir nil "^[^.]")))) (with-temp-buffer (call-process (or program "find") nil |