From unknown Mon Jun 16 23:48:23 2025 X-Loop: don@donarmstrong.com Subject: bug#25: frame parameter menu-bar-lines changes height of frame Reply-To: "Drew Adams" , 25@debbugs.gnu.org Resent-From: "Drew Adams" Original-Sender: bug-gnu-emacs-bounces+jasonr=gnu.org@gnu.org Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 29 Feb 2008 09:15:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 25 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12042761599705 (code B ref -1); Fri, 29 Feb 2008 09:15:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,SPF_HELO_PASS, UNPARSEABLE_RELAY autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Feb 2008 09:09:19 +0000 Received: from mk-outboundfilter-4.mail.uk.tiscali.com (mk-outboundfilter-4.mail.uk.tiscali.com [212.74.114.32]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m1T99BOL009696 for ; Fri, 29 Feb 2008 01:09:13 -0800 X-Trace: 16173101/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@f2s.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswMAANax0dTQxds/2dsb2JhbACRawubeQ X-IronPort-AV: E=McAfee;i="5200,2160,5241"; a="16173101" X-IronPort-AV: E=Sophos;i="4.25,425,1199664000"; d="scan'208";a="16173101" X-IP-Direction: OUT Received: from i-83-67-23-108.freedom2surf.net (HELO [127.0.0.1]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Feb 2008 09:09:00 +0000 Resent-From: Jason Rumney Resent-To: submit@debbugs.gnu.org Resent-Date: Fri, 29 Feb 2008 09:08:55 +0000 Resent-Message-Id: <47C7CBA7.9070100@f2s.com> Resent-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 X-Original-To: jasonr@localhost Received: from wanchan.jasonr.f2s.com (localhost [127.0.0.1]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 10D281B8 for ; Tue, 24 Jul 2007 05:33:11 +0100 (BST) Received: from imap.freedom2surf.net [195.224.192.52] by wanchan.jasonr.f2s.com with POP3 (fetchmail-6.3.8) for (single-drop); Tue, 24 Jul 2007 05:33:11 +0100 (BST) Received: from murder ([unix socket]) by imap2.freedom2surf.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-3.RHEL4.1) with LMTPA; Tue, 24 Jul 2007 05:30:16 +0100 X-Sieve: CMU Sieve 2.2 Received: from avs03.freedom2surf.net (avs03.freedom2surf.net [195.224.224.198]) by imap2.freedom2surf.net (Postfix) with ESMTP id EDD6A4652E8 for ; Tue, 24 Jul 2007 05:30:16 +0100 (BST) Received: from localhost ([127.0.0.1] helo=avs03.freedom2surf.net) by avs03.freedom2surf.net with esmtp (Exim 4.43) id 1IDC2z-0008VT-6b for jasonr@f2s.com; Tue, 24 Jul 2007 05:31:01 +0100 Received: from mx3.freedom2surf.net ([194.106.35.254]) by avs03.freedom2surf.net with esmtp (Exim 4.43) id 1IDC2z-0008VQ-5a for jasonr@f2s.com; Tue, 24 Jul 2007 05:30:57 +0100 Received: from fencepost.gnu.org ([140.186.70.10]) by mx3.freedom2surf.net with esmtp (Exim 4.62) (envelope-from ) id 1IDC2F-00087O-OX for jasonr@f2s.com; Tue, 24 Jul 2007 05:30:12 +0100 Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDC3l-0003tv-W8 for jasonr@gnu.org; Tue, 24 Jul 2007 00:31:46 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IDC2D-00057x-0O for jasonr@gnu.org; Tue, 24 Jul 2007 00:30:09 -0400 Received: from lists.gnu.org ([199.232.76.165]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDC2C-00057l-QZ for jasonr@gnu.org; Tue, 24 Jul 2007 00:30:08 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDC2C-0003nU-OW for jasonr@gnu.org; Tue, 24 Jul 2007 00:30:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDC29-0003mg-J7 for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDC28-0003mH-6m for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDC27-0003mE-WB for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:04 -0400 Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IDC27-00056f-Ie for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:03 -0400 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l6O4U0EI027375 for ; Mon, 23 Jul 2007 22:30:00 -0600 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l6O4U09n019835 for ; Mon, 23 Jul 2007 22:30:00 -0600 Received: from dhcp-amer-csvpn-gw2-141-144-73-43.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3063211161185251335; Mon, 23 Jul 2007 21:28:55 -0700 From: "Drew Adams" To: "Bug-Gnu-Emacs" Date: Mon, 23 Jul 2007 21:28:54 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bug-gnu-emacs-bounces+jasonr=gnu.org@gnu.org Errors-To: bug-gnu-emacs-bounces+jasonr=gnu.org@gnu.org X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-F2S-Spam-Score: -10 Can we please revisit this now that the release is out? > From: Drew Adams Sent: Saturday, June 10, 2006 8:57 AM > To: Emacs-Pretest-Bug > Subject: frame parameter menu-bar-lines changes height of frame > > emacs -Q > > (make-frame '((width . 70)(height . 50))) > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 0))) > (frame-parameters) > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 1))) > (frame-parameters) > > Adding and removing a menu-bar line changes the visible height of the > frame (incorrect), but it does not change the `height' frame > parameter. The correct behavior is that observed for `tool-bar-lines': > neither the visible frame height nor the `height' parameter is > changed. Use (assq 'height (frame-parameters)) to see that the `height' parameter does not change. This was first reported 2.5 years ago. Here is the last bit of discussion about it: > From: Drew Adams Sent: Tuesday, June 13, 2006 11:59 AM > Hi Eli, > Thanks for your explanation. I understand better now. > > I'm fine with this not being fixed before the release. I would > ask that it be fixed soon thereafter, if possible. > > If necessary, we can reopen the discussion of what the behavior > should be. To me, it should be like the tool-bar behavior. If > that's not possible in some contexts, then those contexts can be > treated specially (do the best we can to determine menu-bar height etc.). > > Showing and hiding the menu-bar should not change the frame size > whenever that is avoidable. There is no reason to reduce > everything to the lowest common denominator, if that denominator > is bugged behavior. If the bugged behavior is sometimes > unavoidable, so be it, but let's not use it as the norm. > > Thx - Drew > > ----------------- > > > You've said that the reason to not fix this now or soon is > that fixing it > > would be difficult. Could you explain why menu-bar-lines is > different from > > tool-bar-lines in this respect? > > Because, historically, the menu bar was just a line of text at the > upper edge of the frame (and still is, in the non-toolkit and tty > builds). Tool bar was never an integral number of text lines. > > > The latter works correctly. Couldn't the tool-bar-lines > > implementation (fix) apply also to menu-bar-lines? > > Theoretically, yes. But even the thread you cited (which started > about a different issue, and only touched the menu bar tangentially) > reveals that people are divided on what should be the right behavior. > There are also other complications, IIRC: the size of the menu bar may > not be known with some toolkits, so resizing the text area might be > tricky. > > That is why I don't think we should try to fix this now. The fact > that two years have passed (actually much more, since this issue was > discussed back when Gerd Moellmann was the head maintainer) is > unfortunate, but I think we will shoot in our foot if we add now as > yet additional complication in the display-related code. I fear the > redisplay-dont-pause changes already complicated things enough, and > might prolong the pretest. Emacs had this misfeature for a long time, > and complaints, if there were any, were minimal. I think the fix can > wait a little longer. In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include' _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs From unknown Mon Jun 16 23:48:23 2025 X-Loop: don@donarmstrong.com Subject: bug#25: frame parameter menu-bar-lines changes height of frame Reply-To: Stefan Monnier , 25@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 10 Jun 2008 19:15:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 25 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 25-submit@emacsbugs.donarmstrong.com id=B25.121312481029152 (code B ref 25); Tue, 10 Jun 2008 19:15:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-0.7 required=4.0 tests=AWL,BAYES_00,FAKE_REPLY_C autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 25) by emacsbugs.donarmstrong.com; 10 Jun 2008 19:06:50 +0000 Received: from ironport2-out.teksavvy.com (ironport2-out.teksavvy.com [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5AJ6lJZ029146 for <25@emacsbugs.donarmstrong.com>; Tue, 10 Jun 2008 12:06:48 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgwFABRtTkhMCpcZ/2dsb2JhbACBW7AK X-IronPort-AV: E=Sophos;i="4.27,618,1204520400"; d="scan'208";a="22375078" Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 10 Jun 2008 15:06:42 -0400 Received: from pastel.home ([76.10.151.25]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id QZQ04642; Tue, 10 Jun 2008 15:06:42 -0400 Received: by pastel.home (Postfix, from userid 20848) id 010F582F1; Tue, 10 Jun 2008 15:06:41 -0400 (EDT) From: Stefan Monnier To: 25@debbugs.gnu.org Message-ID: Date: Tue, 10 Jun 2008 15:06:41 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii severity 25 wishlist thanks The menu-bar currently isn't counted as part of the "text area" (whose size is described by the height and width frame parameters), whereas the tool-bar is. I agree that the way the toolbar behaves in this respect is preferable, but because Emacs still counts sizes in multiple of lines and columns, it also has drawbacks (typically a few pixels wasted between the tool-bar and the actual text). Hopefully, we'll fix this at some point. From unknown Mon Jun 16 23:48:23 2025 X-Loop: don@donarmstrong.com Subject: bug#25: frame parameter menu-bar-lines changes height of frame Reply-To: "Drew Adams" , 25@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 10 Jun 2008 19:50:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 25 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 25-submit@emacsbugs.donarmstrong.com id=B25.12131269765078 (code B ref 25); Tue, 10 Jun 2008 19:50:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.0 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 25) by emacsbugs.donarmstrong.com; 10 Jun 2008 19:42:56 +0000 Received: from agminet01.oracle.com (agminet01.oracle.com [141.146.126.228]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m5AJgqQL005070 for <25@emacsbugs.donarmstrong.com>; Tue, 10 Jun 2008 12:42:54 -0700 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m5AJgj45011586; Tue, 10 Jun 2008 14:42:46 -0500 Received: from acsmt351.oracle.com (acsmt351.oracle.com [141.146.40.151]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m5AGH2Yl005979; Tue, 10 Jun 2008 13:42:45 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt350.oracle.com with ESMTP id 3690116711213126931; Tue, 10 Jun 2008 12:42:11 -0700 Received: from dradamslap1 (/24.5.171.3) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 10 Jun 2008 12:42:10 -0700 From: "Drew Adams" To: "'Stefan Monnier'" , <25@debbugs.gnu.org> References: Date: Tue, 10 Jun 2008 12:42:09 -0700 Message-ID: <006701c8cb32$12c98860$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: AcjLMCWdE8vkEYj+TBuPapVOv0xpqAAATc3g X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Too bad. Apparently people have been agreeing that this should be fixed since it was first discussed when Gerd was in charge - years. Previously, the reason given for not fixing it at the time was that the release was imminent and we didn't want to risk the change. Now, this has simply been downgraded to "wishlist" - poof! Dommage. > From: Stefan Monnier Sent: Tuesday, June 10, 2008 12:07 PM > severity 25 wishlist > thanks > > The menu-bar currently isn't counted as part of the "text area" (whose > size is described by the height and width frame parameters), > whereas the tool-bar is. > > I agree that the way the toolbar behaves in this respect is > preferable, > but because Emacs still counts sizes in multiple of lines and columns, > it also has drawbacks (typically a few pixels wasted between the > tool-bar and the actual text). > > Hopefully, we'll fix this at some point. From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 05 15:49:11 2013 Received: (at control) by debbugs.gnu.org; 5 Jul 2013 19:49:11 +0000 Received: from localhost ([127.0.0.1]:60968 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvC0F-0004MD-BN for submit@debbugs.gnu.org; Fri, 05 Jul 2013 15:49:11 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:36150 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UvC0D-0004M6-Gu for control@debbugs.gnu.org; Fri, 05 Jul 2013 15:49:09 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UvC0C-0003IT-QT for control@debbugs.gnu.org; Fri, 05 Jul 2013 15:49:08 -0400 Date: Fri, 05 Jul 2013 15:49:08 -0400 Message-Id: Subject: control message for bug 14795 To: X-Mailer: mail (GNU Mailutils 2.1) From: Glenn Morris X-Spam-Score: -5.2 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.2 (-----) forcemerge 25 14795 From unknown Mon Jun 16 23:48:23 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Drew Adams" Subject: bug#25: closed (Re: frame parameter menu-bar-lines changes height of frame) Message-ID: References: <54A44234.2020305@gmx.at> X-Gnu-PR-Message: they-closed 25 X-Gnu-PR-Package: emacs Reply-To: 25@debbugs.gnu.org Date: Wed, 31 Dec 2014 18:37:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1420051023-11522-1" This is a multi-part message in MIME format... ------------=_1420051023-11522-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25: frame parameter menu-bar-lines changes height of frame which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 25@debbugs.gnu.org. --=20 25: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1420051023-11522-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25-done) by debbugs.gnu.org; 31 Dec 2014 18:36:49 +0000 Received: from localhost ([127.0.0.1]:33940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6O8W-0002yz-K2 for submit@debbugs.gnu.org; Wed, 31 Dec 2014 13:36:48 -0500 Received: from mout.gmx.net ([212.227.17.22]:60667) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6O8V-0002yp-7O for 25-done@debbugs.gnu.org; Wed, 31 Dec 2014 13:36:47 -0500 Received: from [62.47.141.15] ([62.47.141.15]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LgqEs-1XSQs02Cu6-00oJPT; Wed, 31 Dec 2014 19:36:42 +0100 Message-ID: <54A44234.2020305@gmx.at> Date: Wed, 31 Dec 2014 19:36:36 +0100 From: martin rudalics MIME-Version: 1.0 To: drew.adams@oracle.com, 25-done@debbugs.gnu.org Subject: Re: frame parameter menu-bar-lines changes height of frame References: BDEIJAFNGDOAGCJIPKPBEEPECFAA.drew.adams@oracle.com Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:bEIE/nTfhiVIoKFTlqr9kGkn9pBSn1VU62FKMv+DugRtIlFrKLa DokACltkqr1Qiv9Nt4iyeynZXkWU6YVCMpHK5Fq3RQO4FOt9iF7Zo6tDjJKfzmFJ71z8Gft 77NviMi9HS4UrbQVIqbxGPvTM6+kGPDYUF3xpAE/JzqVhn4L9X/a6mrw1K4sukhHF5spM4Z U6sfD6QRrnVYieMJukfxA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > > emacs -Q > > > > (make-frame '((width . 70)(height . 50))) > > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 0))) > > (frame-parameters) > > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 1))) > > (frame-parameters) > > > > Adding and removing a menu-bar line changes the visible height of the > > frame (incorrect), but it does not change the `height' frame > > parameter. The correct behavior is that observed for `tool-bar-lines': > > neither the visible frame height nor the `height' parameter is > > changed. > > Use (assq 'height (frame-parameters)) to see that the `height' > parameter does not change. This can now be handled on trunk/master by adding 'menu-bar-lines' to `frame-inhibit-implied-resize'. Bug closed. Thanks, martin ------------=_1420051023-11522-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit >From jasonr@f2s.com Fri Feb 29 01:09:19 2008 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: * X-Spam-Status: No, score=1.1 required=4.0 tests=FOURLA,SPF_HELO_PASS, UNPARSEABLE_RELAY autolearn=no version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 29 Feb 2008 09:09:19 +0000 Received: from mk-outboundfilter-4.mail.uk.tiscali.com (mk-outboundfilter-4.mail.uk.tiscali.com [212.74.114.32]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m1T99BOL009696 for ; Fri, 29 Feb 2008 01:09:13 -0800 X-Trace: 16173101/mk-outboundfilter-2.mail.uk.tiscali.com/F2S/$ACCEPTED/freedom2Surf-customers/83.67.23.108 X-SBRS: None X-RemoteIP: 83.67.23.108 X-IP-MAIL-FROM: jasonr@f2s.com X-IP-BHB: Once X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswMAANax0dTQxds/2dsb2JhbACRawubeQ X-IronPort-AV: E=McAfee;i="5200,2160,5241"; a="16173101" X-IronPort-AV: E=Sophos;i="4.25,425,1199664000"; d="scan'208";a="16173101" X-IP-Direction: OUT Received: from i-83-67-23-108.freedom2surf.net (HELO [127.0.0.1]) ([83.67.23.108]) by smtp.f2s.tiscali.co.uk with ESMTP/TLS/DHE-RSA-AES256-SHA; 29 Feb 2008 09:09:00 +0000 Resent-From: Jason Rumney Resent-To: submit@debbugs.gnu.org Resent-Date: Fri, 29 Feb 2008 09:08:55 +0000 Resent-Message-Id: <47C7CBA7.9070100@f2s.com> Resent-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 X-Original-To: jasonr@localhost Received: from wanchan.jasonr.f2s.com (localhost [127.0.0.1]) by wanchan.jasonrumney.net (Postfix) with ESMTP id 10D281B8 for ; Tue, 24 Jul 2007 05:33:11 +0100 (BST) Received: from imap.freedom2surf.net [195.224.192.52] by wanchan.jasonr.f2s.com with POP3 (fetchmail-6.3.8) for (single-drop); Tue, 24 Jul 2007 05:33:11 +0100 (BST) Received: from murder ([unix socket]) by imap2.freedom2surf.net (Cyrus v2.2.12-Invoca-RPM-2.2.12-3.RHEL4.1) with LMTPA; Tue, 24 Jul 2007 05:30:16 +0100 X-Sieve: CMU Sieve 2.2 Received: from avs03.freedom2surf.net (avs03.freedom2surf.net [195.224.224.198]) by imap2.freedom2surf.net (Postfix) with ESMTP id EDD6A4652E8 for ; Tue, 24 Jul 2007 05:30:16 +0100 (BST) Received: from localhost ([127.0.0.1] helo=avs03.freedom2surf.net) by avs03.freedom2surf.net with esmtp (Exim 4.43) id 1IDC2z-0008VT-6b for jasonr@f2s.com; Tue, 24 Jul 2007 05:31:01 +0100 Received: from mx3.freedom2surf.net ([194.106.35.254]) by avs03.freedom2surf.net with esmtp (Exim 4.43) id 1IDC2z-0008VQ-5a for jasonr@f2s.com; Tue, 24 Jul 2007 05:30:57 +0100 Received: from fencepost.gnu.org ([140.186.70.10]) by mx3.freedom2surf.net with esmtp (Exim 4.62) (envelope-from ) id 1IDC2F-00087O-OX for jasonr@f2s.com; Tue, 24 Jul 2007 05:30:12 +0100 Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDC3l-0003tv-W8 for jasonr@gnu.org; Tue, 24 Jul 2007 00:31:46 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IDC2D-00057x-0O for jasonr@gnu.org; Tue, 24 Jul 2007 00:30:09 -0400 Received: from lists.gnu.org ([199.232.76.165]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDC2C-00057l-QZ for jasonr@gnu.org; Tue, 24 Jul 2007 00:30:08 -0400 Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDC2C-0003nU-OW for jasonr@gnu.org; Tue, 24 Jul 2007 00:30:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDC29-0003mg-J7 for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:05 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDC28-0003mH-6m for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDC27-0003mE-WB for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:04 -0400 Received: from rgminet01.oracle.com ([148.87.113.118]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IDC27-00056f-Ie for bug-gnu-emacs@gnu.org; Tue, 24 Jul 2007 00:30:03 -0400 Received: from agmgw1.us.oracle.com (agmgw1.us.oracle.com [152.68.180.212]) by rgminet01.oracle.com (Switch-3.2.4/Switch-3.1.6) with ESMTP id l6O4U0EI027375 for ; Mon, 23 Jul 2007 22:30:00 -0600 Received: from acsmt350.oracle.com (acsmt350.oracle.com [141.146.40.150]) by agmgw1.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id l6O4U09n019835 for ; Mon, 23 Jul 2007 22:30:00 -0600 Received: from dhcp-amer-csvpn-gw2-141-144-73-43.vpn.oracle.com by acsmt350.oracle.com with ESMTP id 3063211161185251335; Mon, 23 Jul 2007 21:28:55 -0700 From: "Drew Adams" To: "Bug-Gnu-Emacs" Date: Mon, 23 Jul 2007 21:28:54 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: Linux 2.4-2.6 Subject: frame parameter menu-bar-lines changes height of frame X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: bug-gnu-emacs-bounces+jasonr=gnu.org@gnu.org Errors-To: bug-gnu-emacs-bounces+jasonr=gnu.org@gnu.org X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-F2S-Spam-Score: -10 Can we please revisit this now that the release is out? > From: Drew Adams Sent: Saturday, June 10, 2006 8:57 AM > To: Emacs-Pretest-Bug > Subject: frame parameter menu-bar-lines changes height of frame > > emacs -Q > > (make-frame '((width . 70)(height . 50))) > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 0))) > (frame-parameters) > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 1))) > (frame-parameters) > > Adding and removing a menu-bar line changes the visible height of the > frame (incorrect), but it does not change the `height' frame > parameter. The correct behavior is that observed for `tool-bar-lines': > neither the visible frame height nor the `height' parameter is > changed. Use (assq 'height (frame-parameters)) to see that the `height' parameter does not change. This was first reported 2.5 years ago. Here is the last bit of discussion about it: > From: Drew Adams Sent: Tuesday, June 13, 2006 11:59 AM > Hi Eli, > Thanks for your explanation. I understand better now. > > I'm fine with this not being fixed before the release. I would > ask that it be fixed soon thereafter, if possible. > > If necessary, we can reopen the discussion of what the behavior > should be. To me, it should be like the tool-bar behavior. If > that's not possible in some contexts, then those contexts can be > treated specially (do the best we can to determine menu-bar height etc.). > > Showing and hiding the menu-bar should not change the frame size > whenever that is avoidable. There is no reason to reduce > everything to the lowest common denominator, if that denominator > is bugged behavior. If the bugged behavior is sometimes > unavoidable, so be it, but let's not use it as the norm. > > Thx - Drew > > ----------------- > > > You've said that the reason to not fix this now or soon is > that fixing it > > would be difficult. Could you explain why menu-bar-lines is > different from > > tool-bar-lines in this respect? > > Because, historically, the menu bar was just a line of text at the > upper edge of the frame (and still is, in the non-toolkit and tty > builds). Tool bar was never an integral number of text lines. > > > The latter works correctly. Couldn't the tool-bar-lines > > implementation (fix) apply also to menu-bar-lines? > > Theoretically, yes. But even the thread you cited (which started > about a different issue, and only touched the menu bar tangentially) > reveals that people are divided on what should be the right behavior. > There are also other complications, IIRC: the size of the menu bar may > not be known with some toolkits, so resizing the text area might be > tricky. > > That is why I don't think we should try to fix this now. The fact > that two years have passed (actually much more, since this issue was > discussed back when Gerd Moellmann was the head maintainer) is > unfortunate, but I think we will shoot in our foot if we add now as > yet additional complication in the display-related code. I fear the > redisplay-dont-pause changes already complicated things enough, and > might prolong the pretest. Emacs had this misfeature for a long time, > and complaints, if there were any, were minimal. I think the fix can > wait a little longer. In GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --cflags -Ic:/gnuwin32/include' _______________________________________________ bug-gnu-emacs mailing list bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs ------------=_1420051023-11522-1-- From unknown Mon Jun 16 23:48:23 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.503 (Entity 5.503) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Juanma Barranquero Subject: bug#14795: closed (Re: frame parameter menu-bar-lines changes height of frame) Message-ID: References: <54A44234.2020305@gmx.at> X-Gnu-PR-Message: they-closed 14795 X-Gnu-PR-Package: emacs Reply-To: 14795@debbugs.gnu.org Date: Wed, 31 Dec 2014 18:37:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1420051024-11522-3" This is a multi-part message in MIME format... ------------=_1420051024-11522-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #25: height parameter inconsistent in new vs existing frames when tool-bar = is enabled which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 14795@debbugs.gnu.org. --=20 25: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D25 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1420051024-11522-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 25-done) by debbugs.gnu.org; 31 Dec 2014 18:36:49 +0000 Received: from localhost ([127.0.0.1]:33940 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6O8W-0002yz-K2 for submit@debbugs.gnu.org; Wed, 31 Dec 2014 13:36:48 -0500 Received: from mout.gmx.net ([212.227.17.22]:60667) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6O8V-0002yp-7O for 25-done@debbugs.gnu.org; Wed, 31 Dec 2014 13:36:47 -0500 Received: from [62.47.141.15] ([62.47.141.15]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0LgqEs-1XSQs02Cu6-00oJPT; Wed, 31 Dec 2014 19:36:42 +0100 Message-ID: <54A44234.2020305@gmx.at> Date: Wed, 31 Dec 2014 19:36:36 +0100 From: martin rudalics MIME-Version: 1.0 To: drew.adams@oracle.com, 25-done@debbugs.gnu.org Subject: Re: frame parameter menu-bar-lines changes height of frame References: BDEIJAFNGDOAGCJIPKPBEEPECFAA.drew.adams@oracle.com Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:bEIE/nTfhiVIoKFTlqr9kGkn9pBSn1VU62FKMv+DugRtIlFrKLa DokACltkqr1Qiv9Nt4iyeynZXkWU6YVCMpHK5Fq3RQO4FOt9iF7Zo6tDjJKfzmFJ71z8Gft 77NviMi9HS4UrbQVIqbxGPvTM6+kGPDYUF3xpAE/JzqVhn4L9X/a6mrw1K4sukhHF5spM4Z U6sfD6QRrnVYieMJukfxA== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 25-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > > emacs -Q > > > > (make-frame '((width . 70)(height . 50))) > > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 0))) > > (frame-parameters) > > (modify-frame-parameters (selected-frame) '((menu-bar-lines . 1))) > > (frame-parameters) > > > > Adding and removing a menu-bar line changes the visible height of the > > frame (incorrect), but it does not change the `height' frame > > parameter. The correct behavior is that observed for `tool-bar-lines': > > neither the visible frame height nor the `height' parameter is > > changed. > > Use (assq 'height (frame-parameters)) to see that the `height' > parameter does not change. This can now be handled on trunk/master by adding 'menu-bar-lines' to `frame-inhibit-implied-resize'. Bug closed. Thanks, martin ------------=_1420051024-11522-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Jul 2013 22:53:25 +0000 Received: from localhost ([127.0.0.1]:58247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UusOx-0002La-HI for submit@debbugs.gnu.org; Thu, 04 Jul 2013 18:53:23 -0400 Received: from eggs.gnu.org ([208.118.235.92]:54032) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UusOm-0002LB-WE for submit@debbugs.gnu.org; Thu, 04 Jul 2013 18:53:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UusOg-00048y-Us for submit@debbugs.gnu.org; Thu, 04 Jul 2013 18:53:07 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-100.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, T_DKIM_INVALID,USER_IN_WHITELIST autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:45825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UusOg-00048q-Ro for submit@debbugs.gnu.org; Thu, 04 Jul 2013 18:53:06 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55748) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UusOf-00016o-Eu for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2013 18:53:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UusOd-00047e-Kx for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2013 18:53:05 -0400 Received: from mail-ee0-x22d.google.com ([2a00:1450:4013:c00::22d]:37926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UusOd-00047P-Eo for bug-gnu-emacs@gnu.org; Thu, 04 Jul 2013 18:53:03 -0400 Received: by mail-ee0-f45.google.com with SMTP id c1so1016810eek.32 for ; Thu, 04 Jul 2013 15:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type; bh=T2guybR3YGkHgCMDhA9upwhPVazvatMS06UhCgI28cg=; b=JHjUVytJo1xtFZQIga9uk4Crc9pH/GgVtQoxKTcUSi9cK3LDS0JcQpccLznkCMw3e5 rKFwyWbkW/Jd3z1XYZgQSURblHLjlzEbzST5wB1rpnEu28QLPBXUtMXvvNGMIjDV4c9j SM74DHOFtrCozrWXvYTncoeosZSJr0YldiLxnEjCEy70kC5x5Ht4yoswNfCcMY906+7+ QagnhQjU3Wr3zZ5vZhwR1WrQVjp8/TOJ8w5Rct4trXQ45pzvSRGtGCgigLV7GLc9BaE8 UHUcdFXP3ykXy46WfDjCF5RDR+hlXxFDESSo+iNIrP2j0nH6KlbG7psxWbvCcdjaXXPT Tcqg== X-Received: by 10.15.25.2 with SMTP id k2mr8796023eeu.99.1372978382527; Thu, 04 Jul 2013 15:53:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.142.4 with HTTP; Thu, 4 Jul 2013 15:52:22 -0700 (PDT) From: Juanma Barranquero Date: Fri, 5 Jul 2013 00:52:22 +0200 Message-ID: Subject: height parameter inconsistent in new vs existing frames when tool-bar is enabled To: Bug-Gnu-Emacs Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.3 (----) Package: emacs This happens since at least 22.1, and I think has been discussed before on emacs-devel, but I've been unable to find the reference. emacs -Q (let ((params '((height . 25)))) (make-frame params) ;; f1 (modify-frame-parameters (make-frame) params)) ;; f2 f1 = 28 lines f2 = 25 lines Adding (tool-bar-lines . 0) to params, both frames are 25 lines. Obviously, when creating the frame Emacs is allowing three additional lines as space for the toolbar. tool-bar-mode defaults to 3 in a newly created frame, at least once it has been displayed: (let ((f (make-frame))) (cons (frame-parameter f 'tool-bar-lines) (progn (sit-for 0) (frame-parameter f 'tool-bar-lines)))) => (1 . 3) Does that happen in all platforms? If so, shouldn't we make the meaning of the height frame parameter consistent in all its uses? ------------=_1420051024-11522-3-- From unknown Mon Jun 16 23:48:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25: frame parameter menu-bar-lines changes height of frame Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 31 Dec 2014 18:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: martin rudalics , 25-done@debbugs.gnu.org Received: via spool by 25-done@debbugs.gnu.org id=D25.142005201913338 (code D ref 25); Wed, 31 Dec 2014 18:54:01 +0000 Received: (at 25-done) by debbugs.gnu.org; 31 Dec 2014 18:53:39 +0000 Received: from localhost ([127.0.0.1]:33984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6OOo-0003T4-OX for submit@debbugs.gnu.org; Wed, 31 Dec 2014 13:53:38 -0500 Received: from userp1040.oracle.com ([156.151.31.81]:35575) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6OOn-0003Sv-2X for 25-done@debbugs.gnu.org; Wed, 31 Dec 2014 13:53:37 -0500 Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id sBVIrZhf017180 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 31 Dec 2014 18:53:36 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by ucsinet22.oracle.com (8.14.5+Sun/8.14.5) with ESMTP id sBVIrZ3t010208 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 31 Dec 2014 18:53:35 GMT Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by userz7022.oracle.com (8.14.5+Sun/8.14.4) with ESMTP id sBVIrYH9010189; Wed, 31 Dec 2014 18:53:34 GMT MIME-Version: 1.0 Message-ID: Date: Wed, 31 Dec 2014 10:53:33 -0800 (PST) From: Drew Adams References: <54A44234.2020305@gmx.at> In-Reply-To: <54A44234.2020305@gmx.at> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) > This can now be handled on trunk/master by adding 'menu-bar-lines' > to `frame-inhibit-implied-resize'. Bug closed. I don't have a version with the fix yet. (I have been unable to use any Emacs versions since mid-October because they break the use of frames in various ways, but I will look into those problems and report them as I narrow things down.) I gather that `frame-inhibit-implied-resize' is a user option. It's great that users can now control the behavior, but I wonder how that helps code and how it fixes the bug reported here. The point of this bug was that `menu-bar-lines' should behave like `tool-bar-lines' does: adding or removing a menu bar, or increasing/decreasing the number of its lines, should not change the visible frame height. If that behavior is only optional, and decided by users, then it sounds like things are not the same as for `tool-bar-lines' and that code cannot depend on the behavior being the same. Anyway, I won't judge the fix until I can check it out. And my guess is that it is an improvement. Thanks for working on this, in any case. From unknown Mon Jun 16 23:48:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#25: frame parameter menu-bar-lines changes height of frame Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Jan 2015 10:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Drew Adams , 25-done@debbugs.gnu.org Received: via spool by 25-done@debbugs.gnu.org id=D25.14201079413788 (code D ref 25); Thu, 01 Jan 2015 10:26:02 +0000 Received: (at 25-done) by debbugs.gnu.org; 1 Jan 2015 10:25:41 +0000 Received: from localhost ([127.0.0.1]:34074 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6cwk-0000yz-MG for submit@debbugs.gnu.org; Thu, 01 Jan 2015 05:25:39 -0500 Received: from mout.gmx.net ([212.227.17.22]:59569) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y6cwi-0000yr-I8 for 25-done@debbugs.gnu.org; Thu, 01 Jan 2015 05:25:37 -0500 Received: from [178.190.166.94] ([178.190.166.94]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lb5Tp-1XQfQY1oan-00kioZ; Thu, 01 Jan 2015 11:25:31 +0100 Message-ID: <54A52094.2070102@gmx.at> Date: Thu, 01 Jan 2015 11:25:24 +0100 From: martin rudalics MIME-Version: 1.0 References: <54A44234.2020305@gmx.at> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:4pouKSrhPgbyf3K5sBT7QAFaFg+TMKfu27TdIqzkfdQ8o/wmE8f AZN6aMgi8QNhQiYhNrknAElgJftpPR26TWzrkQ9QlrFpm5uSb4w5HSkD/3d4SiLrDCMqiiv BIyH8nauVuMAUjj8tFp4UHDTkKhI2tOaWaHzGLt7LdPXZvWm+gBH5WDFSvF9Io+aiAjd0nE 1Devp+ODOHYYgzst9OPsg== X-UI-Out-Filterresults: notjunk:1; X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) > I gather that `frame-inhibit-implied-resize' is a user option. It's > great that users can now control the behavior, but I wonder how that > helps code and how it fixes the bug reported here. Please refrain from calling this a bug. It's a behavior you dislike and we can try to modify it in your sense. But let's do that in a minimally invasive fashion so other users don't get annoyed by our modifications. > The point of > this bug was that `menu-bar-lines' should behave like `tool-bar-lines' > does: adding or removing a menu bar, or increasing/decreasing the > number of its lines, should not change the visible frame height. For graphical displays now the following hold: If a user adds both `menu-bar-lines' and `tool-bar-lines' to `frame-inhibit-implied-resize' or the latter is t or the frame is either maximized or fullscreen, then toggling either `menu-bar-mode' or `tool-bar-mode' conceptually do not change the visible frame height. If neither `menu-bar-lines' and `tool-bar-lines' are members of `frame-inhibit-implied-resize' and the latter is not t and the frame is neither maximized nor fullscreen, then toggling either `menu-bar-mode' or `tool-bar-mode' conceptually do change the visible frame height. And this holds for Gtk just as for Windows. > If that behavior is only optional, and decided by users, then it > sounds like things are not the same as for `tool-bar-lines' and > that code cannot depend on the behavior being the same. Code can always read the value of `frame-inhibit-implied-resize' as well as the maximized/fullscreen status of a frame. martin