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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 62296 in the body.
You can then email your comments to 62296 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#62296; Package emacs. (Mon, 20 Mar 2023 14:49:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Chris Elrod <elrodc <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 20 Mar 2023 14:49:02 GMT) Full text and rfc822 format available.

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

From: Chris Elrod <elrodc <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Re: 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 09:51:26 -0400
[Message part 1 (text/plain, inline)]
To expand on my earlier report, I am using the `eshell-tramp` module.

On Mon, Mar 20, 2023 at 9:48 AM Chris Elrod <elrodc <at> gmail.com> wrote:

> I just rebuilt the latest emacs master, and found that I can no longer use
> sudo in eshell.
> I get the error message:
> Don’t know how to make a buffer-local variable an alias:
> tramp-use-connection-share
>
> This variable was recently introduced:
>
> https://github.com/emacs-mirror/emacs/commit/1c39347d58533280bae74c712ad0016a5c8992aa
>
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62296; Package emacs. (Mon, 20 Mar 2023 15:14:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 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 16:13:16 +0100
Chris Elrod <elrodc <at> gmail.com> writes:

Hi Chris,

> To expand on my earlier report, I am using the `eshell-tramp` module.
>
> On Mon, Mar 20, 2023 at 9:48 AM Chris Elrod <elrodc <at> gmail.com> wrote:
>
>     I just rebuilt the latest emacs master, and found that I can no
>     longer use sudo in eshell.
>     I get the error message:
>     Don’t know how to make a buffer-local variable an alias:
>     tramp-use-connection-share
>
>     This variable was recently introduced:
>     https://github.com/emacs-mirror/emacs/commit/1c39347d58533280bae74c712ad0016a5c8992aa

I tried to reproduce, but I cannot. Both versions of sudo in eshell work for me:

--8<---------------cut here---------------start------------->8---
Welcome to the Emacs shell

~/src/emacs $ sudo ls
[sudo] password for albinus: 
aclocal.m4	ChangeLog.1    configure~    INSTALL	   make-dist	README
admin		ChangeLog.2    configure.ac  INSTALL.REPO  Makefile	src
autogen.sh	ChangeLog.3    CONTRIBUTE    leim	   Makefile.in	test
autom4te.cache	config.bat     COPYING	     lib	   modules
BUGS		config.log     doc	     lib-src	   msdos
build-aux	config.log~    etc	     lisp	   nextstep
ChangeLog	config.status  GNUmakefile   lwlib	   nt
ChangeLog~	configure      info	     m4		   oldXMenu
~/src/emacs $ cd /sudo::
/sudo:root <at> gandalf:~ # ls
123  anaconda-ks.cfg  tmp
/sudo:root <at> gandalf:~ #
--8<---------------cut here---------------end--------------->8---

Could you pls provide a recipe, starting with "emacs -Q"?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62296; Package emacs. (Tue, 21 Mar 2023 04:29:02 GMT) Full text and rfc822 format available.

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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62296; Package emacs. (Tue, 21 Mar 2023 13:13:01 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 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: Tue, 21 Mar 2023 14:12:12 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Chris,

> I tried to reproduce, but I cannot. Both versions of sudo in eshell work for me:
>
> Could you pls provide a recipe, starting with "emacs -Q"?

Bug#62329 is the same problem, I'll use the recipe from there. Merging
both bugs.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62296; Package emacs. (Tue, 21 Mar 2023 23:36:02 GMT) Full text and rfc822 format available.

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

From: Jim Porter <jporterbugs <at> gmail.com>
To: Chris Elrod <elrodc <at> gmail.com>, 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: Tue, 21 Mar 2023 16:35:47 -0700
merge 62326 62295
thanks




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62296; Package emacs. (Tue, 21 Mar 2023 23:40:01 GMT) Full text and rfc822 format available.

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

From: Jim Porter <jporterbugs <at> gmail.com>
To: Chris Elrod <elrodc <at> gmail.com>, 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: Tue, 21 Mar 2023 16:39:39 -0700
merge 62296 62295
thanks

My previous attempt to merge this bug with its original version used a 
totally-wrong bug number for the dupe due to me mis-pasting the command. 
Hopefully this works...




Reply sent to Jim Porter <jporterbugs <at> gmail.com>:
You have taken responsibility. (Wed, 22 Mar 2023 04:02:02 GMT) Full text and rfc822 format available.

Notification sent to Chris Elrod <elrodc <at> gmail.com>:
bug acknowledged by developer. (Wed, 22 Mar 2023 04:02:02 GMT) Full text and rfc822 format available.

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

From: Jim Porter <jporterbugs <at> gmail.com>
To: Chris Elrod <elrodc <at> gmail.com>, 62296-done <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: Tue, 21 Mar 2023 21:01:09 -0700
On 3/21/2023 4:39 PM, Jim Porter wrote:
> Hopefully this works...

Well, I know marking as done works; sorry for the noise.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 19 Apr 2023 11:24:22 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 7 days ago.

Previous Next


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