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 14:41:13 -0700 Message-ID: References: <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 1347313291 18106 80.91.229.3 (10 Sep 2012 21:41:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2012 21:41:31 +0000 (UTC) Cc: 12406@debbugs.gnu.org To: "'Stefan Monnier'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 10 23:41:33 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 1TBBjY-00079R-Pn for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 23:41:33 +0200 Original-Received: from localhost ([::1]:42731 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBBjV-00067g-EB for geb-bug-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 17:41:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45642) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBBjS-00067Q-NL for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 17:41:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBBjR-0007mH-Kd for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 17:41:26 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43335) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBBjR-0007mD-Hd for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 17:41:25 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TBBk1-0004et-TD for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2012 17:42:01 -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 21:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12406 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12406-submit@debbugs.gnu.org id=B12406.134731331817898 (code B ref 12406); Mon, 10 Sep 2012 21:42:01 +0000 Original-Received: (at 12406) by debbugs.gnu.org; 10 Sep 2012 21:41:58 +0000 Original-Received: from localhost ([127.0.0.1]:52881 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBBjx-0004ec-I4 for submit@debbugs.gnu.org; Mon, 10 Sep 2012 17:41:57 -0400 Original-Received: from acsinet15.oracle.com ([141.146.126.227]:51145) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TBBjv-0004eV-TT for 12406@debbugs.gnu.org; Mon, 10 Sep 2012 17:41:56 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q8ALfG2N018254 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Sep 2012 21:41:17 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q8ALfFb4003229 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 10 Sep 2012 21:41:16 GMT Original-Received: from abhmt117.oracle.com (abhmt117.oracle.com [141.146.116.69]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q8ALfFpX010414; Mon, 10 Sep 2012 16:41:15 -0500 Original-Received: from dradamslap1 (/130.35.178.248) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 10 Sep 2012 14:41:15 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac2PlG4ty2aFL4JkQ2eIlkqzksMobwABvRcw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] 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:64083 Archived-At: > The core of the problem is that menu-bar-mode is global, whereas the > presence/absence of a menu-bar is actually a frame property (and it's > important to me that it be so, because I have some frames with > a menu-bar and some without). I agree. The frame property should override what the mode claims - as it does. > So `menu-bar-mode' is a lie. That was my point. Can we fix the doc a bit to provide a slightly clearer view - e.g., mention that the frame parameter takes precedence? It's OK to say that the mode affects existing and future frames, but for the future part it should probably say "unless overridden by frame parameter `menu-bar-lines'", or some such. That's what I meant. > One possible fix is to make menu-bar-mode into a frame-local mode, > so calling menu-bar-mode would only affect the > current frame (and maybe also the future frames) but not the other > existing frames. To me, that would be bad - not helpful at all. A user should be able, as now, to set the mode and have it (1) update all existing frames and (b) affect future frames by setting the default behavior, i.e., unless overridden. I personally have not needed to prevent the mode change from affecting any particular frame. But if you did need to have some existing frame prevent the mode change from affecting it, then we could introduce a way to specify that. E.g., a `menu-bar-lines' value of, say, a cons (N keep). So a value of (menu-bar-lines 1 keep)) would keep one line and be unaffected by mode changes. Another possibility (orthogonal) would be to let the prefix arg of `menu-bar-mode' do double duty, to optionally affect only the current frame. Dunno. But I would not want that command changed to systematically affect only the current frame.