GNU bug report logs -
#50096
args-out-of-range in redisplay_internal
Previous Next
Reported by: Juri Linkov <juri <at> linkov.net>
Date: Tue, 17 Aug 2021 16:09:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Juri Linkov <juri <at> linkov.net>
> Cc: 50096 <at> debbugs.gnu.org
> Date: Wed, 18 Aug 2021 19:32:01 +0300
>
> >> I don't understand how this is supposed to work. The buffer " *Minibuf-0*"
> >> is always empty at the time of calling message3_nolog, whereas the buffer
> >> " *Echo Area 0*" contains the message to display.
> >
> > Yes, some code switches to another buffer at the wrong moment.
>
> There are no buffer switching involved neither in the successful case
> nor in the failing case.
What is the "successful case" and what is the "failing case"?
I think we've just established that the reason for failure is a longer
line displayed in the mini-window with auto-hscrolling enabled. So
the problem was probably there for quite some time, it just didn't
happen because two conditions are needed to trigger it:
. a relatively long line displayed in the mini-window (rare)
. auto-hscroll enabled in that window (even more rare)
As for switching buffers: how else can you explain that the window's
glyph matrix is correct for another buffer? And, btw, what is the
value of it->w->contents inside init_to_row_start? I mean here:
> #11 0x000055c2da79bf2e in init_to_row_start (it=0x7ffdc316c8c0, w=0x55c2dd062400, row=0x55c2e3f9fc50) at xdisp.c:3735
it->w->contents should be a buffer, but what buffer is that?
Also, what is the value of it->w->desired_matrix->buffer->name_ ?
It's a Lisp string, but what's its Lisp value?
> It's 100% reproducible for me, but I'm not sure how easy would be
> to create a test case for "emacs -Q".
I'd appreciate if you could try.
> >> I guess additional ":(literal)" string increases the length
> >> of the displayed message, and longer message triggers the bug.
> >
> > How does it trigger it? via hscrolling or some other way?
>
> It reduces the length of the displayed message,
> so there is no wrapped line and no hscrolling.
OK, thanks.
This bug report was last modified 3 years and 275 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.