diff options
author | Mauro Aranda <maurooaranda@gmail.com> | 2020-11-05 18:56:29 -0300 |
---|---|---|
committer | Mauro Aranda <maurooaranda@gmail.com> | 2020-11-05 18:56:29 -0300 |
commit | 67829946456be44fd72620ac182ee61e067532b4 (patch) | |
tree | f245ad1fc99477926f83298b2afbeb4cf073f542 /lisp/emacs-lisp/shortdoc.el | |
parent | 4610241a9b3fbddd1f0973bf49f7008ed09ab955 (diff) | |
download | emacs-67829946456be44fd72620ac182ee61e067532b4.tar.gz emacs-67829946456be44fd72620ac182ee61e067532b4.tar.bz2 emacs-67829946456be44fd72620ac182ee61e067532b4.zip |
Enable/disable buttons, tool bar and menu items in Custom buffer (Bug#14398)
* lisp/cus-edit.el (custom-reset-extended-menu): Keymap menu for the
Revert... menu button.
(custom-reset-menu): Keep for backward compatibility, but default to
nil, so we prefer the keymap menu instead.
(custom-reset): Pass the new keymap menu to widget-choose.
(custom-commands): Add an element to each list item, to manage its
enable/disable state. Add docstring.
(custom-command-buttons): New variable, to hold the buttons that act
on all options in a Custom buffer.
(custom-buffer-create-internal): When creating the command buttons,
add the optional :notify function to enable/disable them. Add the
buttons to the new variable custom-command-buttons.
(customize-menu-create): Notify the command buttons after creating the
Custom buffer, so they are correctly enabled/disabled.
(custom-redraw-magic, custom-notify): Notify the command buttons and
update the tool bar when changing a widget to the modified state.
Diffstat (limited to 'lisp/emacs-lisp/shortdoc.el')
0 files changed, 0 insertions, 0 deletions