GNU bug report logs - #76974
31.0.50; [wishlist] Add global key binding for tramp-revert-buffer-with-sudo

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Wed, 12 Mar 2025 08:29:01 UTC

Severity: wishlist

Found in version 31.0.50

Fixed in version 31.1

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Robert Pluim <rpluim <at> gmail.com>, Michael Albinus <michael.albinus <at> gmx.de>,  Daniel Colascione <dancol <at> dancol.org>, 76974 <at> debbugs.gnu.org,  stephen.berman <at> gmx.net
Subject: bug#76974: 31.0.50; [wishlist] Add global key binding for tramp-revert-buffer-with-sudo
Date: Wed, 12 Mar 2025 19:49:45 +0800
Hello,

Yes, when I saw this my first thought was the C-x x keymap.  I think
using one of TRAMP's commonly-used characters would be good, so:

    C-x x @
or  C-x x :
or  C-x x |
or  C-x x /

I would suggest avoiding '|' because we might want to use it later for
something pipe-related.

We would want it to be easy to customise this for specific systems so
that the new binding always gets you root access, on systems that use
doas or su instead of sudo.
I see that there is already tramp-file-name-with-method for configuring
this.

Have you considered renaming the command to something like
tramp-revert-buffer-obtain-root ?  Adding a global binding seems like a
nice opportunity for a rename.

-- 
Sean Whitton




This bug report was last modified 123 days ago.

Previous Next


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