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: Mon, 29 Nov 2010 21:14:27 +0100 Message-ID: <4CF409A3.1030906@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> 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 1291061712 30970 80.91.229.12 (29 Nov 2010 20:15:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 29 Nov 2010 20:15:12 +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 Mon Nov 29 21:15:08 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 1PNA7v-0006MY-O0 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Nov 2010 21:15:08 +0100 Original-Received: from localhost ([127.0.0.1]:53436 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNA7u-0006ZW-QM for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Nov 2010 15:15:06 -0500 Original-Received: from [140.186.70.92] (port=55254 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNA7n-0006Xw-KH for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2010 15:15:00 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNA7m-00054U-KV for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2010 15:14:59 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNA7m-00054Q-Ho for bug-gnu-emacs@gnu.org; Mon, 29 Nov 2010 15:14:58 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PNA22-0004lj-Qy; Mon, 29 Nov 2010 15:09: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: Mon, 29 Nov 2010 20:09: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.129106133918321 (code B ref 1077); Mon, 29 Nov 2010 20:09:02 +0000 Original-Received: (at 1077) by debbugs.gnu.org; 29 Nov 2010 20:08:59 +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 1PNA1y-0004lR-2Z for submit@debbugs.gnu.org; Mon, 29 Nov 2010 15:08:58 -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 1PNA1v-0004lC-Gc for 1077@debbugs.gnu.org; Mon, 29 Nov 2010 15:08:57 -0500 Original-Received: (qmail invoked by alias); 29 Nov 2010 20:14:28 -0000 Original-Received: from 62-47-32-243.adsl.highway.telekom.at (EHLO [62.47.32.243]) [62.47.32.243] by mail.gmx.net (mp022) with SMTP; 29 Nov 2010 21:14:28 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+3Iw5702i3+wdqUeSDkDWURCJquB2IUiJLi59tVK 8hJfKGnyiMBHqO User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <8362vg9ctt.fsf@gnu.org> X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 29 Nov 2010 15:09: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:42008 Archived-At: > The frame we are creating is not yet ready, and is certainly not yet > the selected frame! Isn't that a bug? shouldn't we use > menu-updating-frame instead of nil, in the above call to > frame-parameter? I think so. Hopefully `menu-updating-frame' has the correct parameters in place. > Sorry, I don't follow: are you saying that we must not evaluate Lisp > code inside `define-key', or are you saying something else? I thought about wrapping the Lisp code so that the call fails more gracefully. Crashing seems a bit too harsh to me, at least for such a trivial reason. >> (2) The menu-bar define-key operations to toggle `menu-bar-mode' and >> `tool-bar-mode' do not take into account that the values of the >> respective frame parameter can be nil. > > As you see above, this happens for the minibuffer frame. Can you > explain how we get `(menu-bar-lines)' instead of having the usual > `(menu-bar-lines . 1)' or `(menu-bar-lines . 0)' in the parameters > alist of the minibuffer frame? Is that normal, or is that another > bug? IIRC it's somewhere documented that `menu-bar-lines' and `tool-bar-lines' can be nil. And a user can always remove a parameter completely so any frame parameter can be nil. >> (3) Frame parameters of `menu-bar-lines' and actual appearance of a >> menubar are inconsistent for minibuffer-only frames. Though unrelated this strikes me as the strangest bug of them all. It means that we can't rely on the actual value of a frame parameter even if it's non-nil. martin