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 11:55:59 +0200 Message-ID: <87a8hkpmq8.fsf@gmx.net> References: <87vb09u40u.fsf@gmx.net> <57867BB6.1020601@gmx.at> <87r3axtkcf.fsf@gmx.net> <578754F3.9060800@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 1468490288 19128 80.91.229.3 (14 Jul 2016 09:58:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2016 09:58:08 +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 11:57:57 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 1bNdP0-00057X-MK for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 11:57:54 +0200 Original-Received: from localhost ([::1]:52550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNdOz-0007FX-QY for geb-bug-gnu-emacs@m.gmane.org; Thu, 14 Jul 2016 05:57:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNdOE-0006jd-20 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 05:57:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNdO9-0004vu-Tn for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 05:57:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38216) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNdO9-0004vq-QV for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 05:57:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNdO9-0001Vj-L0 for bug-gnu-emacs@gnu.org; Thu, 14 Jul 2016 05:57: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 09:57: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.14684901715742 (code B ref 23966); Thu, 14 Jul 2016 09:57:01 +0000 Original-Received: (at 23966) by debbugs.gnu.org; 14 Jul 2016 09:56:11 +0000 Original-Received: from localhost ([127.0.0.1]:50553 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNdNL-0001UY-5O for submit@debbugs.gnu.org; Thu, 14 Jul 2016 05:56:11 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:53007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNdNI-0001UK-MY for 23966@debbugs.gnu.org; Thu, 14 Jul 2016 05:56:09 -0400 Original-Received: from rosalinde ([89.245.72.63]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lkwpt-1anCYn3oFp-00akqM; Thu, 14 Jul 2016 11:56:01 +0200 In-Reply-To: <578754F3.9060800@gmx.at> (martin rudalics's message of "Thu, 14 Jul 2016 11:01:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:wYDvp21wclCsVtBLeW/hS1226SA8oduSyN6g6wkPC3sY0i2lJzx 2IuQ6lvv62w0Ym9N4harbJowCRw7922pmhxmwKcy4wHjJhlfEdWVgbl8N70A+VLzu//eOsG A86npNgL0ZDYEduVaZhR8WpVq8cgwLZZfQG06wyhyrvOWJ4Lnwa7f9975XnzsZpTWD1Y/PS yclAsJnJZfy1ry1Lqf3OA== X-UI-Out-Filterresults: notjunk:1;V01:K0:tX7vWEqsSfU=:GgHIsxsj5Zh+OAm4ox4ZpI BOkiLw5/XqSWZ16WT9dJ01r1athnOW/TIOyzunP/TukLl0ZCGVwxjJjfiKCQb4Zf14SKtotyP 6vU41P/HWEEwACGPj4ElyM73eUQdulzV7DoJjQOqn30/BJTURxbLbNK4agZSztORbFZ3RuymS uyOH9HSyxH5tT1KWILZiLM5/IY6RAnMVPx4fPun5yHXQGuXvRCmvWWj1XpagmnofvAxksiLIM 8qeugwqCj8UtZtBbL0mUwS6lY/u7i4Q7Sc6KR0O6T032syDfW7KNmC9erFf4mW3UbI4DIvXAH UfD3/B5k9tD9cXAOj73wLGXDstQ3ps1lVEzZfBlxq/6L3xgRrKs9DPkil3soamghIk/qqpdK+ npHf53Qr7i2UzrqEG2n3zcN7KUeYP0pVQzmSe+cOcOlQWSpwSlajesK+Pf1XHKANwArwUlShC nfQj5JBKNiobU/2S1GK0vlp8JpT+q0YMJeY+3BgIO7PuppTBbPxe9/SuWXEn5dxipcz7K9fpX 449UtQ3nY0dZVYIH34RfCd4bDmoImWwHDc9/2W1mMzylEY/ipNrS52w7pEnsvhV9YfLHxryJX rROuJ/hzsS8SlZzHJw2sXnCNloW/9YGH8LHtmVbPXhHv/qylDbG8WZ8unBm7SmTybf5sxaEEd cDRYhBDOIYYmk2jOVjfUX5GHAl8Gqz1oRrB6B0CXRBEvfKCQ/6bPFGlEV3uWwVvb8kVHuZPwk sat8UZUKk7tXQe54xh15CETn9M2BR4BRx+CmdqVrx85IqERtWRyNGbv+sF4dc0R3wzp3TdLL 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:121061 Archived-At: On Thu, 14 Jul 2016 11:01:39 +0200 martin rudalics wrote: > =E2=80=98frame-height=E2=80=99 is not necessarily a reliable reflection o= f what you see > on screen. Why not? What's more reliable? >> When the tool bar was enabled in the Gnus Summary buffer, did you see it >> displayed as I describe in the OP: an empty 8-pixel high strip? > > No. I see a 35-pixel high strip. With the following definitions > adapted from yours [...] > and `eval-buffer' of these in an emacs -Q of the release version I get I assume you mean from emacs-25? With 24.5 I get "Symbol's function definition is void: frame-geometry". > Emacs started; frame pixel height: 648 toolbar height: 44 > Gnus started; frame pixel height: 648 toolbar height: 44 > Opening nnfolder server on archive...done > No new newsgroups > Checking new news... > Reading active file via nnnil...done > Checking new news...done > No news is good news > Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done > Tool bar disabled; frame pixel height: 648 toolbar height: 0 > Entered Summary buffer; frame pixel height: 648 toolbar height: 0 > Tool bar enabled; frame pixel height: 657 toolbar height: 35 > Other buffer; frame pixel height: 648 toolbar height: 44 > Back to Summary buffer; frame pixel height: 657 toolbar height: 35 > Final; frame pixel height: 648 toolbar height: 44 > You can run the command =E2=80=98eval-buffer=E2=80=99 with M-x ev-b RET > Final; frame pixel height: 648 toolbar height: 44 > > > So the "empty strips" here have a height of 35 pixels while the "normal" > toolbar has 44 pixels. BTW, before getting the "Tool bar enabled" > message I briefly see some toolbar contents flashing and getting erased > immediately thereafter. I didn't consciously notice that before, but now that you mention it, I do see that too. > The entire frame height doesn't change here probably due to rounding and > size hints. However, when I set `frame-resize-pixelwise' to t it > changes as follows: > > > Emacs started; frame pixel height: 648 toolbar height: 44 > Gnus started; frame pixel height: 648 toolbar height: 44 > Opening nnfolder server on archive...done > No new newsgroups > Checking new news... > Reading active file via nnnil...done > Checking new news...done > No news is good news > Opening nndoc server on /home/martin/tool-bar-Gnus-frame-bug...done > Tool bar disabled; frame pixel height: 648 toolbar height: 0 > Entered Summary buffer; frame pixel height: 648 toolbar height: 0 > Tool bar enabled; frame pixel height: 657 toolbar height: 35 > Other buffer; frame pixel height: 657 toolbar height: 44 > Back to Summary buffer; frame pixel height: 666 toolbar height: 35 > Final; frame pixel height: 666 toolbar height: 44 > > > So the pixel height of my frame has increased by 18 (2 times 9 pixels > from the difference between 44 and 35). > > What do you get with my modifications? On emacs-25 with -Q and frame-resize-pixelwise nil: Emacs started; frame pixel height: 576 toolbar height: 53 Gnus started; frame pixel height: 576 toolbar height: 53 Reading /home/steve/.newsrc.eld... Opening nnfolder server on archive...done No new newsgroups Checking new news... Reading active file via nnnil...done Reading active file from archive via nnfolder...done Reading active file via nndraft...done Checking new news...done Opening nndoc server on /home/steve/tool-bar-Gnus-frame-bug...done Tool bar disabled; frame pixel height: 576 toolbar height: 0 Entered Summary buffer; frame pixel height: 576 toolbar height: 0 Tool bar enabled; frame pixel height: 621 toolbar height: 8 Other buffer; frame pixel height: 608 toolbar height: 53 Back to Summary buffer; frame pixel height: 645 toolbar height: 8 Final; frame pixel height: 640 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 On emacs-25 with -Q frame-resize-pixelwise t: Emacs started; frame pixel height: 576 toolbar height: 53 Gnus started; frame pixel height: 576 toolbar height: 53 Reading /home/steve/.newsrc.eld... Opening nnfolder server on archive...done No new newsgroups Checking new news... Reading active file via nnnil...done Reading active file from archive via nnfolder...done Reading active file via nndraft...done Checking new news...done Opening nndoc server on /home/steve/tool-bar-Gnus-frame-bug...done Tool bar disabled; frame pixel height: 576 toolbar height: 0 Entered Summary buffer; frame pixel height: 576 toolbar height: 0 Tool bar enabled; frame pixel height: 621 toolbar height: 8 Other buffer; frame pixel height: 621 toolbar height: 53 Back to Summary buffer; frame pixel height: 666 toolbar height: 8 Final; frame pixel height: 666 toolbar height: 53 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 Steve Berman