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: Tue, 10 Sep 2024 18:00:25 +0100 Message-ID: References: <4c2fe23a-be76-4cdc-8f97-16197e1834b0@gmx.at> <300cb820-d6b7-44c6-8609-fa7804babf99@gmx.at> <56840844-930e-45b0-ae48-97b5875c51b9@gmx.at> <7c94c78e-5ffd-4a41-948a-8e1a2ccefb91@gmx.at> Reply-To: Reuben Thomas Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f965a80621c6cf8c" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32548"; 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 Tue Sep 10 19:02:21 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 1so4Fx-0008Ko-Jd for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 10 Sep 2024 19:02:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1so4Fb-0002g4-Nj; Tue, 10 Sep 2024 13:01:59 -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 1so4FZ-0002Yh-Or for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 13:01:57 -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 1so4FZ-0000sr-Fp for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 13:01:57 -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=E2VQWc+5pyuXA9fvCBjmCRCyq663sjv+7iZGJHiMUWo=; b=klHZNeoCF8N9VZgWT7wKLzGsN4c1EpJDVQxQ60mzqdMZ6PVHlC845ppuBeU0etYz0C2Mj4hwoFrIKRnztbSn6ETERSPyIio7OeFwmJs3+ZPitn3KQGLkRFVc7yO465kznpFrJb5glhuWdWGa/Ligh1l0SQvLQDM4e2iNoxBgvrTDdAawgJZ5SWo9dOXFkSfKmhcAA7DrJ3of0680cgeNbeczfk2IT6IdnOTuMumXYu8KT56YUM6RCuFWwbIN20MxWqA+9IkEj4TLi1FjGLfjN7fFyDPnJvWW4ICMrFJ+YPt+zybz8sZumTsQC/c1j4Qnq8/LRllBTKbOkCL5U5y2/Q==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1so4Fe-000712-A4 for bug-gnu-emacs@gnu.org; Tue, 10 Sep 2024 13:02: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: Tue, 10 Sep 2024 17:02: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.172598771126952 (code B ref 72986); Tue, 10 Sep 2024 17:02:02 +0000 Original-Received: (at 72986) by debbugs.gnu.org; 10 Sep 2024 17:01:51 +0000 Original-Received: from localhost ([127.0.0.1]:36913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so4FT-00070b-5o for submit@debbugs.gnu.org; Tue, 10 Sep 2024 13:01:51 -0400 Original-Received: from mail-yw1-f176.google.com ([209.85.128.176]:59787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1so4FQ-00070M-7J for 72986@debbugs.gnu.org; Tue, 10 Sep 2024 13:01:49 -0400 Original-Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-6d47d860fc4so41953167b3.3 for <72986@debbugs.gnu.org>; Tue, 10 Sep 2024 10:01:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sc3d.org; s=google; t=1725987637; x=1726592437; 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=E2VQWc+5pyuXA9fvCBjmCRCyq663sjv+7iZGJHiMUWo=; b=lk1uo1zy/3qf/UeQHa3yFRKzGpiYGrKZ6LIUVCItfSDDSVtGkROJ8qQOps4R6sqLZr uGSdIQL2wArCgQ2L6b84A8vWbYoEpzpUjiaVwdZ1suHuBhrmNiTK8Br5r+GSBptyqABu Qy5IbJ2t2dJqPJTVKnucjwVxBkMyEkGebE4dU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725987637; x=1726592437; 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=E2VQWc+5pyuXA9fvCBjmCRCyq663sjv+7iZGJHiMUWo=; b=YjJO50yCG6imZWNTZY1ErtUo2ky4giwH7K+k7APaOd8/WN1/1/EbMzmmgdToNmNppU QPHVwIUvp1k9fGOBuUSm0P5o9YBpZf0+01IJ25bnlfu4GNgQ9a+/OAM2950qqP2wKXh4 tqLxEBCStbEDsnz47msmyR13ov1ZfvXcFb8cjeKaxIukwOwuOWODZL1vJF+rb1lwAJGr THXT1AcWeAw+vjB6BLqaUAYqgcWRZK6lM2hYo4ll9WcZC0POPYdExPQ995Ob7YdqUNu8 wNb6sN1mJah+YvaGypVs4wFxXCjVGcAAb3olgugQ3hT//AfxOIVEq9ut64icf0BYL8fC MZUg== X-Forwarded-Encrypted: i=1; AJvYcCWWmxglYJyOK4nzMVyEz48/1xE9dDglnbkoR3L8PWN7E2BvRTloVZzDw6wEYFQhIeoKvc99YA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YyGej/kLK6AYiSfwu+6GLtYpoI9Mtow5/HOfF73n0OCPjet3sdK PvJdmK+OVBOw+kgUfGwXuP/BB0bFsJ2rt/RfVhFfR427sxp3HTQ8GXPsjHTyTJFkzQUc5PUaZhe KCSAOv1yVXe1DXIczIa6L/I0UOX4l+OOZxop08A== X-Google-Smtp-Source: AGHT+IEVrD8xGjZ6aP8apGbbby62CvZS81CJDj2lCWVjGBy4mLf/abr0CFprS+AAyMzXpUe3mYm1yv18kT5gjTaryl0= X-Received: by 2002:a05:690c:83:b0:6b7:4c3e:9541 with SMTP id 00721157ae682-6db452c33bcmr141457317b3.30.1725987636724; Tue, 10 Sep 2024 10:00:36 -0700 (PDT) In-Reply-To: <7c94c78e-5ffd-4a41-948a-8e1a2ccefb91@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:291573 Archived-At: --000000000000f965a80621c6cf8c Content-Type: text/plain; charset="UTF-8" On Tue, 10 Sept 2024 at 10:32, martin rudalics wrote: > > Since you run with > > emacs -Q --eval "(setq default-frame-alist '((menu-bar-lines . 0)))" > > Emacs considers menu bars to be currently enabled "globally" and > disabling them globally has no effect on that frame. Do you agree with > this explanation? > I would be more cautious, since I do not know the code, and simply say that disabling menu-bar-mode has no effect on the current frame, where there is already no menu bar. So please try again with the attached patch which records the original > unscaled sizes. And please tell me what > > (frame-char-width) > (frame-char-height) > > evaluate to. > Can I just check: do you want me to apply your latest gtkutil-reject.diff on top of your previous size_hints.diff, or instead of it? -- https://rrt.sc3d.org --000000000000f965a80621c6cf8c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Tue, 10 Sept 2024 a= t 10:32, martin rudalics <rudalics@gm= x.at> wrote:

Since you run with

emacs -Q=C2=A0 --eval "(setq default-frame-alist '((menu-bar-lines= . 0)))"

Emacs considers menu bars to be currently enabled "globally" and<= br> disabling them globally has no effect on that frame.=C2=A0 Do you agree wit= h
this explanation?

I = would be more cautious, since I do not know the code, and simply say that d= isabling menu-bar-mode has no effect on the current frame, where there is a= lready no menu bar.

So please try again w= ith the attached patch which records the original
unscaled sizes.=C2=A0 And please tell me what

(frame-char-width)
(frame-char-height)

evaluate to.

Can I just check: do you want me to apply your= latest gtkutil-reject.diff on top of your previous size_hints.diff, or ins= tead of it?

--
--000000000000f965a80621c6cf8c--