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 15:01:09 +0100 Message-ID: <4CF503A5.3030404@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> 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 1291207121 24273 80.91.229.12 (1 Dec 2010 12:38:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 12:38:41 +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 13:38:37 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 1PNlxC-0004Pq-8c for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 13:38:34 +0100 Original-Received: from localhost ([127.0.0.1]:44112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNlxB-0003rR-9U for geb-bug-gnu-emacs@m.gmane.org; Wed, 01 Dec 2010 07:38:33 -0500 Original-Received: from [140.186.70.92] (port=36241 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNeYD-0002MD-8U for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 23:44:37 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNQz0-0004Jm-2O for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 09:15:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35588) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNQz0-0004Hj-0H for bug-gnu-emacs@gnu.org; Tue, 30 Nov 2010 09:15:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PNQgc-0004L8-DT; Tue, 30 Nov 2010 08:56:02 -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 13:56:02 +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.129112533816637 (code B ref 1077); Tue, 30 Nov 2010 13:56:02 +0000 Original-Received: (at 1077) by debbugs.gnu.org; 30 Nov 2010 13:55:38 +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 1PNQgD-0004KI-B7 for submit@debbugs.gnu.org; Tue, 30 Nov 2010 08:55:37 -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 1PNQg9-0004K2-BO for 1077@debbugs.gnu.org; Tue, 30 Nov 2010 08:55:34 -0500 Original-Received: (qmail invoked by alias); 30 Nov 2010 14:01:09 -0000 Original-Received: from 62-47-50-119.adsl.highway.telekom.at (EHLO [62.47.50.119]) [62.47.50.119] by mail.gmx.net (mp018) with SMTP; 30 Nov 2010 15:01:09 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1991tMgiOd9Rslsaz1VRBeHPm8XeBreHDqK6FBxag kwEjgQbFzgEp18 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 08:56:02 -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:42052 Archived-At: > Is it different from (menu-bar-lines . 0) ? 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". But if not entry for `menu-bar-lines' exists, calling (frame-parameter ... 'menu-bar-lines) returns nil. Hence, the caller should be prepared to deal with a return value of nil anyway (ideally using `numberp' since the call might return any value). > If not, do you happen to > know why are we using two different conventions to convey the same > information? Probably for using `menu-bar-lines' in a uniform manner instead of a combination of `menu-bar-mode' and `menu-bar-lines'. The most interesting thing about this is that on GNU systems Emacs never uses a value greater than 1 (if I correctly recall a discussion about this). And on Windows any calculations with a value greater than 1 are broken anway. So using a boolean `menu-bar' should suffice. martin