From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#38828: 26.3; Customized mode line breaks height of vertical scroll bar Date: Fri, 3 Jan 2020 10:38:46 +0100 Message-ID: <8a08a776-3ac5-b1ae-21f6-9d51ab1bb1bf@gmx.at> References: <840ae56c-467b-21f2-7109-bb744897e71b@gmx.at> <83tv5fjgxn.fsf@gnu.org> <8336cyj66m.fsf@gnu.org> <83v9ptiq9y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19974"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 38828@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jan 03 10:39:32 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1inJQY-00054D-SZ for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jan 2020 10:39:31 +0100 Original-Received: from localhost ([::1]:50384 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inJQX-00071y-3P for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Jan 2020 04:39:29 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47049) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inJQ7-00071m-8v for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 04:39:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inJQ6-0006fg-2m for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 04:39:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34430) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inJQ5-0006e7-Qo for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 04:39:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inJQ5-000324-Mt for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2020 04:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2020 09:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 38828 X-GNU-PR-Package: emacs Original-Received: via spool by 38828-submit@debbugs.gnu.org id=B38828.157804433411643 (code B ref 38828); Fri, 03 Jan 2020 09:39:01 +0000 Original-Received: (at 38828) by debbugs.gnu.org; 3 Jan 2020 09:38:54 +0000 Original-Received: from localhost ([127.0.0.1]:40403 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inJPy-00031j-KH for submit@debbugs.gnu.org; Fri, 03 Jan 2020 04:38:54 -0500 Original-Received: from mout.gmx.net ([212.227.15.18]:59443) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1inJPw-00031W-PH for 38828@debbugs.gnu.org; Fri, 03 Jan 2020 04:38:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1578044326; bh=x1fZw3uoM7FeKT1BMfipjG/CbcONrRgON/ktUOjZrBM=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=QXoS6wTm2nrLP73sCHlBUWN3djHEXxr0MLla86BD9db4qR5o96I+HGD531W5X95mS BgkAM1HitYndce1tqyjFaf8f/Tc8b/WmDjXEDnAIwQHr94V973kIxfnNG5npgkshji xyIGFQS4RLyPflCW76PtLkttgjdvpwnOCUauSYRQ= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from [192.168.1.101] ([46.125.249.56]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MHXFr-1j0HqB0tQ9-00Daji; Fri, 03 Jan 2020 10:38:46 +0100 In-Reply-To: <83v9ptiq9y.fsf@gnu.org> Content-Language: de-AT X-Provags-ID: V03:K1:bA8qo+XfhQNoDBo5wv9rqbny1NlTmGL+LFBM4qqbp5UrzTkyZoL IFwPOuQMFmcSJS5+NVlTb4OZeOCTyMuIPqr6zsUYcE61FMIwzGfNYKN4hC2dbjlCQiv9crv qTF/Rw3+fdZsD8e3DZRcfg0T2x88xQXZkUUoIeGx6qtBGim/08nr9JUmojFSXGynvk7X6F8 wEuy97JPRRymVmri46BVQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:FE0GXMF4pBk=:Uaz3tORglOTZahJ6/uHhsl u5gtaALG1lvYZtL1zBLTJFEgQF9Eqp7hYnO2oTn3/RmGVJpgdPzScLbJmaASKtLKrj9DA2g3d omm0lOByqCuLCZLGJkha6kYnbxwzTk3B+hNmQi/kJdUQGCOONncGaDNAEbexBw3qA4fwkX3bs Q5XgCT+9MdJssn1r6OmtyoEZhLVPbGOM8ZTPYBj22f8yAUCdHqBBLu3CakOqMraOty+X5CAC9 EgmOJHOPYJEL8HE2pkfVmSfF3R/nrT4gMVL1wnyFgt4XfOnDiERMjQFB7Bm9ckSNjbqEGoonN S2j7UbzIy5MCE624fU7Mry/zo7EeZ8tPNRtKpZocKr6jQiQGLNYRQPsTCDRDUmBAz8Gvv2ANe X5xQgXuxw2uBNz4rTuSVAL2i0vB/x4uB3d7QXwq6h/vF0d0aGg3szHXErvRtmOKAwUdLJgZep sexvprHBl0v45SW1Dsjc0hRLCIPC3rG0RpL55Cy5koeB8pS3Oi7gqbk6D/zJJ1ioDqULnkc9h BkOOEGWrGXemkcFICYHMQAci8//pbNGvd6g+Z960eri67FkwiYXMI5YuQAuqtDKdLH3lUujtD bjEiCkRsUPLBptDhqWGjQf+Zbwdi1Q/sluxmjyPFlNJFvNLhwmUyogaYPc1mEUYuPxaa8Aum+ 9AFo93BID6HHsOxGvtTT0V8rP0A+U3PvTOJ3dcqnb/znFIjeN76P2MGfAmmm8AYHG74jv3cZK F0H0l9xqyU6dpK9xqyXVM8GVLUE7JR5Q48TM3kIPoXqr7cx1LJEAwHE21DG7mMg8RC7tRML5 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174105 Archived-At: > You can see at the end of frame.el we have a list of variables we > watch that have nothing to do with debugging. I noticed that in the meantime. So we could easily add, for example, 'scroll-bar-width' to that list and simplify text like the following If you do not specify a window=E2=80=99s scroll bar settings via =E2=80=98set-window-scroll-bars=E2=80=99, the buffer-local variables =E2=80=98vertical-scroll-bar=E2=80=99, =E2=80=98horizontal-scroll-bar=E2= =80=99, =E2=80=98scroll-bar-width=E2=80=99 and =E2=80=98scroll-bar-height=E2=80=99 in the buffer being displayed cont= rol the window=E2=80=99s scroll bars. The function =E2=80=98set-window-buffer=E2=80=99 examine= s these variables. If you change them in a buffer that is already visible in a window, yo= u can make the window take note of the new values by calling =E2=80=98set-window-buffer=E2=80=99 specifying the same buffer that is= already displayed. in the Elisp manual? I wonder why Fset_buffer_redisplay apparently doesn't have to call bset_redisplay to redisplay_other_windows. What am I missing here? > Glyph matrices don't care about the pixel size of the window, =2E.. but when the pixel height grows we may have to allocate new glyph rows too, I suppose ... > they > only care about the maximum number of glyph rows they can > accommodate. So increasing the size of a mode line has the effect of > making the window's glyph matrices use fewer rows (assuming the > window's pixel size doesn't change). In addition, a GUI window > usually has a matrix allocated for more rows than it actually uses, > which is why each matrix has both 'nrows' and 'rows_allocated' > members, and the former is likely to be smaller than the latter. When= > a window's resize =2E.. where a "resize" includes changes of its buffer's default face font, line spacing, the mode line height ... > needs less rows that 'rows_allocated', there's no > reallocation, just a change in the 'nrows' field. > > 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. Works fine now. Thanks, martin