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: Sun, 8 Sep 2024 18:32:14 +0100 Message-ID: References: <7be33291-1828-41a6-bd56-759db2f533ee@gmx.at> <44e0648e-b374-4816-8f3b-6948af471ab1@gmx.at> <4c2fe23a-be76-4cdc-8f97-16197e1834b0@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001d44a006219f06df" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22044"; 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 Sun Sep 08 19:34:12 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 1snLnf-0005aD-Pb for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 08 Sep 2024 19:34:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snLnX-0003Jb-W5; Sun, 08 Sep 2024 13:34:04 -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 1snLnU-0003JM-7T for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 13:34: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 1snLnT-0005zM-UI for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 13:33: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=pCa1+Yy7wyeruPLFXfa0djrG4x968VaSCaWXOx52z50=; b=aV+h1jMtgvwpR7Xcu8Q12BRAu2hGEmxNwhlA8YiFnGQQvb/fu9nIVUxhnCQwmtsMUPXoeuGOtIuWQVZy+YZUJqGFw+wqOYVCWHXjALkxYVLdylUwRZ/0noK/K4+ouS2TWQ1DgPYCbx82V33rG3jrA4P+NV1YSN7G+s3vIzo1wizRGP8zsKBKNuue4qkEuguvaigV5SO41FkSTpxdusESue+Mj2k9hHYiKszi6cDfvJjG+we7NahlwFB3du8ca70jn+JK3RrpUpEpCVoExDqYInA7w1gv83MCdLWWf/FucrWfRkhR8OSdD7nmF9O2Yq8e4xD8WpX3TpWNblFBpt3mtQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1snLnW-00011Z-9I for bug-gnu-emacs@gnu.org; Sun, 08 Sep 2024 13:34: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: Sun, 08 Sep 2024 17:34: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.17258168183889 (code B ref 72986); Sun, 08 Sep 2024 17:34:02 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 8 Sep 2024 17:33:38 +0000 Original-Received: from localhost ([127.0.0.1]:60003 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snLn7-00010f-I9 for submit@debbugs.gnu.org; Sun, 08 Sep 2024 13:33:38 -0400 Original-Received: from mail-yw1-f181.google.com ([209.85.128.181]:48410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snLn4-00010O-FK for 72986@debbugs.gnu.org; Sun, 08 Sep 2024 13:33:35 -0400 Original-Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-6b6b9867f81so31299877b3.1 for <72986@debbugs.gnu.org>; Sun, 08 Sep 2024 10:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1725816746; x=1726421546; 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=pCa1+Yy7wyeruPLFXfa0djrG4x968VaSCaWXOx52z50=; b=wvcDW/r5Ffb8w0ZeZGUTKbMup7C3qaIWK0orfHrA+JAEEZCYmA+lJIJEYc2DUcApKH mK2hg+3TftxSjg0uRiAdLStXN6I1ri3XQZ+6VcXKRfN+lsDBtMl+39qlf35QBKAHZFbM MVS9nBshQAGmEN+oLpx3F6TpwxL5Wb7NvAt9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725816746; x=1726421546; 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=pCa1+Yy7wyeruPLFXfa0djrG4x968VaSCaWXOx52z50=; b=lf78YNHT2DU1S+tlOD8Xh4bAp9E7Qp5D2r+9KpBSUHv42koAYrxGFJKPHxRYOu6moK 0tna9YpLWNCCrBlnmUpFXYftYlqBo0Oqu9dCxxfV93ullJMGcKfr+LllaafMvdr1j2ax 9+6RqDntlH4NkJTGs6y/bWFQfZScZV31Dx0Ix39WpFMdI0gCD3qcKmhuacCdRgaWLyIX eJIhVYKwlWkIoqcreEjOG6o1fXLO/UmxatSWt63PXsPfDNb6Q2RnwZOmKOzGP3gu9MVo 24CkM97sSCGEeDpHEFsm7Run8R+Ut+S0RPXOqDl8AFk0Tbi0C4kmh2dlP60Ez58sHYGF aTkQ== X-Forwarded-Encrypted: i=1; AJvYcCUh7K7SXe2mOMN2VL0k8ck3cDsPElr018byiFrM6uLXrXRLv/ePC1zIJCGIUk429AFNqsiNjA==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx2doBOoHgFSAFzQWWw2WwZqWtS5j2ZzDedMtB8tU9clvlf+2x/ qR9uqXxUfBIlKDzmDEELSmlgOYpHs7TE62Gbttf4ISUkFuP8NPX7V5YqFFS2ALykdKw1rQcnj+7 XpAgIAatpY3fJ+pMAHwtgQ729GuWO+/TAxDc18A== X-Google-Smtp-Source: AGHT+IGhfxqSFVfJ9IVby8vM2JqMRBCAaFnQsgKdmpOo2iMvdv7rOkQQj7rZ5YNBTFlmFosWAYDCeB5yeB8Z/Rk2u0Y= X-Received: by 2002:a05:690c:f8c:b0:6db:7a8c:6653 with SMTP id 00721157ae682-6db7a8c68acmr13175937b3.6.1725816746352; Sun, 08 Sep 2024 10:32:26 -0700 (PDT) In-Reply-To: <4c2fe23a-be76-4cdc-8f97-16197e1834b0@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:291474 Archived-At: --0000000000001d44a006219f06df Content-Type: text/plain; charset="UTF-8" On Sun, 8 Sept 2024 at 17:54, martin rudalics wrote: > > If not, then we should try to understand why not. Please with pristine > >> master replace the initial assignment of 'frame-size-history' in > frame.c > >> from > >> > >> frame_size_history = Qnil; > >> > >> to > >> > >> frame_size_history = Fcons (make_fixnum (100), Qnil); > >> > >> start Emacs -Q and tell me the contents of the *frame-size-history* > >> buffer. > > > > > > There isn't one. > > Silly me. You have to evaluate > > (frame--size-history) > > first. Then it should be there. > Yes, sorry, I didn't think of it either. Here's the output: Frame size history of # x_create_frame_1 (5), TS=80x25~>1280x875, NS=80x25~>1296x875, IS=80x25~>1296x875, MS=32x70 IH IV gui_figure_window_size (5), TS=1280x875~>1280x1260, TC=80x25~>80x36, NS=1296x875~>1296x1260, IS=1296x875~>1296x1260, MS=32x70 IH IV scroll-bar-width (3), NS=1296x1260~>1328x1260, IS=1296x1260~>1328x1260, MS=160x175 scroll-bar-height (3), MS=160x175 menu-bar-lines (2), MS=160x175 x_create_frame_2 (0), MS=160x175 xg_frame_set_char_size, invisible, PS=1328x1260, XS=1328x1260, DS=1328x1260 xg_frame_set_char_size (5), MS=32x70 IH IV x_make_frame_visible MapNotify, not hidden & not iconified, PS=1328x1260, DS=1328x1260 ConfigureNotify, PS=1328x1260, XS=1328x1260, DS=1328x1260 xg_frame_resized, unchanged, PS=1328x1260, XS=1328x1260 ConfigureNotify, PS=1328x1260, XS=1328x1258, DS=1328x1260 xg_frame_resized, changed, PS=1328x1260, XS=1328x1258 change_frame_size_1, delayed, PS=1328x1260, XS=1328x1258, DS=1328x1260 change_frame_size (5), TS=1280x1260~>1280x1258, TC=80x36~>80x35, NS=1328x1260~>1328x1258, IS=1328x1260~>1328x1258, MS=32x70 IH IV tool-bar-lines (2), MS=160x175 xg_frame_set_char_size, visible, PS=1328x1258, XS=1328x1258 ConfigureNotify, PS=1328x1258, XS=1328x1258 xg_frame_resized, unchanged, PS=1328x1258, XS=1328x1258 ConfigureNotify, PS=1328x1258, XS=1280x1354 xg_frame_resized, changed, PS=1328x1258, XS=1280x1354 change_frame_size_1, delayed, PS=1328x1258, XS=1280x1354 change_frame_size (5), TS=1280x1258~>1232x1354, TC=80x35~>77x38, NS=1328x1258~>1280x1354, IS=1328x1258~>1280x1354, MS=32x70 IH IV set_window_configuration (4), MS=160x175 IH IV -- https://rrt.sc3d.org --0000000000001d44a006219f06df Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 8 Sept 2024 at 17:54, martin rudalics <rudalics@gmx.at> wrote:
=C2=A0> If not, then we should try to u= nderstand why not.=C2=A0 Please with pristine
=C2=A0>> master replace the initial assignment of 'frame-size-his= tory' in frame.c
=C2=A0>> from
=C2=A0>>
=C2=A0>>=C2=A0 =C2=A0 =C2=A0frame_size_history =3D Qnil;
=C2=A0>>
=C2=A0>> to
=C2=A0>>
=C2=A0>>=C2=A0 =C2=A0 =C2=A0frame_size_history =3D Fcons (make_fixnum= (100), Qnil);
=C2=A0>>
=C2=A0>> start Emacs -Q and tell me the contents of the *frame-size-h= istory*
=C2=A0>> buffer.
=C2=A0>
=C2=A0>
=C2=A0> There isn't one.

Silly me.=C2=A0 You have to evaluate

(frame--size-history)

first.=C2=A0 Then it should be there.

<= div style=3D"font-family:arial,helvetica,sans-serif;font-size:small" class= =3D"gmail_default">Yes, sorry, I didn't think of it either. Here's = the output:

Frame size= history of #<frame =C2=A0*Minibuf-1* - GNU Emacs at ecls 0x59a9a967e790= >
x_create_frame_1 (5), TS=3D80x25~>1280x875, NS=3D80x25~>1296x= 875, IS=3D80x25~>1296x875, MS=3D32x70 IH IV
gui_figure_window_size (5= ), TS=3D1280x875~>1280x1260, TC=3D80x25~>80x36, NS=3D1296x875~>129= 6x1260, IS=3D1296x875~>1296x1260, MS=3D32x70 IH IV
scroll-bar-width (= 3), NS=3D1296x1260~>1328x1260, IS=3D1296x1260~>1328x1260, MS=3D160x17= 5
scroll-bar-height (3), MS=3D160x175
menu-bar-lines (2), MS=3D160x17= 5
x_create_frame_2 (0), MS=3D160x175
xg_frame_set_char_size, invisibl= e, PS=3D1328x1260, XS=3D1328x1260, DS=3D1328x1260
xg_frame_set_char_size= (5), MS=3D32x70 IH IV
x_make_frame_visible
MapNotify, not hidden &am= p; not iconified, PS=3D1328x1260, DS=3D1328x1260
ConfigureNotify, PS=3D1= 328x1260, XS=3D1328x1260, DS=3D1328x1260
xg_frame_resized, unchanged, PS= =3D1328x1260, XS=3D1328x1260
ConfigureNotify, PS=3D1328x1260, XS=3D1328x= 1258, DS=3D1328x1260
xg_frame_resized, changed, PS=3D1328x1260, XS=3D132= 8x1258
change_frame_size_1, delayed, PS=3D1328x1260, XS=3D1328x1258, DS= =3D1328x1260
change_frame_size (5), TS=3D1280x1260~>1280x1258, TC=3D8= 0x36~>80x35, NS=3D1328x1260~>1328x1258, IS=3D1328x1260~>1328x1258,= MS=3D32x70 IH IV
tool-bar-lines (2), MS=3D160x175
xg_frame_set_char_= size, visible, PS=3D1328x1258, XS=3D1328x1258
ConfigureNotify, PS=3D1328= x1258, XS=3D1328x1258
xg_frame_resized, unchanged, PS=3D1328x1258, XS=3D= 1328x1258
ConfigureNotify, PS=3D1328x1258, XS=3D1280x1354
xg_frame_re= sized, changed, PS=3D1328x1258, XS=3D1280x1354
change_frame_size_1, dela= yed, PS=3D1328x1258, XS=3D1280x1354
change_frame_size (5), TS=3D1280x125= 8~>1232x1354, TC=3D80x35~>77x38, NS=3D1328x1258~>1280x1354, IS=3D1= 328x1258~>1280x1354, MS=3D32x70 IH IV
set_window_configuration (4), M= S=3D160x175 IH IV

--
--0000000000001d44a006219f06df--