From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus Date: Mon, 20 Jul 2020 11:10:48 +0200 Message-ID: <87eep6a6w7.fsf@rub.de> References: <87vb09u40u.fsf@gmx.net> <57867BB6.1020601@gmx.at> <87r3axtkcf.fsf@gmx.net> <578754F3.9060800@gmx.at> <87a8hkpmq8.fsf@gmx.net> <5787CCF5.3000404@gmx.at> <87eg6wghgl.fsf@gmx.net> <874lkgtqnk.fsf@mouse.gnus.org> <87h8ofcvqb.fsf@gmx.net> <87wo2zmr20.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11147"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 23966@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 20 11:11:31 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jxRpb-0002oc-E0 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jul 2020 11:11:31 +0200 Original-Received: from localhost ([::1]:60010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxRpZ-0006jh-NJ for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 20 Jul 2020 05:11:29 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxRp8-0006jX-FF for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2020 05:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50417) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxRp8-0000Bx-5x for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2020 05:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jxRp8-0002VR-1k for bug-gnu-emacs@gnu.org; Mon, 20 Jul 2020 05:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jul 2020 09:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23966 X-GNU-PR-Package: emacs Original-Received: via spool by 23966-submit@debbugs.gnu.org id=B23966.15952362579623 (code B ref 23966); Mon, 20 Jul 2020 09:11:02 +0000 Original-Received: (at 23966) by debbugs.gnu.org; 20 Jul 2020 09:10:57 +0000 Original-Received: from localhost ([127.0.0.1]:33730 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxRp3-0002V9-9q for submit@debbugs.gnu.org; Mon, 20 Jul 2020 05:10:57 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:47201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jxRp1-0002Uv-H2 for 23966@debbugs.gnu.org; Mon, 20 Jul 2020 05:10:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1595236249; bh=RE12zq4PfIne4Ym4V9aEqurqFUu0Il3bKiTZ2mQ1ROE=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=NnwfNiyToB/1KiqxNHn/tZdQJk35VzM7pfasOuMBc8eYIkIpQ+L0E+Ymzm1j1I4A8 Xq1ZO3kynuJTBRriAjEz+yPAkVjolqgonvQ9HtLhgTMJN89PE9zIT5N/pT9WYZxaKh P31Gtyzg3QwYvluKvzFE4GPOg2NO/+fwl4vjhdVE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from strobe-jhalfs ([178.9.98.4]) by mail.gmx.com (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MnakX-1keEhQ0suz-00jdZ8; Mon, 20 Jul 2020 11:10:49 +0200 In-Reply-To: <87wo2zmr20.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 19 Jul 2020 18:02:15 +0200") X-Provags-ID: V03:K1:+2Q274Gi9fV1xmnPsgig9M6BS4Rj1XwFcu/mnn2+pW8k7k57yj2 UM4Xt7h/B6lMlkGVyx9Y61nBjaPP8Bbb4YFjzAzXNWVvKUStUsx0mfhdIw77t/BE8XMuqez lmwW5P159ORei9dkxb9KleNRAQoQqt9swyv2pT/wlCawYNfwS9fwq/sOX798NT6ejJN2hyf gt0QAdBp9gzvNDW1cOaLA== X-UI-Out-Filterresults: notjunk:1;V03:K0:2b2hmpCfjDE=:N/xCd6Eq0L37mGOHENkvDb fxrpcFuDexa67RorIAWMyRzWC0W/bFOpZmXr+mZxZIxGhvFU6SiUVNXRI21wi3TFM7kljrMjE /yXKSmPdMYhC5Qf/CFOB4nz+3KRCL3nF8/2Wfl2N9m2IUlFouLqBN3SV8J9zsJdmEbEQ4j9V5 26HyGpdrEkqGoSo+sUEiUzL3k2Quq0HbRBpCJBs7JptjoSVuhQ9AvlPJuBo5ueXaiIRY1XZCu 7dj/LORSPdNUq4JCx+LFEwnsn9v8uWhwmAspmxF5JMe+pCtUn6FQMyuYdjBw2SUe/ftqgFInE ylvQ0TNokAb/vcchS3/Oo16XhCaUCY97Bzp2A255ABG7Z7KAQOGHBiH8fvVp1Fu+yBroLM/6H WB9RhMAVFjIlM0H7mtEWmSN3QitS4FvLaZlo0TiSXeG8J2TxgXNC3pNC9d0ASoj7XPCYSNSiS x+SPDdnzNYsVEai95r04ggW8e9V/ZWyUgArBJh9G/aFlpR+duHJSBaZsp7CD3ktDWgJ0CNnpa cKJU56FBPELAE+I56vVxoq7+U1DYhD1JpPvZEHnckNXUpEDZRtJ203QJVfpzcZU99w+Xj1MOo wRUCgLzTkeWkd/niP8cRkH2PzwDhllqFWyBKQs39v5vNqLx6hpg4F+RnU+p3AVFrKbDOLSoQe fJdT0iRov3DVKQm7KiHnGgoa82+LWdpA9pWvjxVFALxf4qgO/BBXIfy2j/VZZgng+Yf3rfUlj CL3HPaHuqye/Sl0Di6GS7SpnOqWAD7e8Gt6YK14FYTBAVPy961/O4BtOpYQllpwjgLKGzffV X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:183286 Archived-At: On Sun, 19 Jul 2020 18:02:15 +0200 Lars Ingebrigtsen wrote: > OK, I'm trying to reproduce this in Emacs 28, and... I'm getting all > kinds of strangeness. > > I usually don't use tool bars, but if I just enter a summary mode buffer > and say M-x tool-bar-mode, then I don't actually get a tool bar -- I > just get a ~10-pixel high grey stripe at the top. > > This may be because gnus-summary-tool-bar is > 'gnus-summary-tool-bar-retro? > > If, on the other hand, I switch tool-bar-mode on before starting Gnus, > then I do get a tool bar, and that variable is > 'gnus-summary-tool-bar-gnome. > > This is because > > (defcustom gnus-summary-tool-bar (if (eq gmm-tool-bar-style 'gnome) > 'gnus-summary-tool-bar-gnome > 'gnus-summary-tool-bar-retro) > > and > > (defcustom gmm-tool-bar-style > (if (and (boundp 'tool-bar-mode) > tool-bar-mode > (not (memq (display-visual-class) > (list 'static-gray 'gray-scale > 'static-color 'pseudo-color)))) > 'gnome > 'retro) > "Preferred tool bar style." > :type '(choice (const :tag "GNOME style" gnome) > (const :tag "Retro look" retro)) > :group 'gmm) > > so that's set at load time, and depends on whether you've switched tool > bar mode on or not before loading the file. Which seems less than > optimal... > > Anyway, is this a different bug than what you were all talking about? > :-) It seems like the same bug, or at least related. In any case, when I run the test code Martin posted in <578754F3.9060800@gmx.at> on a currentish (2020-07-01) build from master, I get similar but not identical results to those I got two years ago: Emacs started; frame pixel height: 612 toolbar height: 41 Gnus started; frame pixel height: 612 toolbar height: 41 Opening nnfolder server on archive...done Subscribe newsgroup: nnfolder+archive:sent Subscribe newsgroup: nnfolder+archive:## Subscribe newsgroup: nnfolder+archive:emacs-personal 3 new newsgroups have arrived Checking new news... Reading active file via nnnil...done Reading active file from archive via nnfolder...done Checking new news...done Opening nndoc server on /home/steve/tool-bar-Gnus-frame-bug...done Tool bar disabled; frame pixel height: 612 toolbar height: 0 Entered Summary buffer; frame pixel height: 612 toolbar height: 0 Tool bar enabled; frame pixel height: 646 toolbar height: 7 Other buffer; frame pixel height: 646 toolbar height: 41 Back to Summary buffer; frame pixel height: 680 toolbar height: 7 Final; frame pixel height: 680 toolbar height: 41 Moreover, I get these exact same results regardless of whether frame-resize-pixelwise it nil or t, which is different from two years ago, and also when I set gmm-tool-bar-style to 'gnome or gnus-summary-tool-bar to 'gnus-summary-tool-bar-gnome before evaluating the test code. Steve Berman