GNU bug report logs - #72721
31.0.50; Visual-wrap-prefix-mode breaks Magit log buffers

Previous Next

Package: emacs;

Reported by: Gautier Ponsinet <gautier <at> gautierponsinet.xyz>

Date: Mon, 19 Aug 2024 22:29:02 UTC

Severity: normal

Merged with 72710

Found in version 31.0.50

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

Bug is archived. No further changes may be made.

Full log


Message #26 received at 72721 <at> debbugs.gnu.org (full text, mbox):

From: Jim Porter <jporterbugs <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 72721 <at> debbugs.gnu.org, gautier <at> gautierponsinet.xyz
Subject: Re: bug#72721: 31.0.50; Visual-wrap-prefix-mode breaks Magit log
 buffers
Date: Wed, 21 Aug 2024 12:12:00 -0700
[Message part 1 (text/plain, inline)]
On 8/20/2024 10:18 PM, Jim Porter wrote:
> On 8/20/2024 8:15 PM, Jim Porter wrote:
>> Hopefully the attached reproducers help make sense of this. I've also 
>> updated my patch to handle 'min-width' in what I think is a simpler 
>> way. This implementation relies on the fact that you can't nest 
>> 'min-width' specs (the iterator struct can only hold one spec at a 
>> time). I'm guessing on some of these parts, so I may be totally 
>> off-base, but the test cases do what I expect anyway...
> 
> Whoops, I'd uploaded the wrong patch. Here's the correct one.

... and here's a new test case (overlay-min-width). This shows that now 
you can apply 'min-width' as an overlay property, which would be great 
for 'visual-wrap-prefix-mode'. I could then convert that code to use 
overlays (at least for 'min-width', maybe for 'wrap-prefix' too), which 
would make it easier to clean up when deactivating the mode.

Of course, if there's a way to write regression tests for this, I'm 
happy to do so, but I've never looked into how (or if) one can write 
regression tests for display engine features.
[test-cases.el (text/plain, attachment)]

This bug report was last modified 264 days ago.

Previous Next


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