]> git.eshelyaron.com Git - emacs.git/commitdiff
(executable-command-find-posix-p): Fix choice of the directory.
authorMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 18 Feb 2004 20:48:26 +0000 (20:48 +0000)
committerMarkus Rost <rost@math.uni-bielefeld.de>
Wed, 18 Feb 2004 20:48:26 +0000 (20:48 +0000)
lisp/ChangeLog
lisp/progmodes/executable.el

index 219c68fe7c097d7e97756558132f3cb2cd498a74..f5e51f9a093a29178ef71064d6b40092f5939ddb 100644 (file)
@@ -1,3 +1,8 @@
+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)
index b301d84d144837b2b6cd9b62b160ead6dd93689f..a5d401a5f5e8ec969c1c633780a865a60246c63a 100644 (file)
@@ -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