emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

`eshell/which' doesn't respect quoted commands


From: Emilio Lopes
Subject: `eshell/which' doesn't respect quoted commands
Date: Sun, 06 Jun 2004 18:43:46 +0200
User-agent: Emacs Gnus

`eshell/which' doesn't respect quoted commands, although 
`eshell-prefer-lisp-functions' is nil:

   ~ $ which ls
   eshell/ls is a compiled Lisp function in `em-ls'
   ~ $ which *ls
   eshell/ls is a compiled Lisp function in `em-ls'

The response to the second input line should be (in my system) "/bin/ls".

The following patch fix this.

2004-06-06  Emilio C. Lopes  <address@hidden>

        * eshell/esh-cmd.el (eshell/which): respect commands quoted with
        eshell-explicit-command-char


*** lisp/eshell/esh-cmd.el.~1.22.~      Sun Apr 18 13:37:31 2004
--- lisp/eshell/esh-cmd.el      Sun Jun  6 18:23:01 2004
***************
*** 1246,1254 ****
        (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)))
              (let ((desc (let ((inhibit-redisplay t))
                            (save-window-excursion
                              (prog1
--- 1246,1253 ----
        (setq program (eshell-search-path name))
        (let* ((esym (eshell-find-alias-function name))
               (sym (or esym (intern-soft name))))
!           (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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]