GNU bug report logs - #62296
eshell: sudo results in "Don’t know how to make a buffer-local variable an alias: tramp-use-connection-share"

Previous Next

Package: emacs;

Reported by: Chris Elrod <elrodc <at> gmail.com>

Date: Mon, 20 Mar 2023 14:49:02 UTC

Severity: normal

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 62296 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Michael Albinus <michael.albinus <at> gmx.de>, Chris Elrod <elrodc <at> gmail.com>
Cc: 62296 <at> debbugs.gnu.org
Subject: Re: bug#62296: eshell: sudo results in "Don’t know how to make a buffer-local variable an alias: tramp-use-connection-share"
Date: Mon, 20 Mar 2023 21:28:05 -0700
On 3/20/2023 8:13 AM, Michael Albinus wrote:
> I tried to reproduce, but I cannot. Both versions of sudo in eshell work for me:
[snip]
> 
> Could you pls provide a recipe, starting with "emacs -Q"?

I'm not able to reproduce this either, but here's what I tried from 
"emacs -Q":

  M-: (require 'eshell)
  M-: (add-to-list 'eshell-modules-list 'eshell-tramp)
  M-x eshell

  ~ $ which sudo
  eshell/sudo is a byte-compiled Lisp function in ‘em-tramp.el’.
  ~ $ sudo *whoami
  root

Chris, you could try running "make bootstrap", or at least "rm 
lisp/eshell/*.elc && make" to make sure that the Eshell code gets 
recompiled. Eshell makes pretty heavy use of defmacro and defsubst, so 
sometimes the bytecode files end up out of date and you need to get rid 
of them.




This bug report was last modified 2 years and 119 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.