[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: eshell and eshell-directory-change-hook
From: |
Michael Albinus |
Subject: |
Re: eshell and eshell-directory-change-hook |
Date: |
Tue, 15 Nov 2016 18:33:38 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) |
Alexey Lebedeff <address@hidden> writes:
> Hi,
Hi Alexey,
> Running remote commands through eshell starts to work only after doing
> "cd" at least once. This is because some tramp setup happens in
> eshell-directory-change-hook.
>
> I'm not sure whether it should be fixed in tramp, by "(add-hook
> 'eshell-mode-hook 'tramp-eshell-directory-change)". Or in eshell, by
> teaching it to invoke eshell-directory-change-hook during
> initialization. And it's arguable whether eshell initialization can be
> considered as a directory change or not =)
I cannot reproduce it locally. Using a recent GNU Emacs 26.0.50.1, I run:
--8<---------------cut here---------------start------------->8---
# emacs -Q /sudo::
M-x eshell
/sudo:address@hidden:/root $ *pwd
/root
--8<---------------cut here---------------end--------------->8---
Could you, pls, show your use case? Starting with "emacs -Q" shall
avoid user specific side effects.
> Best,
> Alexey
Best regards, Michael.