GNU bug report logs - #38828
26.3; Customized mode line breaks height of vertical scroll bar

Previous Next

Package: emacs;

Reported by: martin rudalics <rudalics <at> gmx.at>

Date: Tue, 31 Dec 2019 09:59:01 UTC

Severity: normal

Found in version 26.3

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: martin rudalics <rudalics <at> gmx.at>
Subject: bug#38828: closed (Re: bug#38828: 26.3; Customized mode line
 breaks height of vertical scroll bar)
Date: Fri, 03 Jan 2020 07:32:01 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#38828: 26.3; Customized mode line breaks height of vertical scroll bar

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 38828 <at> debbugs.gnu.org.

-- 
38828: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=38828
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Eli Zaretskii <eliz <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: rudalics <at> gmx.at, 38828-done <at> debbugs.gnu.org
Subject: Re: bug#38828: 26.3;
 Customized mode line breaks height of vertical scroll bar
Date: Fri, 03 Jan 2020 09:31:33 +0200
> Date: Thu, 02 Jan 2020 21:58:49 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 38828 <at> debbugs.gnu.org
> 
> But I now think that we need to reset the mode_line_p flag even if we
> reallocate, because the rows which existed before reallocation are
> copied to the enlarged matrix, so that flag is kept.  So I think I
> will install the patch with that small change.

Done, and closing the bug.

Thanks for the test cases and the feedback.

[Message part 3 (message/rfc822, inline)]
From: martin rudalics <rudalics <at> gmx.at>
To: Bug-Gnu-Emacs <bug-gnu-emacs <at> gnu.org>
Subject: 26.3; Customized mode line breaks height of vertical scroll bar
Date: Tue, 31 Dec 2019 10:57:55 +0100
[Message part 4 (text/plain, inline)]
This bug can be reproduced here with Emacs 26 and current master.  The
mode line customization was provided by Jonas Bernoulli in Bug#38181.

With emacs -Q load the attached test-mode-line.el and hit F1.  This
should show the *scratch* window with an expanded mode line and a
normal scroll bar and a two line echo area showing "test-mode-line".

Now hit any other key.  This sould shrink the echo area and redisplay
the *scratch* window as before but "extends" the vertical scroll bar
into the mode line.

The reason for this behavior is that the vertical scroll bar height in
the first case is calculated from a window_box_height call where
ml_row->mode_line_p is set and thus ml_row->height is used.

In the second case ml_row->mode_line_p is not set and the value is
taken via estimate_mode_line_height which, given the specification
from 'test-mode-line', doesn't estimate the height well.

martin
[test-mode-line.el (text/plain, attachment)]

This bug report was last modified 5 years and 199 days ago.

Previous Next


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