From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#23966: 25.1.50; Frame resizing due to tool bar + Gnus Date: Thu, 14 Jul 2016 19:33:41 +0200 Message-ID: <5787CCF5.3000404@gmx.at> References: <87vb09u40u.fsf@gmx.net> <57867BB6.1020601@gmx.at> <87r3axtkcf.fsf@gmx.net> <578754F3.9060800@gmx.at> <87a8hkpmq8.fsf@gmx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468518078 17702 80.91.229.3 (14 Jul 2016 17:41:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 17:41:18 +0000 (UTC) Cc: 23966@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 19:41:06 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bNkdE-0001kq-IQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 19:41:04 +0200 Original-Received: from localhost ([::1]:55955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkdA-0003Pa-M4 for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 13:41:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkWU-00033C-JB for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 13:34:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNkWQ-0000zt-Ep for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 13:34:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39371) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNkWQ-0000zp-BQ for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 13:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNkWQ-0001SM-6Y for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 13:34:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2016 17:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23966 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23966-submit@debbugs.gnu.org id=B23966.14685176305581 (code B ref 23966); Thu, 14 Jul 2016 17:34:02 +0000 Original-Received: (at 23966) by debbugs.gnu.org; 14 Jul 2016 17:33:50 +0000 Original-Received: from localhost ([127.0.0.1]:51707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNkWE-0001Rx-E2 for submit@debbugs.gnu.org; Thu, 14 Jul 2016 13:33:50 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]:61962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNkWD-0001Rj-0h for 23966@debbugs.gnu.org; Thu, 14 Jul 2016 13:33:49 -0400 Original-Received: from [192.168.1.100] ([212.95.7.23]) by mail.gmx.com (mrgmx003) with ESMTPSA (Nemesis) id 0M86jp-1bA5Pb0xWb-00vgBH; Thu, 14 Jul 2016 19:33:42 +0200 In-Reply-To: <87a8hkpmq8.fsf@gmx.net> X-Provags-ID: V03:K0:0THd2luiL3Y+lgaJDDSRkrPtt9RzQC6KUw35CYfJwQPydVJj/ww 7dOfjFVcpV1+IHZXG83YwO/4lMfqCw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operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:121086 Archived-At: >> =E2=80=98frame-height=E2=80=99 is not necessarily a reliable reflecti= on of what you see >> on screen. > > Why not? Because of rounding. Tool bar, menu bar and scroll bars do not have necessarily sizes that are multiples of a frame's default character size. And often you're losing pixels when the frame gets maximized or =E2=80=98frame-resize-pixelwise=E2=80=99 is non-nil during resizing. > What's more reliable? Everything that counts in pixels like =E2=80=98frame-pixel-height=E2=80=99= =2E >> ... in an emacs -Q of the release version I get > > I assume you mean from emacs-25? Yes. > With 24.5 I get "Symbol's function > definition is void: frame-geometry". Indeed. >> What do you get with my modifications? > > On emacs-25 with -Q and frame-resize-pixelwise nil: [...] > Other buffer; frame pixel height: 608 toolbar height: 53 [...] > > On master with -Q and frame-resize-pixelwise nil the results were the > same except for the third to last line: > > Other buffer; frame pixel height: 608 toolbar height: 45 Not here. I get 648 and 44 in both cases. > On emacs-25 with -Q frame-resize-pixelwise t: > > Emacs started; frame pixel height: 576 toolbar height: 53 [...] > Final; frame pixel height: 666 toolbar height: 53 So your frame has grown by 90 pixels. Remarkable. BTW setting =E2=80=98frame-inhibit-implied-resize=E2=80=99 to t would avoid that. > On master with -Q and frame-resize-pixelwise t the results were the > same except for the last three lines: > > Other buffer; frame pixel height: 621 toolbar height: 45 > Back to Summary buffer; frame pixel height: 658 toolbar height: 8 > Final; frame pixel height: 658 toolbar height: 53 Here all lines are the same, again. The problem is not GTK specific. Lucid and Motif behave similarly. I suppose that just enabling =E2=80=98tool-bar-mode=E2=80=99 is not suffici= ent to make a gnus tool bar once gnus has started. Maybe this deficiency is inherent to =E2=80=98tool-bar-mode=E2=80=99 itself. But it would be interesting t= o find out who's responsible for making such small (8 pixels in your, 35 pixels in my case) tool bars in the first place. martin