]> git.eshelyaron.com Git - emacs.git/commit
Prepare markers for insertions inside of a widget
authorMauro Aranda <maurooaranda@gmail.com>
Fri, 17 Jan 2025 20:12:08 +0000 (17:12 -0300)
committerEshel Yaron <me@eshelyaron.com>
Sun, 9 Feb 2025 08:41:17 +0000 (09:41 +0100)
commit200c52895af62f3ff7fb3b817b791a0343039aa4
tree33c862d5dfa58616e7e4eb82086e60ee0db85ced
parent9a3fcafcf5f21ee3f7f6eb0a316a9aa48a57ed89
Prepare markers for insertions inside of a widget

Recreating child widgets without recreating the parent widget
may lead to situations where the parent widget doesn't cover its
children or buttons entirely anymore.  This bug manifests as a
faulty fontification of children or buttons, for example.
(Bug#69941)

* lisp/wid-edit.el (widget--prepare-markers-for-inside-insertion)
(widget--prepare-markers-for-outside-insertion): New functions.
(widget-default-create): Use them.

* test/lisp/wid-edit-tests.el (widget-test-insertion-at-parent-markers)
(widget-test-insertion-at-parent-markers-2): New tests.

(cherry picked from commit 85113fcda97970bc2468f409278e27d6570fc76f)
lisp/wid-edit.el
test/lisp/wid-edit-tests.el