diff options
| author | Jim Porter | 2025-05-28 09:44:34 -0700 |
|---|---|---|
| committer | Jim Porter | 2025-06-10 22:09:26 -0700 |
| commit | 90c0c9a01ed11944c5502f809817a028a1096ee6 (patch) | |
| tree | d648d1629acb37cffc65e62efed1021f5e2230be /src/bytecode.c | |
| parent | 24e6cd42330c341f3525e3fdc384e4a646dec733 (diff) | |
| download | emacs-90c0c9a01ed11944c5502f809817a028a1096ee6.tar.gz emacs-90c0c9a01ed11944c5502f809817a028a1096ee6.zip | |
Clean up text properties in 'visual-wrap-prefix-mode'
Before refontifying a region, remove any text properties we care about
so that we don't end up with stray properties. Additionally, make sure
to remove all the properties when deactivating the mode.
* lisp/emacs-lisp/subr-x.el (add-remove--display-text-property): New
function, extracted from...
(add-display-text-property): ... here.
(remove-display-text-property): New function.
* lisp/visual-wrap.el (visual-wrap--remove-properties): New function...
(visual-wrap-prefix-function, visual-wrap-prefix-mode): ... call it.
* test/lisp/emacs-lisp/subr-x-tests.el
(subr-x-test-remove-display-text-property): New test.
* test/lisp/visual-wrap-tests.el
(visual-wrap-tests/wrap-prefix-stickiness, visual-wrap-tests/cleanup):
New tests.
* doc/lispref/display.texi (Display Property): Document
'remove-display-text-property'.
* etc/NEWS: Announce 'remove-display-text-property' (bug#76018).
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions