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: Wed, 13 Jul 2016 14:16:33 +0200 Message-ID: <87vb09u40u.fsf@gmx.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468412247 15839 80.91.229.3 (13 Jul 2016 12:17:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2016 12:17:27 +0000 (UTC) To: 23966@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 14:17:15 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 1bNJ6I-0002EW-Au for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 14:17:14 +0200 Original-Received: from localhost ([::1]:47088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ6H-0007Ms-Nv for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 08:17:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33695) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ6B-0007MF-Jc for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:17:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNJ66-0003tW-GL for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:17:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ66-0003tR-DE for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNJ66-0008BV-7B for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:17: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: Wed, 13 Jul 2016 12:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23966 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146841221431442 (code B ref -1); Wed, 13 Jul 2016 12:17:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jul 2016 12:16:54 +0000 Original-Received: from localhost ([127.0.0.1]:49137 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNJ5y-0008B4-Ak for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:16:54 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNJ5w-0008As-I4 for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:16:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNJ5q-0003rh-3I for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:16:47 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ5q-0003rU-04 for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:16:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33625) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ5n-0007Lo-IO for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:16:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNJ5h-0003qX-Gv for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:16:41 -0400 Original-Received: from mout.gmx.net ([212.227.17.22]:60871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ5h-0003qJ-6o for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:16:37 -0400 Original-Received: from rosalinde ([89.245.86.246]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MIyCj-1bPmzz3RqT-002VUd for ; Wed, 13 Jul 2016 14:16:35 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-Provags-ID: V03:K0:z7N1FR9SK3ZHbrNb0DF1BpmP1IL/AX7fvH1QHncFKA9S3LK1i1S jp82bju8HZMpYEJNDI7qSteBXEflfJoNmbu5haVU8nFDVdGaxgTJ3J/EWdMp6UyspDu9BDF e0DkOuHsz53uw543OQ54wLSdSb+n6ypbhiOOojqfvwWmM69qZdKHnX81b7FBZIULlWPRWuO 85vkPP+H7aBfBY4WJ1yhw== X-UI-Out-Filterresults: notjunk:1;V01:K0:VJfn7UsTBw8=:UyRPgw+dOf2msGeVUO+ZEx rm3UPF2DEqTyFKr7CR1nCtJVFlq53uB95TGxdYITEoT4EuCIxzktAijJDJi+nMeTaVaA7smSS IPPzce1NkyCjbhNDtiqU/lYs+Hl5+T/9RcVcSO+fjZdEWePjJaJCE9+LEp/YRc49TAV0ed6vo ZMtj0Mpu8BVaS6WCCBwIIln0mxoiXrJGu5zYXf2orl/SDmmjitvz3YeRx+4taqJ9Sf8/feCKf h7DhTR8iIs9pOQmqkdC+CxS54at89QJUUY4R2UJXnAly9l92nygqIBoqheZAfXcBXf6snDOyC 6mfaplW1nmDJKKjDgkaV7b6p315K+yL64GKfc83jAYuZT2YQgahUNXMhif2K+EzdyMYyjdoo6 oboM5+psIb2gUqwKFFP8pIfL3N4dVXrilMYKdQmfsE9wlCwg4TpICxOiJ9MVYD1disS0pKvqS Vy5ufJW5CMnMwd4Q1o134TaiFcp7eRNmjVcvB8Fn7PvUZp6gcBsz2sQFZGk+VjxTOgO2qztOC s0SbwHj7nRZ5vCHVXdPnoU7kX9jXmW3krqkSULzvHEBFIELlpc/EfLOtDTvFx7qbosocxFY4Y lc1P1FWNFr8yG+fsmseZpcf/13ri9nFZOD6TMcOQxYm14R8gkkeKdsLcPhbbxrnAZHTMG4vSn 4XqECbh7Y9TeQhdh09tnZwgJGuTc5v1sVdj/CPiK6SmGjucnYFChsb/NUVGWuJcOFt5HqC1Tu TkMZyQKFx02bKfFyvm1kf+FfI60mEO2sE5Bi4tEwL/h4uutO587GQ5VIVp19uC9bt8G9YGcf X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:120984 Archived-At: When I disable the tool bar before entering the Gnus Summary buffer and then re-enable it while in that buffer, it appears as an 8-pixel high empty strip below the menu bar. When I switch to another buffer, the tool bar is displayed normally but the frame height increases by two lines, and when I switch back to the Gnus Summary buffer the tool bar again appears as an empty strip and the frame height stays at the new height; this pattern can be repeated and each time the frame height increases. I see the same thing when the tool bar is displayed at the bottom of the frame; if it is displayed on the left or right side of the frame, the frame width increases instead of the height. I see this in builds from emacs-25 and master, as well as in 24.5, all 64-bit GNU/Linux, GTK+ Version 3.14.15 (not built --with-cairo). In the 24.5 build, when switching back to the Gnus Summary buffer, the console displays a message like this: (emacs:4487): Gtk-WARNING **: GtkToolbar 0x313ca90 reported min size 42 and natural size 8 in get_preferred_width(); natural size must be >= min size There is no such message with the emacs-25 or master builds. (In the latter two builds, the initial frame height is 36 and increases to 38; in the 24.5 build, the initial height is 35 and increases to 37.) I haven't seen this issue with any other buffer than the Gnus Summary buffer. Moreover, if I disable the tool bar only after entering the Gnus Summary buffer and then re-enable it there, the tool bar is displayed in that buffer normally and there is no resizing after switching away and back. To reproduce, start emacs with -Q and evaluate the following sexp in *scratch*: (let ((testfile "~/tool-bar-Gnus-frame-bug")) (with-temp-file testfile (insert "From nobody Wed Jul 13 13:55:54 CEST 2016 To: stephen.berman@gmx.net Subject: bug test message From: Stephen Berman Date: Wed Jul 13 13:55:54 CEST 2016 Message-ID: <87twg9y16a.fsf@gmx.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Lines: 1 test ")) (message "Emacs started; frame height: %d" (frame-height)) (require 'gnus) (let ((gnus-select-method '(nnnil ""))) (message "Gnus started; frame height: %d" (frame-height)) (gnus-1) (gnus-group-make-doc-group testfile 'mbox) (tool-bar-mode -1) (message "Tool bar disabled; frame height: %d" (frame-height)) (sit-for 1) (gnus-group-select-group) (message "Entered Summary buffer; frame height: %d" (frame-height)) (sit-for 1) ;; Uncommenting these three lines and commenting out the same three ;; lines above results in a normal tool bar and no resizing. ;; (tool-bar-mode -1) ;; (message "Tool bar disabled; frame height: %d" (frame-height)) ;; (sit-for 1) (tool-bar-mode 1) (message "Tool bar enabled; frame height: %d" (frame-height)) (sit-for 2) (switch-to-buffer (other-buffer)) (message "Other buffer; frame height: %d" (frame-height)) (sit-for 1) (switch-to-buffer (other-buffer)) (message "Back to Summary buffer; frame height: %d" (frame-height))) (sit-for 1) ;; Suppress further messages and clean up in order to repeat the test ;; simply by evaluating this sexp. (let (message-log-max) (gnus-summary-exit-no-update t) (goto-char (point-min)) (gnus-group-kill-group) (let ((gnus-expert-user t)) (gnus-group-quit)) (delete-file testfile) (when (file-exists-p (gnus-dribble-file-name)) (delete-file (gnus-dribble-file-name)))) (switch-to-buffer "*Messages*"))