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: Fri, 6 Sep 2024 16:14:50 +0100 Message-ID: References: <86ttex6iv0.fsf@gnu.org> <062bf084-741b-4d60-b9de-c62d62a79807@gmx.at> <7b6a5b97-fb0c-4eb0-a5b8-78b6ad5002d9@gmx.at> <7be33291-1828-41a6-bd56-759db2f533ee@gmx.at> <44e0648e-b374-4816-8f3b-6948af471ab1@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="00000000000006353c062174df4e" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38413"; 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 Fri Sep 06 17:17:22 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 1smai9-0009pG-Jr for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 06 Sep 2024 17:17:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smaht-0007OC-6A; Fri, 06 Sep 2024 11:17:05 -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 1smahq-0007NO-Ef for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 11:17:02 -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 1smahq-0004RP-5Z for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 11:17:02 -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=CFgRvELMlabGkKujGQZEc+f51BVHZ6AsVSAsyk0WsHA=; b=RuCUqwHA9IfIIKnfg5r3acRTOB16RpBLtBITz32KUmE9wjmCvozNnC6/34F/Fl03u39Upsi0U4xjb9FjXt0aK4M3dEz0DUJ2asdwSUuoy4kgBoe36hSBETMARVQ94ucDnU94Fl1Y3ZSaTywh8oAJxSN6gf8Lypsl92YnA/uaHsJ0pBX09mvKFjYfNd9D6aXgYvxirDOzK132SOCRHwQpUi2dfnIhSri3W7hNI7gSObXm3u5Vse3bJguyEuKQxwVP3rwnXOgFntWj2f8hWLQ7Ms80Ceu7F/S10oMrQuPynZJY205XwcMBRU3ZH3EI17JQrmxr8Yl05BICxOvuCbHFww==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1smahp-0005c9-Lu for bug-gnu-emacs@gnu.org; Fri, 06 Sep 2024 11:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Reuben Thomas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 06 Sep 2024 15:17:01 +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.172563577021484 (code B ref 72986); Fri, 06 Sep 2024 15:17:01 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 6 Sep 2024 15:16:10 +0000 Original-Received: from localhost ([127.0.0.1]:53858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smah0-0005aS-Am for submit@debbugs.gnu.org; Fri, 06 Sep 2024 11:16:10 -0400 Original-Received: from mail-yw1-f173.google.com ([209.85.128.173]:47460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1smagy-0005aB-2v for 72986@debbugs.gnu.org; Fri, 06 Sep 2024 11:16:08 -0400 Original-Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-6b747f2e2b7so19796097b3.3 for <72986@debbugs.gnu.org>; Fri, 06 Sep 2024 08:16:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1725635703; x=1726240503; 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=CFgRvELMlabGkKujGQZEc+f51BVHZ6AsVSAsyk0WsHA=; b=rJN5KgU6APEActL8RbMfLoYAI+caYJz8M8fzIhg0RS3qsQ5fC/EmByumNQqCW58pWl 4rTQXm3teieqdvI7YJRcfm/ETwofdwkieKIWdbtvIg7Zd7JgcvUFz/Xj4YSjbd2RW9er N92MM4aOOp08WPbfhGQFgCvvmmL6fnAQIyakU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725635703; x=1726240503; 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=CFgRvELMlabGkKujGQZEc+f51BVHZ6AsVSAsyk0WsHA=; b=o+rncm7ojBkyQvg6+zFn5gqj5MoQFJ/ZqmoCbNEo2Asi3JacaKz7QAZvAqzmzi0EDP NABQrz2pmw6q+I2700KKWCy+mjRempyRTBE+W3ILq8urKGPU9xDzPuJFUk+17Kb16CDK 3DDSwXm28DxlYObIkO1QIVogqujlihGhUjb98wDroX5X7L0sMJKP0roWq2k/i5OmQ22v 5h0Z4YIuNK8Ik9z2EC97SpQe5p8b5VO7r9cVzmlay2K3P7WQ+cNMSUa+RJpKQT/9kHhW yXZ/oTWiQDSXJVjeJoXuFuX8oZgUqS2OTL9LvYMxs9mc0Q1u5+XkYURcHazLhnqS0JeB Snuw== X-Forwarded-Encrypted: i=1; AJvYcCWmZFZk68WHSxz+9SRvBbqogH7YoOiidkrgZUTtWcWH5bLvHFNX6riZwWPRafja4mCXNXFOaA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyehvTrFrbfL+Fycovc9Tha9Dyh3FcsIVkoJx9sZE4eqvpJgCWh GqIYiXYX2naXqwFGcaAqzY5DByTSSj5uvDOKoSsKkARj7XVe+Ur2OXcUgFQKWGf3ODH/hfESaGd qd4Fks3J+8n3YDirmXpj2FZg3sL3tlZsZslt3fQ== X-Google-Smtp-Source: AGHT+IGWjGUaaworPCZ2fMXnQ6pj/pkmsfhmwT51O8znzCVHsV5StbD0l+KwfJZ5amkH511qVB6U+RJcrGaeJ47tCWM= X-Received: by 2002:a05:690c:61c6:b0:6db:3b2f:a1eb with SMTP id 00721157ae682-6db45134ccamr43503387b3.26.1725635701902; Fri, 06 Sep 2024 08:15:01 -0700 (PDT) In-Reply-To: <44e0648e-b374-4816-8f3b-6948af471ab1@gmx.at> 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:291317 Archived-At: --00000000000006353c062174df4e Content-Type: text/plain; charset="UTF-8" On Fri, 6 Sept 2024 at 15:16, martin rudalics wrote: > > OK. In the next step I'd like to isolate the menubar code as the sole > culprit for what's going in. Please with master do > > (setq default-frame-alist '((width . 200))) > It takes effect on the initial frame, but doesn't affect the size of the frame opened with C-x 5 2, or remove the gtk error message: (emacs:2091071): Gtk-CRITICAL **: 15:57:43.714: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed (Just to confirm: I put this setting in early-init.el.) I then applied the trivial patch you gave to git master HEAD, ran 'emacs -Q' and did C-x 5 2, and got a small window as usual, but with no error message in the terminal. -- https://rrt.sc3d.org --00000000000006353c062174df4e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Fri, 6 Sept 2024 at= 15:16, martin rudalics <rudalics@gmx= .at> wrote:

OK.=C2=A0 In the next step I'd like to isolate the menubar code as the = sole
culprit for what's going in.=C2=A0 Please with master do

(setq default-frame-alist '((width . 200)))

It takes effect on the initial frame, but doesn= 't affect the size of the frame opened with C-x 5 2, or remove the gtk = error message:

(emacs:= 2091071): Gtk-CRITICAL **: 15:57:43.714: gtk_distribute_natural_allocation:= assertion 'extra_space >=3D 0' failed

<= /div>
(Just to confirm: I put this setting in early-= init.el.)

I then appl= ied the trivial patch you gave to git master HEAD, ran 'emacs -Q' a= nd did C-x 5 2, and got a small window as usual, but with no error message = in the terminal.

--
<= div dir=3D"ltr">
--00000000000006353c062174df4e--