From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41 Date: Mon, 21 Oct 2024 10:18:40 +0200 Message-ID: References: <86cykx49p6.fsf@gnu.org> <8734lt1g7r.fsf@yahoo.com> <86y13l2r0v.fsf@gnu.org> <86v7y6x49l.fsf@gnu.org> <87ldz2stc5.fsf@yahoo.com> <86ttdhwnij.fsf@gnu.org> <64d51a90-bb8a-4994-beac-f5b535ac7235@app.fastmail.com> <86zfn6stau.fsf@gnu.org> <6af6243c-e2e4-4593-84c5-921ee1677910@gmx.at> <1c429b02-0407-4f9c-8e94-f012463adb01@app.fastmail.com> Reply-To: martin rudalics Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20032"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 73244@debbugs.gnu.org To: John Hurst Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 21 10:19:58 2024 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 1t2ndr-00051m-Ug for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Oct 2024 10:19:56 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t2ndc-00012T-6q; Mon, 21 Oct 2024 04:19:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t2ndZ-00012B-E5 for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 04:19:38 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t2ndY-0003ho-90 for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 04:19:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=PLxHgBMcGbEJaru1y4kWYY/hoahcaCJQ77Ipu/tTeeM=; b=tj8DhdZQrVUA+DVlPAfcvPIYaSTTThFpLrP4bQQ8hFynnRLEcQ9rTAbYdQP/n7REjF1uXTGuDov9ieMgylN32b9vAk9y0o5ynqUaOtf8fTRnsDXvzf+1JLI7vaPBBLlSGvgDTJfmIleBh5Nu3j6Pn0kJKd1gVBcuGYiwxXNSzcddESWN1lRXv3v7TM669pYG9Nbre/7/NCrjl9zrUpkIYB9wuE6jKRfui22gQI/rVf8jwTgA6jWXf74Tqg+akN0rFR8vM3yFAH0mTlRiatPX18gWw7kWtvh6rHl1CXyKvOVBlcQvC9KzbB1RNd6B+tGjofJzUw4TKpTDHO8cxqhp2w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t2ndy-0003mJ-Dw for bug-gnu-emacs@gnu.org; Mon, 21 Oct 2024 04:20: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: Mon, 21 Oct 2024 08:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73244 X-GNU-PR-Package: emacs Original-Received: via spool by 73244-submit@debbugs.gnu.org id=B73244.172949876214450 (code B ref 73244); Mon, 21 Oct 2024 08:20:02 +0000 Original-Received: (at 73244) by debbugs.gnu.org; 21 Oct 2024 08:19:22 +0000 Original-Received: from localhost ([127.0.0.1]:50064 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2ndJ-0003l0-Q4 for submit@debbugs.gnu.org; Mon, 21 Oct 2024 04:19:22 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:53497) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t2ndI-0003km-8L for 73244@debbugs.gnu.org; Mon, 21 Oct 2024 04:19:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.at; s=s31663417; t=1729498725; x=1730103525; i=rudalics@gmx.at; bh=PLxHgBMcGbEJaru1y4kWYY/hoahcaCJQ77Ipu/tTeeM=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:Subject:To: References:From:Cc:In-Reply-To:Content-Type: Content-Transfer-Encoding:cc:content-transfer-encoding: content-type:date:from:message-id:mime-version:reply-to:subject: to; b=Lvt6PjR96P53mmcWc/bu6qahBh3yUSju0UR61V8O1fFe0RXL8Dz4Y21EEkWXRx7M qc7hR5MAYCOG7druUqCl6F2S76aBf2T0Q1R0EPm8x+tov73uXZD+Kn08uMwyRVPOC vFXjOBO/mW0iPJGRSGnoc4w0sWWBmKasfwt+plXIWjQwuDpRiYQXO0g/DBDVaekgn 1lXgiGW+ks77K1jAt7G86DQfyXW5f/w6X8aX1+/d4HiMoPs/yiGnK12ds7bT89+tL VPNcGyUDzCWBrERdwgWNTZfVb6g61+Mzbonhtm1IEto8NmDiXsgP9MJ728oww9yJU R8bsawp8qIlZNkT3kw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.31.113] ([213.142.97.123]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N79yQ-1tzLBo3ZdM-013WnF; Mon, 21 Oct 2024 10:18:44 +0200 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:WRBCHW+RtJocYOsPJOthFfDbBF0XJDpW2VFxEj3xZpp/2t/stzK NfRpUWJWEhb43yu2ZPAH24YS2/et16EEfkqGp+91IPGJJ12qzvCz1PinN9SfpqaI3ksURy8 1ZiGq/lZT1m1ygP1KqFOUv5r70nAKKe7h+I/hcIsHI0tLolzI5SaN4qTopuqScvPVFy9ELE NUdI6X6yHHWy1EZaIf9ZA== UI-OutboundReport: notjunk:1;M01:P0:MybOCWEDwp0=;Ux/UP9vs4JYYGOSDMABN6ZyE/5p uWjWWkszlZMalNdcCNJ8e/4E0BZkEBC3uuW5aIPhatdP0EO3yslhvTzyikzlRbCqBExeeMgGg aPJ3RO3pziqzOgMwt+vSSIXRTbWT5sXFoX6y0jT7ElXmWYTTjo5zpMaB6b+yBtOyr3JuDJsNs XIzK+Tkq5D0Bw/9UUHtB8F57SbF6ER87zIiZdi6mAFLzfTecbdVqCceHznYmoRpEVe8AoWFNI rHJHFp555E6gDnERnaQnmPcLxPBiK5xU9FkYnGgl03GTcEyiHKHTLkte3oJRV2rgD6AnkZjz0 lSeSoby+bYhk5XyMtBUcngxnlagqYDeZ625uT0RsVaEc3f1rAImL85M3+IHk/zSdEbF6LVDbt JOq9g2fmzCmj8r6FfcleybBXnriSJf1BXI8mmuV3OC+/jmQADcRuDousKkJY/0X49E9rdPSn5 MtZzO2m+dGdewK7ClZUCRVyjoO24rw4IiaLaMFFlpIjmfkO8Bz9ff5CDRmPSXNFD9/EgURcPO LfrRE5CB6nrmlEWPzBpdDUu/1vzNRiNruCU3t5s6v0vjldu4iasXu8/AmKyLVrwaNJI3fFkeW VHiEwJIOiATDxRqJ51IxzWnuCw4J6ZPbFRsfcFFR1f/TpeLxk00uHdINDZ7aMdRlqSOlfj6+P 8WLT3FEX8nh8SAWnabJiX2sxwG5b1MWXyWcyzETpWk68D3NcNoMJbv9p0YMGNOz7g+3S/fBDS q9Vskbkf5UJTIrJ7cylXyz0ADAXDBBldaOzMEzmqsZ4YTsIFdi/PrRsxCpYDOzBVLoufOwR1 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:294029 Archived-At: > As requested, from > > (progn > (frame--size-history) > (switch-to-buffer "*frame-size-history*")) > > (But I did have to resize the frame to access what it generated. I suppose you used the mouse to make the frame wider. For example in this excerpt > ConfigureNotify, PS=232x168, XS=282x168 > xg_frame_resized, changed, PS=232x168, XS=282x168 > change_frame_size_1, delayed, PS=232x168, XS=282x168 > change_frame_size (5), TS=200x168~>250x168, TC=20x8~>25x8, NS=232x168~>282x168, IS=232x168~>282x168, MS=20x42 IH IV you changed the width of the frame from 232 to 282 pixels leaving the height at 168 pixels. The next time you try it's probably simpler to just maximize the frame. > And it did generate lots of "(emacs:228038): Gtk-CRITICAL **: 08:54:29.914: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed" messages.) These come from GTK which cannot accommodate the Emacs menubar within the 192 pixels you get initially. It might need some 400 to 600 pixels to stop complaining. But I wonder how comes that you see "lots" of them. Below there is only one > xg_frame_set_char_size, visible, PS=192x168, XS=192x168 call that Emacs issues itself. It probably means that GTK also complains about the sizes mutter allots to the Emacs frame, something I didn't really expect looking at the GTK code. I must have been wrong. > =============================================== > Frame size history of # > x_create_frame_1 (5), TS=80x25~>800x525, NS=80x25~>816x525, IS=80x25~>816x525, MS=20x42 IH IV > gui_figure_window_size (5), TS=800x525~>800x756, TC=80x25~>80x36, NS=816x525~>816x756, IS=816x525~>816x756, MS=20x42 IH IV > scroll-bar-width (3), NS=816x756~>832x756, IS=816x756~>832x756, MS=100x105 > scroll-bar-height (3), MS=100x105 > menu-bar-lines (2), MS=100x105 > x_create_frame_2 (0), MS=100x105 The crucial steps are these: Here we ask for a frame size of 832x756 pixels ... > xg_frame_set_char_size, invisible, PS=832x756, XS=832x756, DS=832x756 > xg_frame_set_char_size (5), MS=20x42 IH IV > x_make_frame_visible > MapNotify, not hidden & not iconified, PS=832x756, DS=832x756 > ConfigureNotify, PS=832x756, XS=192x168, DS=832x756 .. here mutter tells us that we get 192x168 pixels only ... > xg_frame_resized, changed, PS=832x756, XS=192x168 > change_frame_size_1, delayed, PS=832x756, XS=192x168, DS=832x756 > change_frame_size (5), TS=800x756~>160x168, TC=80x36~>16x8, NS=832x756~>192x168, IS=832x756~>192x168, MS=20x42 IH IV ... and here we accept what mutter tells us and orderly shrink our frame to 16x8 columns and lines. Yours is an exceptionally small frame. > tool-bar-lines (2), MS=100x105 > xg_frame_set_char_size, visible, PS=192x168, XS=192x168 > ConfigureNotify, PS=192x168, XS=192x168 > xg_frame_resized, unchanged, PS=192x168, XS=192x168 > ConfigureNotify, PS=192x168, XS=202x168 This is the initial configuration you see after adding the toolbar. What follows are your manual resizings. > xg_frame_resized, changed, PS=192x168, XS=202x168 > change_frame_size_1, delayed, PS=192x168, XS=202x168 > change_frame_size (5), TS=160x168~>170x168, TC=16x8~>17x8, NS=192x168~>202x168, IS=192x168~>202x168, MS=20x42 IH IV ... Thanks for the work, martin