GNU bug report logs -
#46300
28.0.50; Move revert-buffer global binding into a prefix map
Previous Next
Reported by: Sean Whitton <spwhitton <at> spwhitton.name>
Date: Thu, 4 Feb 2021 18:09:02 UTC
Severity: normal
Tags: fixed
Found in version 28.0.50
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
control: tag -1 + patch
On Thu 04 Feb 2021 at 05:46PM +01, Lars Ingebrigtsen wrote:
> Gregory Heytings <gregory <at> heytings.org> writes:
>
>> You forgot the proposal to which the mail you are replying to
>> explicitly refers. So I'll copy it here again: it is to make "C-x g"
>> a keymap for buffer-related operations, with in particular "C-x g r"
>> bound to revert-buffer:
>>
>> C-x g c = clone-buffer
>> C-x g d = diff-buffers
>> C-x g f = fit-frame-to-buffer
>> C-x g h = hexl-mode
>> C-x g i = insert-buffer
>> C-x g l = font-lock-mode
>> C-x g n = rename-buffer
>> C-x g r = revert-buffer
>> C-x g R = revert-buffer-with-fine-grain
>> C-x g t = toggle-truncate-lines
>
> Of the alternative key bindings proposed, I like this the best. I'd
> prefer `C-x g g' for revert-buffer, though -- it's more in like with the
> `g' binding in `special-mode-map', and `revert-buffer' is a command
> you're likely to want to execute a number of times (in some cases),
> while the rest of these are less keyboard-mashey.
Here's a patch doing that, since this seems like a solution which
satisfies most. Exactly what else to bind into that map I leave to
others, for now, anyway.
--
Sean Whitton
[0001-Move-revert-buffer-global-binding-to-C-x-g-g.patch (text/x-diff, attachment)]
This bug report was last modified 4 years and 105 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.