Mercurial > emacs
comparison 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 |
comparison
equal
deleted
inserted
replaced
106263:e08955916fa6 | 106264:5fa7590f242f |
---|---|
399 (let ((result (cd dired-directory))) | 399 (let ((result (cd dired-directory))) |
400 (and eshell-cd-shows-directory | 400 (and eshell-cd-shows-directory |
401 (eshell-printn result))) | 401 (eshell-printn result))) |
402 (run-hooks 'eshell-directory-change-hook) | 402 (run-hooks 'eshell-directory-change-hook) |
403 (if eshell-list-files-after-cd | 403 (if eshell-list-files-after-cd |
404 (throw 'eshell-replace-command | 404 ;; Let-bind eshell-last-command around this? |
405 (eshell-parse-command "ls" (cdr args)))) | 405 (eshell-plain-command "ls" (cdr args))) |
406 nil)))) | 406 nil)))) |
407 | 407 |
408 (put 'eshell/cd 'eshell-no-numeric-conversions t) | 408 (put 'eshell/cd 'eshell-no-numeric-conversions t) |
409 | 409 |
410 (defun eshell-add-to-dir-ring (path) | 410 (defun eshell-add-to-dir-ring (path) |