diff options
| author | Mauro Aranda | 2019-09-27 18:06:36 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-09-27 18:06:36 +0200 |
| commit | 283fd5f2f6f3fa1f650c5a77f9e3587faddd6881 (patch) | |
| tree | bbb25ef172b502812844b6a01061f8b56491f8a2 /src/sysselect.h | |
| parent | 9ba907a5fbafaa323402ec1cfe4239ebf87a8a0a (diff) | |
| download | emacs-283fd5f2f6f3fa1f650c5a77f9e3587faddd6881.tar.gz emacs-283fd5f2f6f3fa1f650c5a77f9e3587faddd6881.zip | |
Don't discard customizations in progress when adding comments (Bug#5358)
* lisp/cus-edit.el (custom-comment-show): Add docstring. Save the
widget value in the :shown-value property, before redrawing.
(custom-variable-modified-p): New function, to complement the return
values of custom-variable-state.
(custom-variable-state-set): Use it.
(custom-face-value-create): Add children to the custom-face widget
before setting the state, to be able to check for user edits.
(custom-face-state-set): Check for user edits before calling
custom-face-state (bug#5358).
* test/lisp/custom-tests.el
(custom-test-show-comment-preserves-changes): New test.
Diffstat (limited to 'src/sysselect.h')
0 files changed, 0 insertions, 0 deletions