Subject: Re: bug#72681: 31.0.50; visual-wrap-prefix-mode interacts badly with plain lists in org-mode

From: Eli Zaretskii <[email-masked]>
Date: Sat, 17 Aug 2024 10:19:28 +0300

> Date: Sat, 17 Aug 2024 12:21:45 +1000
> From: "Mark Hepburn" <[email-masked]>
> 
> The recently-merged visual-wrap-prefix-mode support for variable-pitch
> fonts seems to interact badly with plain lists in org-mode, causing
> visual artefacts.  I think it's to do with both plain lists and a
> trailing blank line.  To reproduce, from emacs -Q:
> * switch to a new buffer
> * M-x org-mode
> * Insert a couple of headings, with a plain list followed by a blank
> line afterwards:
> ====================
> * header
> 
> - item
> 
> * second header
> ====================
> * M-x visual-wrap-prefix-mode
> * This now renders for me like:
> ====================
> * header
> 
> - item
> 
>   *  second header
> ====================
> (The actual artefacts are even more pronounced for me in practice
> because I have org-adapt-indentation set, so the second header is even
> more visually indented)

Thanks.

Jim, could you please look into this?  Is visual-wrap-prefix-mode at
all supposed to be used in Org buffers?