+2004-02-18 Markus Rost <rost@mathematik.uni-bielefeld.de>
+
+ * progmodes/executable.el (executable-command-find-posix-p): Fix
+ choice of the directory.
+
2004-02-17 Luc Teirlinck <teirllm@auburn.edu>
* simple.el (interprogram-cut-function)
"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