]> code.delx.au - gnu-emacs/commitdiff
2004-06-06 Emilio C. Lopes <eclig@gmx.net>
authorJohn Wiegley <johnw@newartisans.com>
Mon, 7 Jun 2004 08:36:23 +0000 (08:36 +0000)
committerJohn Wiegley <johnw@newartisans.com>
Mon, 7 Jun 2004 08:36:23 +0000 (08:36 +0000)
* eshell/esh-cmd.el (eshell/which): respect commands quoted with
eshell-explicit-command-char

lisp/eshell/esh-cmd.el

index 9b4f54ce8bf82298e9da2341178ae329f21f4f15..477d8b410ecd03686da68a33aa5aa8699d98733e 100644 (file)
@@ -1246,9 +1246,8 @@ be finished later after the completion of an asynchronous subprocess."
        (setq program (eshell-search-path name))
        (let* ((esym (eshell-find-alias-function name))
               (sym (or esym (intern-soft name))))
-         (if (and sym (fboundp sym)
-                  (or esym eshell-prefer-lisp-functions
-                      (not program)))
+         (if (and (or esym (and sym (fboundp sym)))
+                  (or eshell-prefer-lisp-functions (not direct)))
              (let ((desc (let ((inhibit-redisplay t))
                            (save-window-excursion
                              (prog1