GNU bug report logs -
#76974
31.0.50; [wishlist] Add global key binding for tramp-revert-buffer-with-sudo
Previous Next
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
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.)
I'm open to any alternative. I've proposed the 'C-x' keymap due to its
similarity to 'C-x C-f', 'C-x C-v' and 'C-x d'.
> Steve Berman
Best regards, Michael.
This bug report was last modified 122 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.