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: bug#670: bug#1077: 23.0.60; x-create-frame: (wrong-type-argument number-or-marker-p nil) Date: Sun, 28 Nov 2010 15:12:53 +0100 Message-ID: <4CF26365.80803@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> <4CF225FA.4080505@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 1290953730 32246 80.91.229.12 (28 Nov 2010 14:15:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Nov 2010 14:15:30 +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 Sun Nov 28 15:15:26 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 1PMi2E-0001O3-7t for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Nov 2010 15:15:22 +0100 Original-Received: from localhost ([127.0.0.1]:36507 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMi2D-0004Ij-KK for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Nov 2010 09:15:21 -0500 Original-Received: from [140.186.70.92] (port=50968 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMi1p-00047J-6m for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2010 09:14:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMi1n-0001Ep-Q3 for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2010 09:14:57 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMi1n-0001El-GN for bug-gnu-emacs@gnu.org; Sun, 28 Nov 2010 09:14:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1PMhv8-0006hs-1q; Sun, 28 Nov 2010 09:08: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: Sun, 28 Nov 2010 14:08: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.129095324625725 (code B ref 1077); Sun, 28 Nov 2010 14:08:02 +0000 Original-Received: (at 1077) by debbugs.gnu.org; 28 Nov 2010 14:07:26 +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 1PMhuY-0006gs-69 for submit@debbugs.gnu.org; Sun, 28 Nov 2010 09:07:26 -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 1PMhuV-0006gf-Gs for 1077@debbugs.gnu.org; Sun, 28 Nov 2010 09:07:25 -0500 Original-Received: (qmail invoked by alias); 28 Nov 2010 14:12:53 -0000 Original-Received: from 62-47-46-250.adsl.highway.telekom.at (EHLO [62.47.46.250]) [62.47.46.250] by mail.gmx.net (mp054) with SMTP; 28 Nov 2010 15:12:53 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+z77spSJqzF4Cj9/M3FCUak+q4Oe1P8co27f9Gde YnwXNqAFPqBqwN 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: Sun, 28 Nov 2010 09:08: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:41958 Archived-At: >> The menu-bar-lines indications appear inconsistent for stand-alone >> minibuffer frames. If I do >> >> (let ((frame (make-frame '((minibuffer . only))))) >> (frame-parameter frame 'menu-bar-lines)) >> >> the frame I create doesn't have a menubar but the frame parameter says >> there's one such line. > > Can you see how this inconsistency could explain the (> nil 0) thing > that burps? When there's no menubar, the menu-bar-lines parameter > should be zero, not nil, right? Not from this observation whose purpose was only to point at the inconsistency. But from Nick's fix cited earlier I deduce that (frame-parameter ... 'menu-bar-lines) apparently can return nil. Looking at dframe.el I find (let* ((mh (dframe-frame-parameter dframe-attached-frame 'menu-bar-lines)) ... (list (cons 'height (+ (or mh 0) (frame-height))))))) so somehow mh can be nil - IIUC the value returned by `dframe-frame-parameter' is that of `frame-parameter'. So one would have to look at things like (define-key menu-bar-showhide-menu [menu-bar-mode] `(menu-item ,(purecopy "Menu-bar") toggle-menu-bar-mode-from-frame :help ,(purecopy "Turn menu-bar on/off") :button (:toggle . (> (frame-parameter nil 'menu-bar-lines) 0)))) and friends whether they could be the culprits. But it's also possible that Drew's code calls `frame-parameter'. martin