From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.bugs Subject: bug#1077: 23.0.60; x-create-frame: (wrong-type-argument number-or-marker-p nil) Date: Tue, 30 Nov 2010 18:05:03 +0100 Message-ID: <4CF52EBF.6020107@gmx.at> References: <003e01c9257c$a385d800$0200a8c0@us.oracle.com> <009701c9263f$9cce7120$0200a8c0@us.oracle.com> <000001c94cc1$e10e9c40$0200a8c0@us.oracle.com> <8F1F8998D60341099C4204B7BDD8AD4F@us.oracle.com> <96BC00F728B94AC18A15EA95B66C5248@us.oracle.com> <83zksv5g7j.fsf@gnu.org> <0A475933984F4CDA855D91C8B7639E3B@us.oracle.com> <83fwum5xzk.fsf@gnu.org> <9F24875655894485A414CD785D95725B@us.oracle.com> <83ipzh9qze.fsf@gnu.org> <4CF386C9.5070909@gmx.at> <8362vg9ctt.fsf@gnu.org> <4CF409A3.1030906@gmx.at> <83y68b96c5.fsf@gnu.org> <71C125BECEDF4C5E9F703E5743F76893@us.oracle.com> <83r5e38nhg.fsf@gnu.org> <4CF4AE39.4050007@gmx.at> <4CF503A5.3030404@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291197147 11738 80.91.229.12 (1 Dec 2010 09:52:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 09:52:27 +0000 (UTC) Cc: 1077@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 01 10:52:23 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNjMM-0001Mu-6h for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 10:52:22 +0100 Original-Received: from localhost ([127.0.0.1]:48854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNjML-0005zw-3L for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 04:52:21 -0500 Original-Received: from [140.186.70.92] (port=43550 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNe6L-0006UT-V7 for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 23:15:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNTnB-0004lm-Ic for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 12:15:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54388) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNTnB-0004kl-ED for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 12:15:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PNTYh-0008Rm-FM; Tue, 30 Nov 2010 12:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 30 Nov 2010 17:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1077 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 1077-submit@debbugs.gnu.org id=B1077.129113637232411 (code B ref 1077); Tue, 30 Nov 2010 17:00:03 +0000 Original-Received: (at 1077) by debbugs.gnu.org; 30 Nov 2010 16:59:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PNTYA-0008Qg-Pp for submit@debbugs.gnu.org; Tue, 30 Nov 2010 11:59:31 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1PNTY8-0008QU-Be for 1077@debbugs.gnu.org; Tue, 30 Nov 2010 11:59:29 -0500 Original-Received: (qmail invoked by alias); 30 Nov 2010 17:05:04 -0000 Original-Received: from 62-47-39-151.adsl.highway.telekom.at (EHLO [62.47.39.151]) [62.47.39.151] by mail.gmx.net (mp060) with SMTP; 30 Nov 2010 18:05:04 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19zLjASnzVz8rcmUrsB2hpFfRPWwBUQ91LR+RF7Lv fpBv37xwYM1f2A User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 30 Nov 2010 12:00:03 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:42046 Archived-At: >> The only difference I can think of is that nil stands for "this frame >> cannot have a menubar" and zero for "the menubar has been temporarily >> disabled". > > What is the difference between these two? What does "cannot have a > menu bar" mean in practice? Just wondering. Minibuffer-only frames don't have a menubar by design. Surprisingly they have (menu-bar-lines . 1) here. >> But if not entry for `menu-bar-lines' exists, calling >> (frame-parameter ... 'menu-bar-lines) returns nil. > > That's not guaranteed to be true. For the menu-bar-lines parameter it is true AFAICT. > You will see in the implementation > of frame-parameter and frame-parameters that we return values for some > frame parameters without ever looking at the frame's parameter alist. > It's true that frame-parameter actually does look in frame's parameter > alist when the value of menu-bar-lines is requested, but > frame-parameters does not, at least for TTYs. Do you mean where it goes for the menu_bar_lines entry from the frame structure via FRAME_MENU_BAR_LINES? I suppose this is the only part of the menu-bar handling code that is still correct. > That said, I agree that any code which is called during frame creation > should be able to avoid signaling an error. I still don't get it why a condition_case can't handle such an error. >> Probably for using `menu-bar-lines' in a uniform manner instead of a >> combination of `menu-bar-mode' and `menu-bar-lines'. > > If so, this is a thing of the past, as we no longer need > menu-bar-mode, menu-bar-lines alone is enough, right? Currently, menu-bar alone is enough ;-) > Even funnier, the ELisp manual shows an example of building a menu bar > with two lines, see the node "Menu Bar" there. It used to work with Emacs' own menubars IIRC. martin