From unknown Sat Aug 16 23:46:47 2025 X-Loop: don@donarmstrong.com Subject: bug#670: 23.0.60; x-create-frame gives wrong-type-argument error Reply-To: "Drew Adams" , 670@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 07 Aug 2008 22:35:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 670 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121814807716924 (code B ref -1); Thu, 07 Aug 2008 22:35:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-5.8 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Aug 2008 22:27:57 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m77MRrgw016918 for ; Thu, 7 Aug 2008 15:27:55 -0700 Received: from mx10.gnu.org ([199.232.76.166]:45934) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KRDwX-0004Wh-Fo for emacs-pretest-bug@gnu.org; Thu, 07 Aug 2008 18:26:49 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KRDxU-0001vF-Oh for emacs-pretest-bug@gnu.org; Thu, 07 Aug 2008 18:27:52 -0400 Received: from agminet01.oracle.com ([141.146.126.228]:20778) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KRDxU-0001uz-C8 for emacs-pretest-bug@gnu.org; Thu, 07 Aug 2008 18:27:48 -0400 Received: from agmgw2.us.oracle.com (agmgw2.us.oracle.com [152.68.180.213]) by agminet01.oracle.com (Switch-3.2.4/Switch-3.1.7) with ESMTP id m77MRjE6010892 for ; Thu, 7 Aug 2008 17:27:46 -0500 Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by agmgw2.us.oracle.com (Switch-3.2.0/Switch-3.2.0) with ESMTP id m77IpWSZ021272 for ; Thu, 7 Aug 2008 16:27:44 -0600 Received: from inet-141-146-46-1.oracle.com by acsmt357.oracle.com with ESMTP id 11308725141218148057; Thu, 07 Aug 2008 17:27:37 -0500 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 07 Aug 2008 15:27:37 -0700 From: "Drew Adams" To: Date: Thu, 7 Aug 2008 15:27:42 -0700 Message-ID: <003501c8f8dc$cee92aa0$c2b22382@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: Acj43M6c6FVoH82uQ4q5RM+q8kZvhg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 Can't really give a precise recipe for this. I have a special-display function that when called can lead to this: Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >(nil 0) x-create-frame(((visibility) (width . 100) (width . 80) (height . 14) (menu-bar-lines . 1) (top . 0) (left . 0) (unsplittable . t) (user-position . t) (vertical-scroll-bars . right) (height . 14) (width . 80) (unsplittable . t))) x-create-frame-with-faces(((background-color . "LavenderBlush2") (mouse-color . "VioletRed") (cursor-color . "VioletRed") (width . 100) (font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1") (width . 80) (height . 14) (mouse-color . "Yellow") (cursor-color . "Yellow") (menu-bar-lines . 1) (foreground-color . "Black") (background-color . "LightSteelBlue") (top . 0) (left . 0) (unsplittable . t) (user-position . t) (vertical-scroll-bars . right) (height . 14) (width . 80) (unsplittable . t))) make-frame(((background-color . "LavenderBlush2") (mouse-color . "VioletRed") (cursor-color . "VioletRed") (width . 100) (font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1") (width . 80) (height . 14) (mouse-color . "Yellow") (cursor-color . "Yellow") (menu-bar-lines . 1) (foreground-color . "Black") (background-color . "LightSteelBlue") (top . 0) (left . 0) (unsplittable . t) (user-position . t) (vertical-scroll-bars . right) (height . 14) (width . 80) (unsplittable . t))) special-display-popup-frame(# ((background-color . "LavenderBlush2") (mouse-color . "VioletRed") (cursor-color . "VioletRed") (width . 100))) 1on1-display-*Completions*-frame(# ((background-color . "LavenderBlush2") (mouse-color . "VioletRed") (cursor-color . "VioletRed") (width . 100))) apply(1on1-display-*Completions*-frame # ((background-color . "LavenderBlush2") (mouse-color . "VioletRed") (cursor-color . "VioletRed") (width . 100))) special-display-popup-frame(# (1on1-display-*Completions*-frame ((background-color . "LavenderBlush2") (mouse-color . "VioletRed") (cursor-color . "VioletRed") (width . 100)))) ... I can't trace `x-create-frame', so I don't know what `>' test it is doing here, but perhaps someone else can figure it out. Presumably, what is happening is that `x-create-frame-with-faces' adds a null `visibility' frame parameter, and then something in `x-create-frame' tries to compare that nil value with 0 using `>'. HTH. In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600) of 2008-08-01 on LENNART-69DE564 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/g/include -fno-crossjumping' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default-enable-multibyte-characters: t Major mode: Dired by name Minor modes in effect: tooltip-mode: t tool-bar-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. From unknown Sat Aug 16 23:46:47 2025 X-Loop: don@donarmstrong.com Subject: bug#670: 23.0.60; x-create-frame gives wrong-type-argument error Reply-To: Chong Yidong , 670@debbugs.gnu.org Resent-From: Chong Yidong Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 15 Oct 2008 20:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 670 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: moreinfo Received: via spool by 670-submit@emacsbugs.donarmstrong.com id=B670.12241015648818 (code B ref 670); Wed, 15 Oct 2008 20:20:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 670) by emacsbugs.donarmstrong.com; 15 Oct 2008 20:12:44 +0000 Received: from cyd.mit.edu (CYD.MIT.EDU [18.115.2.24]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9FKCfGS008812 for <670@emacsbugs.donarmstrong.com>; Wed, 15 Oct 2008 13:12:43 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id A281F57E053; Wed, 15 Oct 2008 16:12:47 -0400 (EDT) From: Chong Yidong To: "Drew Adams" Cc: 670@debbugs.gnu.org Date: Wed, 15 Oct 2008 16:12:47 -0400 Message-ID: <874p3d8vnk.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > Can't really give a precise recipe for this. I have a special-display > function that when called can lead to this: > > Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) > >(nil 0) Please run Emacs under a debugger, set a breakpoint at `error', trigger the error, and get a backtrace. Thanks. From unknown Sat Aug 16 23:46:47 2025 X-Loop: don@donarmstrong.com Subject: bug#670: bug#1077: 23.0.60;x-create-frame: (wrong-type-argument number-or-marker-p nil) Reply-To: "Drew Adams" , 670@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 22 Nov 2008 16:55:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 670 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: moreinfo Received: via spool by 670-submit@emacsbugs.donarmstrong.com id=B670.122737240127827 (code B ref 670); Sat, 22 Nov 2008 16:55:05 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-6.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, UNPARSEABLE_RELAY autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 670) by emacsbugs.donarmstrong.com; 22 Nov 2008 16:46:41 +0000 Received: from rgminet12.oracle.com (rcsinet12.oracle.com [148.87.113.124]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAMGkXQb027814; Sat, 22 Nov 2008 08:46:34 -0800 Received: from rgminet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAMGkHJE029013 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 22 Nov 2008 16:46:18 GMT Received: from acsmt706.oracle.com (acsmt706.oracle.com [141.146.40.84]) by rgminet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id mAMGkSPv029712; Sat, 22 Nov 2008 16:46:30 GMT Received: from dradamslap1 (/24.23.165.218) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sat, 22 Nov 2008 08:46:22 -0800 From: "Drew Adams" To: <1077@debbugs.gnu.org>, , <670@debbugs.gnu.org> References: <003e01c9257c$a385d800$0200a8c0@us.oracle.com> <009701c9263f$9cce7120$0200a8c0@us.oracle.com> Date: Sat, 22 Nov 2008 08:46:33 -0800 Message-ID: <000001c94cc1$e10e9c40$0200a8c0@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <009701c9263f$9cce7120$0200a8c0@us.oracle.com> Thread-Index: AcklfKMogyzuwpKNQfi7bBVuuBtQ1gAwkUgQCaB5gbA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-Source-IP: acsmt706.oracle.com [141.146.40.84] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010207.49283760.0073:SCFSTAT928724,ss=1,fgs=0 I don't think I received Yidong's reply of 2008-10-15 for some reason, but I see it now in the bug database: > Please run Emacs under a debugger, set a breakpoint at `error', > trigger the error, and get a backtrace. I don't know how to do that, and I do not have the C source code anyway, in general. I looked at the latest w32fns.c in CVS, however, trying to find a `>' test in x-create-frame, but I didn't make any progress. I even tried diffing with the Emacs 22 version of w32fns.c (which works), but there were too many diffs to see what might be the problem. Can't someone please check the x-create-frame code and see where the problem might be? I'm afraid that the Lisp backtrace I sent is all I can offer. This is happening in a call to special-display-popup-frame. From unknown Sat Aug 16 23:46:47 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#670: bug#1077: 23.0.60;x-create-frame: (wrong-type-argument number-or-marker-p nil) Reply-To: "Drew Adams" , 670@debbugs.gnu.org Resent-From: "Drew Adams" Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 06 Oct 2009 16:25:16 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 670 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: moreinfo Received: via spool by 670-submit@emacsbugs.donarmstrong.com id=B670.125484600227817 (code B ref 670); Tue, 06 Oct 2009 16:25:16 +0000 Received: (at 670) by emacsbugs.donarmstrong.com; 6 Oct 2009 16:20:02 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.9 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from rgminet12.oracle.com (rcsinet12.oracle.com [148.87.113.124]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n96GK03Z027777; Tue, 6 Oct 2009 09:20:01 -0700 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rgminet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n96GJXYK000322 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 6 Oct 2009 16:19:34 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n96EUtcg000713; Tue, 6 Oct 2009 16:20:40 GMT Received: from abhmt021.oracle.com by acsmt354.oracle.com with ESMTP id 20235833411254845963; Tue, 06 Oct 2009 09:19:23 -0700 Received: from dradamslap1 (/141.144.169.34) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 06 Oct 2009 09:19:23 -0700 From: "Drew Adams" To: <1077@debbugs.gnu.org>, , <670@debbugs.gnu.org> References: <003e01c9257c$a385d800$0200a8c0@us.oracle.com><009701c9263f$9cce7120$0200a8c0@us.oracle.com> <000001c94cc1$e10e9c40$0200a8c0@us.oracle.com> Date: Tue, 6 Oct 2009 09:19:42 -0700 Message-ID: <8F1F8998D60341099C4204B7BDD8AD4F@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <000001c94cc1$e10e9c40$0200a8c0@us.oracle.com> Thread-Index: AcklfKMogyzuwpKNQfi7bBVuuBtQ1gAwkUgQCaB5gbA+d9nMwA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4ACB6E27.00AE:SCFMA4539814,ss=1,fgs=0 > From: Drew Adams Sent: Saturday, November 22, 2008 8:47 AM > I don't think I received Yidong's reply of 2008-10-15 for > some reason, but I see it now in the bug database: > > > Please run Emacs under a debugger, set a breakpoint at `error', > > trigger the error, and get a backtrace. > > I don't know how to do that, and I do not have the C source > code anyway, in general. > > I looked at the latest w32fns.c in CVS, however, trying to > find a `>' test in x-create-frame, but I didn't make any > progress. I even tried diffing with the Emacs 22 version of > w32fns.c (which works), but there were too many diffs to see > what might be the problem. > > Can't someone please check the x-create-frame code and see > where the problem might be? I'm afraid that the Lisp > backtrace I sent is all I can offer. This is > happening in a call to special-display-popup-frame. I am still seeing this in 23.1 (the release): In GNU Emacs 23.1.1 (i386-mingw-nt5.1.2600) of 2009-07-29 on SOFT-MJASON Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4)' Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >(nil 0) x-create-frame(((visibility) (width . 80) (height . 14) (menu-bar-lines . 1) (top . 0) (left . 0) (unsplittable . t) (user-position . t) (vertical-scroll-bars . right) (height . 14) (width . 80) (unsplittable . t))) x-create-frame-with-faces(((font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1") (width . 80) (height . 14) (mouse-color . "Yellow") (cursor-color . "Yellow") (menu-bar-lines . 1) (foreground-color . "Black") (background-color . "LightSteelBlue") (top . 0) (left . 0) (unsplittable . t) (user-position . t) (vertical-scroll-bars . right) (height . 14) (width . 80) (unsplittable . t))) make-frame(((font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1") (width . 80) (height . 14) (mouse-color . "Yellow") (cursor-color . "Yellow") (menu-bar-lines . 1) (foreground-color . "Black") (background-color . "LightSteelBlue") (top . 0) (left . 0) (unsplittable . t) (user-position . t) (vertical-scroll-bars . right) (height . 14) (width . 80) (unsplittable . t))) special-display-popup-frame(# nil) display-buffer(#) mouse-drag-region((down-mouse-1 (# 1 (391 . 18) -136706397 nil 1 (43 . 0) nil (391 . 18) (9 . 15)))) call-interactively(mouse-drag-region nil nil) Can no one check the x-create-frame code to see what the problem might be? I'm using a standalone minibuffer frame. From unknown Sat Aug 16 23:46:47 2025 X-Loop: help-debbugs@gnu.org Subject: bug#670: bug#1077: 23.0.60; x-create-frame: (wrong-type-argument number-or-marker-p nil) Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 27 Nov 2010 02:47:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 670 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo To: <1077@debbugs.gnu.org>, <1077@debbugs.gnu.org>, , <670@debbugs.gnu.org> Received: via spool by 670-submit@debbugs.gnu.org id=B670.129082601530671 (code B ref 670); Sat, 27 Nov 2010 02:47:03 +0000 Received: (at 670) by debbugs.gnu.org; 27 Nov 2010 02:46:55 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMAoN-0007yc-9z for submit@debbugs.gnu.org; Fri, 26 Nov 2010 21:46:51 -0500 Received: from rcsinet10.oracle.com ([148.87.113.121]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMAoL-0007yK-EE; Fri, 26 Nov 2010 21:46:50 -0500 Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id oAR2qEnZ014381 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 27 Nov 2010 02:52:15 GMT Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id oAR2qDPv019308; Sat, 27 Nov 2010 02:52:14 GMT Received: from abhmt020.oracle.com by acsmt355.oracle.com with ESMTP id 809076291290826321; Fri, 26 Nov 2010 18:52:01 -0800 Received: from dradamslap1 (/10.159.220.70) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 26 Nov 2010 18:52:01 -0800 From: "Drew Adams" References: <003e01c9257c$a385d800$0200a8c0@us.oracle.com><009701c9263f$9cce7120$0200a8c0@us.oracle.com><000001c94cc1$e10e9c40$0200a8c0@us.oracle.com> <8F1F8998D60341099C4204B7BDD8AD4F@us.oracle.com> Date: Fri, 26 Nov 2010 18:52:09 -0800 Message-ID: <96BC00F728B94AC18A15EA95B66C5248@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <8F1F8998D60341099C4204B7BDD8AD4F@us.oracle.com> Thread-Index: AcklfKMogyzuwpKNQfi7bBVuuBtQ1gAwkUgQCaB5gbA+d9nMwFHOYZLw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-Spam-Score: -4.9 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.9 (----) I am still seeing this systematically, including in the latest dev version, In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-11-22 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include' Below is a backtrace from this current version. One scenario that provokes the error: I have a standalone minibuffer frame. I bind a key in `completion-list-mode-map' during minibuffer completion to call `describe-function' on a command name candidate in *Completions* that is clicked with mouse-2. *Help*, like *Completions* is a special-display buffer that appears in its own frame. Input from *Completions* is redirected to the minibuffer. I do C-h f and get some candidates in *Completions*. I click one with mouse-2. *Help* shows its doc. I click the file-name link in *Help* to see the source library for the function. That's when I get the error. Same thing if I use a key bound in `minibuffer-must-match-map' and type a candidate then hit that key. Either way I see the function doc in *Help*, and when I click the file-name link I get the error. There are other ways to reproduce it. They all involve an action during minibuffer completion. Another clue, perhaps: I get this error when I do something in the minibuffer (invoke some function) that tries to create a frame. For example, if the *Help* frame doesn't already exist when I hit the key mentioned above to show the output from `describe-function' (for some completion candidate) in *Help*, then I get the error when it tries to create the *Help* frame. I tried to follow `display-buffer' in the debugger. I can't get further than the C-code call to x-create-frame. If you look at the date when I originally filed this bug you should be able to see when some change was made to the x-create-frame C-code that introduced this regression. At least you should be able to see some code in x-create-frame or called from it that tries to test (> SOMETHING1 SOMETHING2), which ends up calling (> nil 0), raising the error. I tried ediffing the Emacs 22.1 C code for x-create-frame against the current C code for it, but I couldn't guess anything (that single function definition alone is over 12,000 chars!). It's been this way since Emacs 23 (even pretests for 23). No one has tried to look into this. ----------------------- Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) >(nil 0) x-create-frame(((visibility) (tool-bar-lines . 0) (fringe . 0) (right-fringe . 0) (left-fringe . 0) (icon-type) (vertical-scroll-bars . right) (user-position . t) (minibuffer) (height . 35) (width . 80) (left . 0) (top . 0) (menu-bar-lines . 1) (cursor-type . bar))) x-create-frame-with-faces(((tool-bar-lines . 0) (fringe . 0) (right-fringe . 0) (left-fringe . 0) (icon-type) (vertical-scroll-bars . right) (user-position . t) (minibuffer) (height . 35) (width . 80) (left . 0) (top . 0) (menu-bar-lines . 1) (cursor-type . bar) (cursor-color . "Red") (mouse-color . "Red") (font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1") (background-color . "LightBlue") (foreground-color . "Black"))) make-frame(nil) (lambda nil (make-frame pop-up-frame-alist))() funcall((lambda nil (make-frame pop-up-frame-alist))) (frame-selected-window (funcall pop-up-frame-function)) (let ((win (frame-selected-window (funcall pop-up-frame-function)))) (window--display-buffer-2 buffer win display-buffer-mark-dedicated)) (cond ((not (buffer-live-p buffer)) (error "No such buffer %s" buffer)) (display-buffer-function (funcall display-buffer-function buffer not-this-window)) ((and (not not-this-window) (eq (window-buffer (selected-window)) buffer)) (window--display-buffer-1 (selected-window))) ((and can-use-selected-window (same-window-p name-of-buffer)) (window--display-buffer-2 buffer (selected-window))) ((let ((frames (or frame (and (or use-pop-up-frames display-buffer-reuse-frames ...) 0) (last-nonminibuffer-frame)))) (setq window-to-use (catch (quote found) (dolist (window (get-buffer-window-list buffer ... frames)) (when (or can-use-selected-window ...) (throw ... window)))))) (window--display-buffer-1 window-to-use)) ((and special-display-function (let ((pars (special-display-p name-of-buffer))) (when pars (funcall special-display-function buffer (if (listp pars) pars)))))) ((or use-pop-up-frames (not frame-to-use)) (let ((win (frame-selected-window (funcall pop-up-frame-function)))) (window--display-buffer-2 buffer win display-buffer-mark-dedicated))) ((and pop-up-windows (or (not (frame-parameter frame-to-use (quote unsplittable))) (and (eq frame-to-use (selected-frame)) (setq frame-to-use (last-nonminibuffer-frame)) (window--frame-usable-p frame-to-use) (not (frame-parameter frame-to-use (quote unsplittable))))) (setq window-to-use (or (window--try-to-split-window (get-largest-window frame-to-use t)) (window--try-to-split-window (get-lru-window frame-to-use t))))) (window--display-buffer-2 buffer window-to-use display-buffer-mark-dedicated)) ((let ((window-to-undedicate (and not-this-window (not (window-dedicated-p)) (set-window-dedicated-p (selected-window) t) (selected-window)))) (unwind-protect (setq window-to-use (or (get-lru-window frame-to-use) (let (...) (unless ... window)) (get-largest-window (quote visible)) (let (...) (unless ... window)) (get-largest-window 0) (frame-selected-window (funcall pop-up-frame-function)))) (when (window-live-p window-to-undedicate) (set-window-dedicated-p window-to-undedicate nil)))) (window--even-window-heights window-to-use) (window--display-buffer-2 buffer window-to-use))) (let* ((can-use-selected-window (not (or not-this-window (window-dedicated-p (selected-window)) (window-minibuffer-p)))) (buffer (if (bufferp buffer-or-name) buffer-or-name (get-buffer buffer-or-name))) (name-of-buffer (buffer-name buffer)) (use-pop-up-frames (if (eq pop-up-frames (quote graphic-only)) (display-graphic-p) pop-up-frames)) (frame-to-use (or (window--frame-usable-p (selected-frame)) (window--frame-usable-p (last-nonminibuffer-frame)))) window-to-use) (cond ((not (buffer-live-p buffer)) (error "No such buffer %s" buffer)) (display-buffer-function (funcall display-buffer-function buffer not-this-window)) ((and (not not-this-window) (eq (window-buffer (selected-window)) buffer)) (window--display-buffer-1 (selected-window))) ((and can-use-selected-window (same-window-p name-of-buffer)) (window--display-buffer-2 buffer (selected-window))) ((let ((frames (or frame (and ... 0) (last-nonminibuffer-frame)))) (setq window-to-use (catch (quote found) (dolist (window ...) (when ... ...))))) (window--display-buffer-1 window-to-use)) ((and special-display-function (let ((pars (special-display-p name-of-buffer))) (when pars (funcall special-display-function buffer (if ... pars)))))) ((or use-pop-up-frames (not frame-to-use)) (let ((win (frame-selected-window (funcall pop-up-frame-function)))) (window--display-buffer-2 buffer win display-buffer-mark-dedicated))) ((and pop-up-windows (or (not (frame-parameter frame-to-use (quote unsplittable))) (and (eq frame-to-use (selected-frame)) (setq frame-to-use (last-nonminibuffer-frame)) (window--frame-usable-p frame-to-use) (not (frame-parameter frame-to-use ...)))) (setq window-to-use (or (window--try-to-split-window (get-largest-window frame-to-use t)) (window--try-to-split-window (get-lru-window frame-to-use t))))) (window--display-buffer-2 buffer window-to-use display-buffer-mark-dedicated)) ((let ((window-to-undedicate (and not-this-window (not ...) (set-window-dedicated-p ... t) (selected-window)))) (unwind-protect (setq window-to-use (or (get-lru-window frame-to-use) (let ... ...) (get-largest-window ...) (let ... ...) (get-largest-window 0) (frame-selected-window ...))) (when (window-live-p window-to-undedicate) (set-window-dedicated-p window-to-undedicate nil)))) (window--even-window-heights window-to-use) (window--display-buffer-2 buffer window-to-use)))) display-buffer(# nil) pop-to-buffer(#) From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 27 03:15:49 2010 Received: (at control) by debbugs.gnu.org; 27 Nov 2010 08:15:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMFwg-0006xD-LE for submit@debbugs.gnu.org; Sat, 27 Nov 2010 03:15:49 -0500 Received: from mtaout22.012.net.il ([80.179.55.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PMFwe-0006wx-D1 for control@debbugs.gnu.org; Sat, 27 Nov 2010 03:15:45 -0500 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LCJ00H00B0HGL00@a-mtaout22.012.net.il> for control@debbugs.gnu.org; Sat, 27 Nov 2010 10:21:11 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.63.39]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LCJ00HAOB7A9R80@a-mtaout22.012.net.il> for control@debbugs.gnu.org; Sat, 27 Nov 2010 10:21:11 +0200 (IST) Date: Sat, 27 Nov 2010 10:23:19 +0200 From: Eli Zaretskii X-012-Sender: halo1@inter.net.il To: control@debbugs.gnu.org Message-id: <83y68f5g5k.fsf@gnu.org> X-Spam-Score: 0.4 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.4 (/) merge 670 1077