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


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

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 76974 <at> debbugs.gnu.org
Subject: Re: bug#76974: 31.0.50; [wishlist] Add global key binding for
 tramp-revert-buffer-with-sudo
Date: Wed, 12 Mar 2025 10:27:54 +0100
On Wed, 12 Mar 2025 10:14:27 +0100 Michael Albinus <michael.albinus <at> gmx.de> wrote:

> Stephen Berman <stephen.berman <at> gmx.net> writes:
>
> Hi Steve,
>
>>> tramp-revert-buffer-with-sudo has been added to Emacs 30.1. I propose to
>>> give it a global key binding 'C-x @'. With this binding, it is more
>>> simple to revert the current buffer to visit with "sudo"
>>> permissions. This is useful for buffers visiting a file, or for dired
>>> buffers.
>>
>> `C-x @' is the prefix for the `event-apply-*-modifier' functions in the
>> globally accessible function-key-map.
>
> That's unfortune. What about 'C-x |'? Worse mnemonic, but it is related
> to Tramp's multi-hop syntax.

`C-x |' is globally unbound AFAICS.  Another available key combination
is `C-c @', unless '@' counts as a letter (info "(elisp) Key Binding
Conventions").  (On e.g. German keyboards '|' and '@' are not the easiest
keys to type, but that's probably not a decisive criterion.)

Steve Berman




This bug report was last modified 124 days ago.

Previous Next


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