comparison lisp/shell.el @ 111416:7a88e72dff57

* shell.el (shell-process-popd): Made aware of comint-file-name-prefix.
author Michael Albinus <michael.albinus@gmx.de>
date Sat, 06 Nov 2010 13:08:58 +0100
parents cc035ccb9275
children 249a1455856a
comparison
equal deleted inserted replaced
111415:c16170026954 111416:7a88e72dff57
698 698
699 ;; popd [+n] 699 ;; popd [+n]
700 (defun shell-process-popd (arg) 700 (defun shell-process-popd (arg)
701 (let ((num (or (shell-extract-num arg) 0))) 701 (let ((num (or (shell-extract-num arg) 0)))
702 (cond ((and num (= num 0) shell-dirstack) 702 (cond ((and num (= num 0) shell-dirstack)
703 (shell-cd (car shell-dirstack)) 703 (shell-cd (shell-prefixed-directory-name (car shell-dirstack)))
704 (setq shell-dirstack (cdr shell-dirstack)) 704 (setq shell-dirstack (cdr shell-dirstack))
705 (shell-dirstack-message)) 705 (shell-dirstack-message))
706 ((and num (> num 0) (<= num (length shell-dirstack))) 706 ((and num (> num 0) (<= num (length shell-dirstack)))
707 (let* ((ds (cons nil shell-dirstack)) 707 (let* ((ds (cons nil shell-dirstack))
708 (cell (nthcdr (1- num) ds))) 708 (cell (nthcdr (1- num) ds)))