From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Reuben Thomas via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72986: Disabling menu-bar-mode changes size of new frames Date: Wed, 4 Sep 2024 12:23:25 +0100 Message-ID: References: <86ttex6iv0.fsf@gnu.org> <062bf084-741b-4d60-b9de-c62d62a79807@gmx.at> <7b6a5b97-fb0c-4eb0-a5b8-78b6ad5002d9@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000b237960621496760" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6072"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Eli Zaretskii , 72986@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 04 13:25:19 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 1slo8U-0001Q0-UC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 04 Sep 2024 13:25:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slo8L-0004oj-1z; Wed, 04 Sep 2024 07:25:09 -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 1slo8B-0004IN-I9 for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 07:25:00 -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 1slo8B-0004Ag-9N for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 07:24:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:In-Reply-To:References:MIME-Version:To:Subject; bh=X/K2q8+jggH71awymUMqFHZTDra+BUgJl3CZ8pcaPM0=; b=ng1NAEW63LP4ZSgXwfI1PjuzAdmHJjzWpxaHT1chQjLqe9b6eGZAYRFeTjq3jjgWSbqyxoIv7vLhOEjhkpNZi9xQMida5boAchX9spY6LXgEvjXHmmqQeqW1ithKqqr4tXxqZY1TyjMFse2oY2GMeNNOI9juk+pdb7BcJJ+wtTgcZT0QaS8aW1+juYWzLOn1sp5K8VrUr6N0meXnGNgXtpRHvublYN2z8BK6wg08YwIJtfg4fI4z8+70Q1gJ/dQFcCzEi95cFUdFMXi+OYhQ6bew/YdvbjHYKkznDLOZVVd77vXMEwjxAYCzrZdzqbeHKkN6uKcFnHRweHI7/1fs0A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1slo9C-0006J8-AT for bug-gnu-emacs@gnu.org; Wed, 04 Sep 2024 07:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Sep 2024 11:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72986 X-GNU-PR-Package: emacs Original-Received: via spool by 72986-submit@debbugs.gnu.org id=B72986.172544914724209 (code B ref 72986); Wed, 04 Sep 2024 11:26:02 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 4 Sep 2024 11:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:33686 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slo8x-0006IO-DM for submit@debbugs.gnu.org; Wed, 04 Sep 2024 07:25:47 -0400 Original-Received: from mail-yw1-f176.google.com ([209.85.128.176]:61663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1slo8v-0006Hz-DV for 72986@debbugs.gnu.org; Wed, 04 Sep 2024 07:25:46 -0400 Original-Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6d6a3ab427aso29558107b3.2 for <72986@debbugs.gnu.org>; Wed, 04 Sep 2024 04:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1725449016; x=1726053816; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=X/K2q8+jggH71awymUMqFHZTDra+BUgJl3CZ8pcaPM0=; b=k5M86+2NsgyVOApBjXvqZ4iH9zGcr6SA3qwRCzYbQhC2p7+l3a1y2guOAFHEHF3EGB Z++Qhr9859XtTtbgjGaI7UWKI0VdayinsDZQ8lqVHRuFqUQ/iSWdFzRGCSACSZXYb7zC YFilFdA1Vpj1vnp73+Q9F414LGLaLDxWmtv1c= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725449016; x=1726053816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=X/K2q8+jggH71awymUMqFHZTDra+BUgJl3CZ8pcaPM0=; b=FNi4xKvPk4nXmnxab9KAPmznisiuNFzhnmfGma9EJu0NIfHu42a4x59BOmwsncWUMl MMY5xa6RmdkBdeBjF/9OQ58OepuFnKdzQ05OrxUOtfla7PNWZEzb4vHty7Za7lj7SJg9 6kdEXiyTMYixnoIKmaPrh3jYKn2tWMOzxBLWSIPYTN6ijOhETO7xNmtt7rcDao85lQnQ TGuzemayFD9pz2y+ZgtYF+9jBIJ3dbISPGacm/73qRttav8ng1xvexIeIiBRW/lyCLFW 0crmq9LoCckUr+y1pUddt3pofMwl4Mr1Vv8Mmqhx00mfjFBl0LLmkwb+pJXsNEqhd3RC Zcpg== X-Forwarded-Encrypted: i=1; AJvYcCXX8/6j2Lzj/BPHnEodfOF1DhMg4vnJQ+VX7sHP2rXScRgR/G/RbT852Vbx2YkSsQI7+auv0w==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzK10eI+Z284iMH/8WzXIk6i89WgLYkRrkPS5u1AuCHkE7hE8+x rh/3k9HsxxDB2QyoTdblDXyIdBPpy1xowfJrNooqnPmzc8wPe9Dk5s49FD3VaBuYs3zqsVXE6lP wqxwSKqvG4Px6Sef/YJFvcg/Eftw/TPrAhmduDg== X-Google-Smtp-Source: AGHT+IGkVxyospKHW2E7ejD4tnmtBj8BX/9Fn0VQWo56mmt9sDa9osKxC3XdfcYjYt9iduGLPiM7wDsF2zJvv0ZbBWM= X-Received: by 2002:a05:690c:3:b0:668:7e84:b53e with SMTP id 00721157ae682-6d40f81e111mr204364707b3.30.1725449016317; Wed, 04 Sep 2024 04:23:36 -0700 (PDT) In-Reply-To: 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:291189 Archived-At: --000000000000b237960621496760 Content-Type: text/plain; charset="UTF-8" On Wed, 4 Sept 2024 at 09:02, martin rudalics wrote: > >> > >> gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed > >> > > > > Yes, both with Emacs 29 and git master produce this message when > > menu-bar-mode is non-nil, and the menu bar is drawn, in both window > sizes > > (the normal sized window, and the strangely small one). > > But you can't see this message when building with gtk-2 I presume. > That's correct, no message with gtk-2. This strongly hints that there was an Emacs change affecting gtk-2 _and_ > gtk-3 builds in between 29 and master. I could imagine that commit > > e087c89b1e243bbd941a4a50b4bf99613e13d016 > > is involved but if you could try to bisect, it would be of great help. > Just to check, you're suggesting that I bisect from emacs-29.3 (I use that tag because it's what the version of 29 I'm using is built from) to master HEAD, to find at which commit C-x 5 2 opens a small window immediately (without disabling menu-bar-mode)? BTW, could you try adding a (user-size . t) member to 'default-frame-alist'? > And could you try doing that from an 'early-init.el' file? > This made no difference. I added just: (add-to-list 'default-frame-alist '(user-size . t)) to ~/.config/emacs/early-init.el Then I ran each Emacs with just "emacs", confirmed that default-frame-alist was set, then disabled menu-bar-mode (Emacs 29 only), then C-x 5 2. In each case a small window was opened as before. -- https://rrt.sc3d.org --000000000000b237960621496760 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, 4 Sept 2024 at 09:02, martin rudalics <rudalics@gmx.at> wrote:
=
=C2=A0>>
=C2=A0>> gtk_distribute_natural_allocation: assertion 'extra_spac= e >=3D 0' failed
=C2=A0>>
=C2=A0>
=C2=A0> Yes, both with Emacs 29 and git master produce this message when=
=C2=A0> menu-bar-mode is non-nil, and the menu bar is drawn, in both win= dow sizes
=C2=A0> (the normal sized window, and the strangely small one).

But you can't see this message when building with gtk-2 I presume.
<= /blockquote>

That's correct, no messag= e with gtk-2.

This strongly hints that there was an Emacs change affecting g= tk-2 _and_
gtk-3 builds in between 29 and master.=C2=A0 I could imagine that commit
e087c89b1e243bbd941a4a50b4bf99613e13d016

is involved but if you could try to bisect, it would be of great help.
<= /blockquote>

Just to check, you'r= e suggesting that I bisect from emacs-29.3 (I use that tag because it's= what the version of 29 I'm using is built from) to master HEAD, to fin= d at which commit C-x 5 2 opens a small window immediately (without disabli= ng menu-bar-mode)?

BTW, could you try adding a (user-size . t) memb= er to 'default-frame-alist'?
And could you try doing that from an 'early-init.el' file?

This made no differ= ence. I added just:

(a= dd-to-list 'default-frame-alist '(user-size . t))

to ~/.config/emacs/early-init.el

Then I ran each Emacs with= just "emacs", confirmed that default-frame-alist was set, then d= isabled menu-bar-mode (Emacs 29 only), then C-x 5 2. In each case a small w= indow was opened as before.

--
--000000000000b237960621496760--