[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 21.3.50 grep.el/executable.el problems
From: |
Markus Rost |
Subject: |
Re: Emacs 21.3.50 grep.el/executable.el problems |
Date: |
Mon, 16 Feb 2004 15:35:22 +0100 |
I got the impression that the grep/executable problems don't get
fixed, because there should be perhaps a more extensive change.
However, it seems that quite a few people spent some time to fix it,
probably because grep is used a lot.
I suggest following simple fix, at least as a temporary solution.
I'll install it, if one of the maintainers agrees.
===Buffer *vc-diff*=========================================
*** executable.el.~1.30.~ Thu Feb 12 14:48:19 2004
--- executable.el Mon Feb 16 15:22:31 2004
***************
*** 145,156 ****
"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))))
(with-temp-buffer
(call-process (or program "find")
nil
--- 145,152 ----
"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 data-directory)
! (file (car (directory-files dir nil "^[^.]"))))
(with-temp-buffer
(call-process (or program "find")
nil
============================================================
- Re: Emacs 21.3.50 grep.el/executable.el problems,
Markus Rost <=