diff options
| author | Jim Porter | 2024-10-03 17:24:18 -0700 |
|---|---|---|
| committer | Jim Porter | 2025-05-26 12:43:51 -0700 |
| commit | 8762f6c7c974d028816a74169e3d6fdecaec8d6d (patch) | |
| tree | 28bfef0e7d4108dd13011b3a9d2d61ae604c7062 /java | |
| parent | 3b5226af3f737c82f9bbedd8fbe067bab4b4b67a (diff) | |
| download | emacs-8762f6c7c974d028816a74169e3d6fdecaec8d6d.tar.gz emacs-8762f6c7c974d028816a74169e3d6fdecaec8d6d.zip | |
Don't add visual-wrap-prefix properties to unsafe multi-line display specs
This makes sure we don't interfere with other display specs, e.g. for
images displayed in 'image-mode' (bug#73600).
* lisp/visual-wrap.el (visual-wrap--safe-display-specs): New variable.
(visual-wrap--display-property-safe-p): New function.
(visual-wrap--apply-to-line): Use 'pos-eol'; we don't want to respect
field boundaries here.
(visual-wrap-prefix-function): Check for unsafe display properties at
the end of the line and skip past them if present.
* test/lisp/visual-wrap-tests.el: New test file.
Diffstat (limited to 'java')
0 files changed, 0 insertions, 0 deletions