Subject: Re: bug#73600: 31.0.50; Visual wrap prefix mode and image display

From: Eli Zaretskii <[email-masked]>
Date: Sun, 13 Oct 2024 08:36:01 +0300

> Date: Sat, 12 Oct 2024 18:36:27 -0700
> Cc: [email-masked], [email-masked]
> From: Jim Porter <[email-masked]>
> 
> +    ;; Check if the display property at the end of this line is "safe".
> +    (if (visual-wrap--display-property-safe-p
> +         (get-char-property (pos-eol) 'display))
> +        ;; If so, we can apply our visual wrapping properties to this
> +        ;; line and continue to the next line.
> +        (progn
> +          (visual-wrap--apply-to-line (point))
> +          (forward-line))
> +      ;; Otherwise, skip ahead to the beginning of the first line after
> +      ;; the unsafe display property changes.
> +      (goto-char (next-single-char-property-change (pos-eol) 'display))

Yes, this is what I had in mind, thanks.  But does
next-single-char-property-change really fit the bill?  What if you
have several overlapping 'display' properties, and in particular one
property "enclosed" in another?  Did you test such a scenario?