From: Wang Diancheng <dianchengwang@gmail.com>
To: emacs-devel@gnu.org
Subject: [PATCH] eshell show nil when cd a non-absolute direcory
Date: Mon, 22 Jun 2009 13:59:45 +0800 [thread overview]
Message-ID: <871vpcbyge.fsf@redflag-linux.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 164 bytes --]
(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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 443 bytes --]
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>
next reply other threads:[~2009-06-22 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 5:59 Wang Diancheng [this message]
2009-06-22 17:50 ` [PATCH] eshell show nil when cd a non-absolute direcory Andreas Schwab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871vpcbyge.fsf@redflag-linux.com \
--to=dianchengwang@gmail.com \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.