search ".exe" also.
This commit is contained in:
parent
9d44d13ba1
commit
4aef34e352
@ -17,10 +17,12 @@
|
|||||||
|
|
||||||
(defun ghc-which (cmd)
|
(defun ghc-which (cmd)
|
||||||
(catch 'loop
|
(catch 'loop
|
||||||
(dolist (dir exec-path)
|
(dolist (suffix '("" ".exe"))
|
||||||
(let ((path (expand-file-name cmd dir)))
|
(let ((cmds (concat cmd suffix)))
|
||||||
(if (file-exists-p path)
|
(dolist (dir exec-path)
|
||||||
(throw 'loop path))))))
|
(let ((path (expand-file-name cmds dir)))
|
||||||
|
(if (file-exists-p path)
|
||||||
|
(throw 'loop path))))))))
|
||||||
|
|
||||||
(defun ghc-uniq-lol (lol)
|
(defun ghc-uniq-lol (lol)
|
||||||
(let ((hash (make-hash-table :test 'equal))
|
(let ((hash (make-hash-table :test 'equal))
|
||||||
|
Loading…
Reference in New Issue
Block a user