Mercurial > emacs
diff lisp/progmodes/executable.el @ 54065:18ada18b62be
(executable-command-find-posix-p): Fix choice of the directory.
| author | Markus Rost <rost@math.uni-bielefeld.de> |
|---|---|
| date | Wed, 18 Feb 2004 20:47:46 +0000 |
| parents | 11ae9146993f |
| children | 2e6b67f7b5c9 |
line wrap: on
line diff
--- a/lisp/progmodes/executable.el Wed Feb 18 05:02:30 2004 +0000 +++ b/lisp/progmodes/executable.el Wed Feb 18 20:47:46 2004 +0000 @@ -145,12 +145,8 @@ "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
