From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#12406: 24.2.50; frame parameter `menu-bar-lines' and `menu-bar-mode' Date: Mon, 10 Sep 2012 10:59:22 -0700 Message-ID: <54FF7233AE2E4AF39FEC5B688D67341E@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1347300042 3206 80.91.229.3 (10 Sep 2012 18:00:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 18:00:42 +0000 (UTC) To: 12406@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 20:00:44 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TB8Hr-0001fo-DW for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 20:00:43 +0200 Original-Received: from localhost ([::1]:57160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8Ho-0002Yl-3k for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 14:00:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8Hc-0002Xg-CC for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 14:00:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB8Ha-00085j-R5 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 14:00:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8Ha-00085b-NE for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 14:00:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TB8IA-0007Bb-73 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Sep 2012 18:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 12406 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.134730001327563 (code B ref -1); Mon, 10 Sep 2012 18:01:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 10 Sep 2012 18:00:13 +0000 Original-Received: from localhost ([127.0.0.1]:52669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB8HM-0007AV-NE for submit@debbugs.gnu.org; Mon, 10 Sep 2012 14:00:13 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60746) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TB8HJ-0007AN-Qa for submit@debbugs.gnu.org; Mon, 10 Sep 2012 14:00:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB8Gh-0007O7-TN for submit@debbugs.gnu.org; Mon, 10 Sep 2012 13:59:33 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:37457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8Gh-0007O1-PD for submit@debbugs.gnu.org; Mon, 10 Sep 2012 13:59:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8Gg-0001lN-IS for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 13:59:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TB8Ge-0007NS-CB for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 13:59:30 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:16507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TB8Ge-0007Mh-5a for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 13:59:28 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8AHxOYM002574 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Sep 2012 17:59:25 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8AHxO8b008391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 10 Sep 2012 17:59:24 GMT Original-Received: from abhmt107.oracle.com (abhmt107.oracle.com [141.146.116.59]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8AHxNG6028695 for ; Mon, 10 Sep 2012 12:59:23 -0500 Original-Received: from dradamslap1 (/130.35.178.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 Sep 2012 10:59:23 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: Ac2PfgHwRTq4vEQfQYi6uArMzO135g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:64066 Archived-At: emacs -Q (setq special-display-frame-alist '((menu-bar-lines . 1)) special-display-regexps '("[ ]?[*][^*]+[*]")) (menu-bar-mode 0) (describe-variable 'menu-bar-mode) You will see that: * Buffer *Help* is displayed in its own frame. * It says that menu-bar-mode is nil (which it is). * The frame has a menu bar. I'm not sure what should be done about this, but it is confusing, at the least. When the mode is disabled the menu bar is (generally) not supposed to be present. Command `menu-bar-mode' "applies to all frames that exist and frames to be created in the future." That strong statement certainly does not match not the behavior in this case. Of course, someone will argue, correctly, that when frame *Help* is created that is done with an explicit `menu-bar-lines' setting, which should override the mode behavior. That's why I say that I'm not sure what, if anything, should be done about this. But the behavior is a bit confusing. I don't have any great suggestion. Perhaps something more could be done wrt the doc, at least. For example, the doc string of the mode command could perhaps mention the frame parameter, and vice versa, explaining that the mode is overridden by the frame parameter. The doc for `menu-bar-mode' should perhaps not claim so strongly that it affects all future frames, since that is clearly not so. FYI - This came up because I received a bug report that actually had to do with the VERY OLD bug that trying to enlarge a frame with a wide menu bar actually shrinks the frame (horizontally, vertically). Suspecting that old bug, I tried to get a repro recipe. The user turned off menu-bar-mode as shown above, but the symptom persisted. The user didn't tell me that a menu bar was actually present, so it took a while to figure out what the problem really was. That OLD bug has never been fixed, though Emacs Dev has expressed a will to fix it at various times. Here are some references to this old bug: 1. Bug #456. 2. emacs-devel thread in 2006-06 and 2007-07: "frame parameter menu-bar-lines changes height of frame". There were also older discussions than that, but I don't have pointers to them. I, for one, would like to see that old bug fixed. I, like some others, use keys to incrementally enlarge/shrink frames horizontally/vertically, and whenever the frame width is less than the menu-bar width, the bug rears its ugly head. It is my wish that that longstanding bug be taken off the wishlist and treated normally - and hopefully fixed finally. In GNU Emacs 24.2.50.1 (i386-mingw-nt5.1.2600) of 2012-09-02 on MARVIN Bzr revision: 109861 eggert@cs.ucla.edu-20120902171035-7mzihil3xd6bjfiy Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2'