summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/shortdoc.el
diff options
context:
space:
mode:
authorMauro Aranda <maurooaranda@gmail.com>2020-11-05 18:56:29 -0300
committerMauro Aranda <maurooaranda@gmail.com>2020-11-05 18:56:29 -0300
commit67829946456be44fd72620ac182ee61e067532b4 (patch)
treef245ad1fc99477926f83298b2afbeb4cf073f542 /lisp/emacs-lisp/shortdoc.el
parent4610241a9b3fbddd1f0973bf49f7008ed09ab955 (diff)
downloademacs-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