GNU bug report logs - #72681
31.0.50; visual-wrap-prefix-mode interacts badly with plain lists in org-mode

Previous Next

Package: emacs;

Reported by: "Mark Hepburn" <mark <at> markhepburn.com>

Date: Sat, 17 Aug 2024 07:14:01 UTC

Severity: normal

Found in version 31.0.50

Done: Jim Porter <jporterbugs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jim Porter <jporterbugs <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, Mark Hepburn <mark <at> markhepburn.com>
Cc: 72681 <at> debbugs.gnu.org
Subject: bug#72681: 31.0.50; visual-wrap-prefix-mode interacts badly with plain lists in org-mode
Date: Sat, 17 Aug 2024 13:29:45 -0700
[Message part 1 (text/plain, inline)]
On 8/17/2024 12:19 AM, Eli Zaretskii wrote:
> Jim, could you please look into this?  Is visual-wrap-prefix-mode at
> all supposed to be used in Org buffers?

Yes, I think 'visual-wrap-prefix-mode' should support Org buffers. It's 
probably one of the more useful text-based modes where 
'visual-wrap-prefix-mode' would be convenient.

It looks like this was just a small corner case in the visual-wrap code 
for aligning prefix lines that didn't account for Org-Mode's custom 
'adaptive-fill-function'. I've fixed this by being more careful to only 
apply the 'min-width' display property to a single logical line.

Mark, does the attached patch fix things for you? It looks like it works 
in my tests, but maybe you have some more complicated test cases you'd 
like to try to verify this.
[0001-Be-more-careful-about-aligning-prefix-lines-in-visua.patch (text/plain, attachment)]

This bug report was last modified 265 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.