emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: master a6a5d6a: Move 'revert-buffer' global binding to 'C-x g g'


From: Juri Linkov
Subject: Re: master a6a5d6a: Move 'revert-buffer' global binding to 'C-x g g'
Date: Wed, 10 Mar 2021 19:23:05 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

> I don't know what notation to use here though.  Maybe something like:
>
>     \\[cmd]  -> works as today
>     \\[=C-h] -> just adds the formatting to the exact string
>     \\[+cmd] -> adds both the key binding and its M-x form
>
> (This would of course break for symbols starting with = or +.)

Maybe displaying both the keybinding and the command name should be
defined by a command symbol's property like 'advertised-binding'
defines the default keybinding to display:

  (put 'revert-buffer :advertised-binding "M-x revert-buffer or C-x x g")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]