diff options
| author | Mauro Aranda | 2025-02-24 19:39:43 -0300 |
|---|---|---|
| committer | Mauro Aranda | 2025-02-24 19:55:31 -0300 |
| commit | 363adcc69d322bdede1934b47e9dd1fbc3148ab9 (patch) | |
| tree | 180c3ab8282d1121bedb0a7d312b1dc059f37218 /doc | |
| parent | 60232a30e360c00fb303cb033d4aec15a9e41342 (diff) | |
| download | emacs-363adcc69d322bdede1934b47e9dd1fbc3148ab9.tar.gz emacs-363adcc69d322bdede1934b47e9dd1fbc3148ab9.zip | |
Fix bad fontification of inactive widgets
* lisp/wid-edit.el (widget-specify-inactive): When a widget is
already inactive, still move the overlay to the desired
positions. Improve docstring. (Bug#69941)
* doc/misc/widget.texi (default): Document the need to call the
:deactivate function when modifying an inactive widget.
* test/lisp/wid-edit-tests.el
(widget-test-modification-of-inactive-widget): New test
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/widget.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/misc/widget.texi b/doc/misc/widget.texi index 68d53a42025..f84e81bce77 100644 --- a/doc/misc/widget.texi +++ b/doc/misc/widget.texi | |||
| @@ -1333,6 +1333,9 @@ modifications. | |||
| 1333 | Function that takes a widget and makes it inactive for user | 1333 | Function that takes a widget and makes it inactive for user |
| 1334 | modifications. | 1334 | modifications. |
| 1335 | 1335 | ||
| 1336 | If you modify a widget that is not active, you should make sure the | ||
| 1337 | :deactivate function gets called again after the modifications. | ||
| 1338 | |||
| 1336 | @vindex action@r{ keyword} | 1339 | @vindex action@r{ keyword} |
| 1337 | @item :action | 1340 | @item :action |
| 1338 | Function that takes a widget and optionally an event, and handles a | 1341 | Function that takes a widget and optionally an event, and handles a |