From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.help Subject: Re: menu-bar-mode makes frame continuously shrink in height Date: Thu, 19 Oct 2023 18:33:32 +0800 Message-ID: <87jzri6gw3.fsf@yahoo.com> References: <1557a557-e827-d60f-af1e-48ae7003a6d8@magnaspesmeretrix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5463"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: PierGianLuca Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 19 12:34:32 2023 Return-path: Envelope-to: geh-help-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 1qtQMJ-0001A2-JV for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 19 Oct 2023 12:34:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qtQLp-0001bB-Bx; Thu, 19 Oct 2023 06:34:01 -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 1qtQLf-0001DR-SJ for help-gnu-emacs@gnu.org; Thu, 19 Oct 2023 06:33:54 -0400 Original-Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qtQLX-0000Cc-Fh for help-gnu-emacs@gnu.org; Thu, 19 Oct 2023 06:33:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697711620; bh=kmP9EaK43Pge4UHBBvoBiIdotr7AQSkVUhNYVro0AmU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=QFxE1wy/1mG9UWk8gQoZ4AiaRrG9xcFXQrIXaoGXGlAAaH3lekzlHKdtL1Yq87k71b6IpsVexPeZc2+ihSX5cZBPsL2CyIzA2uwi6js2GZN2Fk2dnglIHma8dAIpr1PWMg6w74PdyE84H1LSKhDzPskMtTZCXrQlYY/gMvbf0/qSJsLyKYpf3hInZhzWaJvjocH+m//tM/OQXKTfdGxCEXVMZwl423BI/bHjygJQRLofx9M3WtS+nGjkMo6nBd4d7bCLlE4ayRlQK17O6C0kkydV4vQiPkyJwC/pRe2ebwm2Xt8jK3EBBs09Cz8zUNNgIjKx8QWj4sGqDMjM7PoAVw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1697711620; bh=U7kN/2ndjyXd8g3/T/Tt4QERlfF9yp8EYhxD4H31lpj=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Spqqque2Pmp9kEadLz0+v7BkJTptnzGlVft7uPY1Slez8wO0VtHPBn1M8d5OsHnifMtczFSwRsmGz38klnjMFfDCeeDkGLqb0+H0A8SkTt8MFcctYn6b8LTkpGmhnFltrDXLuUkdONleQxeCOt+84zZV683scOEM+kUSh0mR330ejE1hkCldzLS8B5P3RffQ4pB0KQnDlxrpDOFYZ7qJ+K8rEq7rtdSc8dvfLDPTvYOKz1LWZ6uTzWY7FrSgdsGxzsrVcnFmvdl7DSEL0DWic4rSPAZkCni+9FYLhpDngU8BcnOALlbk6qXpmn63kCA7G0BLVZgKFhU7HeNMrz8QAA== X-YMail-OSG: KWCRMSEVM1n06WG0vpuZGSuBX0oBcZB4ULTJKwLcl66724yGNmsmJMbt8MwyNvM _WO5AVYpgRl.0nt9WtxsVcuk3aOsNkRmnGo7p14iuk.HO95eYmQNpK3W20wVP9.6tGhm9hjIsZIa DTSDBsI0AYjcV5JjFD2pRbhZjn7UszFoCEggigi_vD8E4KZv9BUL2WkcJ.GzfPUed8.4D1pBMcSL C6.mcTQNA7d.jBimvjZWPiueg1znamTz75YQlyW2Lfw2Na9ijTBHl9ec6m.pCoeW_sPeC..gPYvi E.7XjY9o6Er6UbCM6_VxOA9O_l58Dk5GVD.TuQtaOwwftdIvlrGkAn..l.rLCvo7T2ltKHZTDiEH 6.rjNOyoLA_4VPeolGALrjBTPTOSjCMVg0G37m7TcfGFCB56csOZDqLXTRI1gt70DVkQ72Bgu7ew nj175kEtwN9ivYi3vJk6mOsmEjyD1jjs0Y9SGpEN5Q3t8ZdEx9h0PoUn7ZzzpTtTeLfOWFGlZW7H CBrlx.W_uolnPPVrBT0TK2L_a6u7917YDbtOwSFQhnk1Q_qsiXZOW0ije_YrYWf7Q0SkVuIMfH.a AkB7wZ7byFhus0kd.4s8.aQ75PCVcUoTIwowv8uU2_zuhR5.q_XWiDZWnkbysuohZqQHs4OaQc6y aaewRLCsgiqtsu4IHhOq71cuIbPMibVrE9woGpA0lO_rS1N204xyHtEY7XD4ZlCsT8AXOJrVlBYE I6cFcNCA9YzXq.nujPe4mRsGoKoStc3Oe4HURTcQ1hmAwww0DLnEREdoZb_OzuFJP8_pM5k4hcNv _tMkD0dENYRW26AfORmz5OUz9XSUX3y7wFPV9jwbHH X-Sonic-MF: X-Sonic-ID: 7096f284-5791-41e2-ba9d-27a6ba6aaeda Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.ne1.yahoo.com with HTTP; Thu, 19 Oct 2023 10:33:40 +0000 Original-Received: by hermes--production-sg3-57f7997989-rvbd2 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 047ee49b3e9e5b2aeba76e55659b2231; Thu, 19 Oct 2023 10:33:37 +0000 (UTC) In-Reply-To: <1557a557-e827-d60f-af1e-48ae7003a6d8@magnaspesmeretrix.org> (PierGianLuca's message of "Thu, 19 Oct 2023 10:29:08 +0200") X-Mailer: WebService/1.1.21863 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.191.204; envelope-from=luangruo@yahoo.com; helo=sonic312-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145319 Archived-At: PierGianLuca writes: > Hi everyone, > > Emacs 29.1 on Ubuntu 20.04 here. Emacs was installed from tarball with op= tions: > --with-native-compilation --with-json --enable-link-time-optimization --w= ith-x-toolkit=3Dlucid --without-toolkit-scroll-bars > > > I see a curious behaviour from calling "menu-bar-mode" and "tool-bar-mode= ". Before submitting it as a bug I wanted to ask here if it's something kno= wn, or if not how I can track the source of the problem myself. > > I have frames set at height=3D77 in "default-frame-alist", and "menu-bar-= mode" and "tool-bar-mode" both set to nil (all via Customize). > > > (A) If I call "M-x menu-bar-mode", the menu bar appears, and the frame > shrinks vertically by one line. If I call "M-x menu-bar-mode" again, > the menu bar disappears, and the frame shrinks vertically once > more. So the more I make the menu bar appear and disappear, the more > the frame shrinks. > > I tried adding and removing "menu-bar-lines" in "frame-inhibit-implied-re= size", but the problem remains either way. > > > (B) Exactly the same problem with tool-bar-mode. There's one difference h= ere: > > this continuous-shrinking behaviour happens if "tool-bar-lines" is in > "frame-inhibit-implied-resize". Otherwise, the frame increases in > vertical size when tool-bar-mode is enabled, and decrease to the > original size when tool-bar-mode is is disabled. (This seems to me > contrary to what's explained under "tool-bar-lines".) > > > (C) If I call Emacs with "-Q" (no init file), the continuous shrinking do= es *not* happen with menu-bar-mode =E2=80=93 but it *does* happen with tool= -bar-mode. > > > This makes me think that there's both a bug somewhere, but also something= strange in my init file. More likely, your window manager is imposing stringent size requirements pursuant to the resize increments Emacs has requested. Do frames continue to shrink after setting frame-resize-pixelwise to t in early-init.el?