]> git.eshelyaron.com Git - emacs.git/commit
Make the State button in Custom use extended menus
authorMauro Aranda <maurooaranda@gmail.com>
Wed, 7 Oct 2020 02:35:52 +0000 (04:35 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Wed, 7 Oct 2020 02:35:58 +0000 (04:35 +0200)
commit73054376542865cd00db8876bcfb241f0aa8f6b5
treed4d51d640dd2377c55b5e95ad438b417ee8cf954
parent891248be1cf805e8539d6e042eabc27bd725d515
Make the State button in Custom use extended menus

* lisp/cus-edit.el (custom-actioned-widget): New variable.
Dynamically hold the widget for which to show the menu.
(custom-variable-extended-menu, custom-face-extended-menu)
(custom-group-extended-menu): Keymap menus for the State menu.  Use
custom-actioned-widget for the :enable and :selected forms.  Make
related items radio buttons.  (Bug#4787)
(custom-variable-menu, custom-face-menu, custom-group-menu): Keep for
backward compatibility, but default to nil, so we prefer the keymap
menus instead.
(custom-variable-action, custom-face-action, custom-group-action):
Pass the keymap menu to widget-choose when the simplified menus
are nil.
lisp/cus-edit.el