diff lisp/eshell/em-dirs.el @ 106264:5fa7590f242f

(eshell/cd): Don't throw to a tag outside the scope. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=557572
author Glenn Morris <rgm@gnu.org>
date Thu, 26 Nov 2009 03:09:58 +0000
parents 48428e99bf83
children 1d1d5d9bd884
line wrap: on
line diff
--- a/lisp/eshell/em-dirs.el	Thu Nov 26 03:08:30 2009 +0000
+++ b/lisp/eshell/em-dirs.el	Thu Nov 26 03:09:58 2009 +0000
@@ -401,8 +401,8 @@
 	       (eshell-printn result)))
 	(run-hooks 'eshell-directory-change-hook)
 	(if eshell-list-files-after-cd
-	    (throw 'eshell-replace-command
-		   (eshell-parse-command "ls" (cdr args))))
+	    ;; Let-bind eshell-last-command around this?
+	    (eshell-plain-command "ls" (cdr args)))
 	nil))))
 
 (put 'eshell/cd 'eshell-no-numeric-conversions t)