GNU bug report logs - #51007
27.2; emacs hangs when using window-toggle-side-windows

Previous Next

Package: emacs;

Reported by: Indrajeet Khandekar <indrajeet.khandekar <at> taranawireless.com>

Date: Mon, 4 Oct 2021 13:37:02 UTC

Severity: normal

Found in version 27.2

Fixed in version 28.1

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


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

From: martin rudalics <rudalics <at> gmx.at>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 51007 <at> debbugs.gnu.org, indrajeet.khandekar <at> taranawireless.com
Subject: Re: bug#51007: 27.2; emacs hangs when using window-toggle-side-windows
Date: Sun, 10 Oct 2021 10:58:12 +0200
> What are the actual values of the data in this assertion:
>
> 	      eassert (r->glyphs[TEXT_AREA] >= fr->glyphs[TEXT_AREA]
> 		       && r->glyphs[LAST_AREA] <= fr->glyphs[LAST_AREA]);

How would I do that?  These are structures like

(gdb) p r->glyphs[TEXT_AREA]
$1 = (struct glyph *) 0xe2df90
(gdb) p fr->glyphs[TEXT_AREA]
$2 = (struct glyph *) 0xe36690

BTW, the bug is easily reproducible using the following scenario: With
a master emacs -Q in an -nw session I evaluate

(setq display-buffer-alist
      '(("\\*Info\\*" (display-buffer-in-side-window) (side . right))
        ("\\*Help\\*" (display-buffer-in-side-window) (side . top))))

If I then do

C-x 3
C-h m

and evaluate

(delete-other-windows (window-main-window))

I get the assertion violation.  If instead I do

C-x 3
C-h m
C-h i

and evaluate

(delete-other-windows (window-main-window))

Emacs hangs in redisplay.  And if instead I do

C-x 3
C-h i

and evaluate

(delete-other-windows (window-main-window))

Emacs behaves as expected.

I suppose 'delete-other-windows-internal' mangles the window dimensions
but the scenarios work on GUI frames and pass all internal checks here
so it will take me some time to sort this out ...

martin




This bug report was last modified 3 years and 282 days ago.

Previous Next


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