From: martin rudalics via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: John Hurst <ajh@ajhurst.org>
Cc: 73244@debbugs.gnu.org
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 [thread overview]
Message-ID: <a6ba775b-8393-4609-91d7-3e8abacac882@gmx.at> (raw)
In-Reply-To: <cb955552-3695-4160-9514-625b8426db33@app.fastmail.com>
> 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 #<frame *Minibuf-1* 0x5babfd021e10>
> 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
next prev parent reply other threads:[~2024-10-21 8:18 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-14 2:42 bug#73244: Emacs29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41 John Hurst
2024-09-14 2:45 ` bug#73245: " John Hurst
2024-09-14 7:23 ` Eli Zaretskii
2024-09-14 7:25 ` bug#73244: " Eli Zaretskii
2024-09-21 9:50 ` Eli Zaretskii
2024-09-21 9:58 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-09-21 11:19 ` Eli Zaretskii
2024-10-05 9:55 ` Eli Zaretskii
2024-10-05 11:05 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-12 11:48 ` Eli Zaretskii
2024-10-13 21:29 ` John Hurst
2024-10-13 23:33 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-14 13:33 ` Eli Zaretskii
2024-10-14 15:58 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
[not found] ` <1c429b02-0407-4f9c-8e94-f012463adb01@app.fastmail.com>
[not found] ` <fa8dff61-d923-4fcc-8e90-c76aeb355095@gmx.at>
[not found] ` <cb955552-3695-4160-9514-625b8426db33@app.fastmail.com>
2024-10-21 8:18 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
[not found] ` <e8252eea-b499-4ce1-8e9d-6e7193ff8fb2@app.fastmail.com>
2024-10-21 8:19 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-22 23:59 ` John Hurst
2024-10-23 8:15 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-26 2:01 ` John Hurst
2024-10-26 8:43 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-10-27 7:32 ` John Hurst
2024-10-27 8:47 ` martin rudalics via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a6ba775b-8393-4609-91d7-3e8abacac882@gmx.at \
--to=bug-gnu-emacs@gnu.org \
--cc=73244@debbugs.gnu.org \
--cc=ajh@ajhurst.org \
--cc=rudalics@gmx.at \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).