[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] eshell show nil when cd a non-absolute direcory
From: |
Wang Diancheng |
Subject: |
[PATCH] eshell show nil when cd a non-absolute direcory |
Date: |
Mon, 22 Jun 2009 13:59:45 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) |
(setq eshell-cd-shows-directory t)
when change to a non-absolute directory(eg. cd ..), eshell will show
"nil", not the directory name, following patch fixed it.
diff -u -r1.29 em-dirs.el
--- em-dirs.el 5 Jan 2009 03:21:43 -0000 1.29
+++ em-dirs.el 22 Jun 2009 05:47:11 -0000
@@ -393,7 +393,7 @@
(eshell-add-to-dir-ring curdir))
(let ((result (cd dired-directory)))
(and eshell-cd-shows-directory
- (eshell-printn result)))
+ (eshell-printn (eshell/pwd))))
(run-hooks 'eshell-directory-change-hook)
(if eshell-list-files-after-cd
(throw 'eshell-replace-command
</#part>
- [PATCH] eshell show nil when cd a non-absolute direcory,
Wang Diancheng <=