From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Miller Newsgroups: gmane.emacs.bugs Subject: bug#911: 23.0.60; custom-set-faces causes "New Frame" to fail (max-specpdl-size) Date: Tue, 16 Sep 2008 13:11:49 +0100 Message-ID: <20080916121149.GA19679@baso.home> References: <48C3E3EE.9070309@gmx.at> <20080907165632.GA13662@baso.home> <48C421CC.7060206@gmx.at> <20080907234226.GA22400@baso.home> <48C528C4.4010606@gmx.at> <48CD168D.10107@gmx.at> Reply-To: Ian Miller , 911@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221568148 28974 80.91.229.12 (16 Sep 2008 12:29:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Sep 2008 12:29:08 +0000 (UTC) Cc: 911@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 16 14:29:54 2008 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.50) id 1KfZgn-0002y3-NF for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 14:29:54 +0200 Original-Received: from localhost ([127.0.0.1]:59312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfZfj-0000RO-9H for geb-bug-gnu-emacs@m.gmane.org; Tue, 16 Sep 2008 08:28:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KfZee-0008O1-DA for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 08:27:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KfZeb-0008NP-9y for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 08:27:39 -0400 Original-Received: from [199.232.76.173] (port=36567 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KfZeb-0008NM-5g for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 08:27:37 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:46564) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KfZea-0003lh-NB for bug-gnu-emacs@gnu.org; Tue, 16 Sep 2008 08:27:37 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8GCRYSL010989; Tue, 16 Sep 2008 05:27:34 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8GCK4EQ007948; Tue, 16 Sep 2008 05:20:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Ian Miller Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 16 Sep 2008 12:20:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 911 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: unreproducible Original-Received: via spool by 911-submit@emacsbugs.donarmstrong.com id=B911.12215671195702 (code B ref 911); Tue, 16 Sep 2008 12:20:04 +0000 Original-Received: (at 911) by emacsbugs.donarmstrong.com; 16 Sep 2008 12:11:59 +0000 Original-Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8GCBqlI005696 for <911@emacsbugs.donarmstrong.com>; Tue, 16 Sep 2008 05:11:53 -0700 Original-Received: from compute2.internal (compute2.internal [10.202.2.42]) by out1.messagingengine.com (Postfix) with ESMTP id F1FCB160EB3; Tue, 16 Sep 2008 08:11:51 -0400 (EDT) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute2.internal (MEProxy); Tue, 16 Sep 2008 08:11:52 -0400 X-Sasl-enc: 8ai1Hr3yIWJAfpA1B14noYOGUep71cNCvVk6Ixyu/mEG 1221567111 Original-Received: from baso (host86-135-239-211.range86-135.btcentralplus.com [86.135.239.211]) by mail.messagingengine.com (Postfix) with ESMTPSA id 67A7120344; Tue, 16 Sep 2008 08:11:51 -0400 (EDT) Content-Disposition: inline In-Reply-To: <48CD168D.10107@gmx.at> User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Tue, 16 Sep 2008 08:27:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:20562 Archived-At: On Sun, Sep 14, 2008 at 03:50:05PM +0200, martin rudalics wrote: > Ian, > > I can't reproduce this here. Could your try to edebug the functions > `face-spec-set-2' and `face-spec-recalc' to find out why (or better how) > in the trace > > > > face-spec-set-2(default # ((t :stipple > > nil :background "#ffffff" :foreground "#000000" :inverse-video nil :box > > nil :strike-through nil :overline nil :underline nil :slant normal > > :weight normal :height 90 :width normal :foundry "unknown" :family > > "DejaVu Sans Mono"))) > > > face-spec-recalc(default #) > [...] > > > face-spec-set-2(default # ((t (:stipple > > nil :background "DarkSlateGray" :foreground "wheat" :inverse-video nil > > :box nil :strike-through nil :overline nil :underline nil :slant normal > > :weight normal :height 121 :width normal :foundry "unknown" :family > > "DejaVu Sans Mono")))) > > > face-spec-recalc(default #) > > the function `face-spec-set-2' is called alternately with different > backgrounds. That is, edebug these two functions, call C-x 5 2 or > whatever you have to make a new frame, and tell me whether Martin, When I tried to instrument those two functions, there was no problem with face-spec-recalc, but face-spec-set-2 refused to instrument with the following complaint: edebug-syntax-error: Invalid read syntax: "Expected lambda expression" (defun face-spec-set-2 (face frame spec) "Set the face attributes of FACE on FRAME according to SPEC." (let* ((attrs (face-spec-choose spec frame))) (while attrs (let ((attribute (car attrs)) (value (car (cdr attrs)))) ;; Support some old-style attribute names and values. (case attribute (:bold (setq attribute :weight value (if value 'bold 'normal))) (:italic (setq attribute :slant value (if value 'italic 'normal))) ((:foreground :background) ^ this is the cursor marking the syntax error > (1) `face-spec-recalc' in one and the same call invokes > `face-spec-set-2' at least twice (where an invocation should cause > `face-spec-set-2' to really call `set-face-attributes'), or > > (2) `face-spec-recalc' is called at least twice when making a new frame. When I edebug face-spec-recalc and attempt to create a new frame, each time I press 'T' to Trace Fast the function appears to be re-entered, and this appears to go on indefinitely? Additionally a frame *is* created now, but it does not appear automatically on the screen - however, it can be accessed via the Buffers->Frames menu, and it does not use the colour scheme specified in .emacs. Also, when edebug reaches face-spec-recalc, I get the following console message with each subsequent step of edebug (sorry, I don't know if this is relevant, I am a complete novice when it comes to emacs debugging!): (emacs:21944): Gtk-CRITICAL **: gtk_box_pack_start: assertion `child->parent ==NULL' failed cheers, ian