GNU bug report logs - #73600
31.0.50; Visual wrap prefix mode and image display

Previous Next

Package: emacs;

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

Date: Wed, 2 Oct 2024 15:21:02 UTC

Severity: normal

Found in version 31.0.50

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

Full log


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

From: Jim Porter <jporterbugs <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, gautier <at> gautierponsinet.xyz
Cc: 73600 <at> debbugs.gnu.org
Subject: Re: bug#73600: 31.0.50; Visual wrap prefix mode and image display
Date: Wed, 2 Oct 2024 09:37:48 -0700
On 10/2/2024 8:51 AM, Eli Zaretskii wrote:
>> Cc: 73600 <at> debbugs.gnu.org
>> Date: Wed, 02 Oct 2024 18:42:09 +0300
>> From: Eli Zaretskii <eliz <at> gnu.org>
>>
>>> In emacs -Q:
>>> - enable global-visual-wrap-prefix-mode,
>>> - open the attached image.
>>
>> In a build with --enable-checking, this recipe causes an assertion
>> violation:
> 
> And in Emacs 30 the problem doesn't happen, so this is some regression
> in Emacs 31.  Probably due to my changes in commit 71505b723c9f.
> 
> Jim, any ideas or suggestions?

Strangely, this doesn't seem to happen with every image. "splash.png" in 
the Emacs repository seems fine, for example. I also can't reproduce 
this in EWW, even by opening the bad image reported in this bug.

I haven't looked into the internals of 'image-mode' very much, but I 
seem to recall that it has some special code for scrolling large images. 
Maybe that's interacting in some bad way with 'visual-wrap-prefix-mode'?

One option might simply be to disable 'visual-wrap-prefix-mode' when in 
'image-mode'. I don't think wrapping is useful in that context.




This bug report was last modified 19 days ago.

Previous Next


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