1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-18 08:51:45 -08:00
emacs/doc
Jim Porter 90c0c9a01e 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).
2025-06-10 22:09:26 -07:00
..
emacs Add new tactic to treesit-navigate-thing (bug#78703) 2025-06-09 21:43:27 -07:00
lispintro Merge from origin/emacs-30 2025-04-30 07:14:23 -04:00
lispref Clean up text properties in 'visual-wrap-prefix-mode' 2025-06-10 22:09:26 -07:00
man Remove ctags program 2025-03-22 11:57:29 -07:00
misc Update modus-themes to their version 4.8.0 2025-06-11 08:09:05 +03:00
translations Update copyright year to 2025 2025-01-02 18:39:42 +01:00