Subject: Re: bug#60402: 29.0.60; eshell/sudo errors with "Symbol’s value as variable is void: tramp-default-host"
From: Michael Albinus <[email-masked]>
To: Rah Guzar via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <[email-masked]>
Cc: [email-masked], Rah Guzar <[email-masked]>
Date: Fri, 30 Dec 2022 09:31:31 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 29.1

Rah Guzar via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <[email-masked]> writes:

Hi,

> Starting with emacs -Q
> 1. M-x load-library eshell RET
> 2. Customize `eshell-modules-list` to include `eshell-tramp`.
> 3. M-x eshell RET
> 4. Running any command with sudo errors out with
>    Symbol’s value as variable is void: tramp-default-host.

Thanks for the report.

> Requiring tramp solves this problem which occurs due to the use of
> `tramp-default-host` in `eshell--method-wrap-directory`.

I've fixed this in the emacs-29 branch, closing the bug.

Best regards, Michael.