From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.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: Thu, 14 Jul 2016 21:14:34 +0200 Message-ID: <87eg6wghgl.fsf@gmx.net> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1468524476 21770 80.91.229.3 (14 Jul 2016 19:27:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 19:27:56 +0000 (UTC) Cc: 23966@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 21:27:45 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 1bNmIR-0003Ar-Ty for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 21:27:44 +0200 Original-Received: from localhost ([::1]:56417 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNmIM-0007kJ-4V for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 15:27:38 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNm6E-0001Iv-Lq for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 15:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNm6A-0005KO-D9 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 15:15:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNm6A-0005KK-A9 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 15:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNm69-00041W-Th for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 15:15:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jul 2016 19:15:01 +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.146852368415430 (code B ref 23966); Thu, 14 Jul 2016 19:15:01 +0000 Original-Received: (at 23966) by debbugs.gnu.org; 14 Jul 2016 19:14:44 +0000 Original-Received: from localhost ([127.0.0.1]:51754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNm5s-00040o-1L for submit@debbugs.gnu.org; Thu, 14 Jul 2016 15:14:44 -0400 Original-Received: from mout.gmx.net ([212.227.15.19]:59210) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNm5q-00040Z-Dt for 23966@debbugs.gnu.org; Thu, 14 Jul 2016 15:14:42 -0400 Original-Received: from rosalinde ([89.245.72.63]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MS5Dm-1bpjNJ3WOo-00TCHu; Thu, 14 Jul 2016 21:14:36 +0200 In-Reply-To: <5787CCF5.3000404@gmx.at> (martin rudalics's message of "Thu, 14 Jul 2016 19:33:41 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V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HRccS29suX294TsZ2Cgnjn5EgSQ7Xoq9YIf 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: 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:121090 Archived-At: On Thu, 14 Jul 2016 19:33:41 +0200 martin rudalics wrote: >>> =E2=80=98frame-height=E2=80=99 is not necessarily a reliable reflection= 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. Thanks. >>> 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. Ah, indeed. I didn't know about that variable, thanks. > The problem is not GTK specific. Lucid and Motif behave similarly. I Interesting; I had suspected it was just a GTK issue. > 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. Indeed. Steve Berman