From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: don@donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#911: marked as done (23.0.60; custom-set-faces causes "New Frame" to fail (max-specpdl-size)) Date: Wed, 24 Sep 2008 13:30:04 -0700 Message-ID: References: <87y71hthoc.fsf@cyd.mit.edu> <20080907113642.GB3007@baso.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1222288204-25981-0" X-Trace: ger.gmane.org 1222289421 31078 80.91.229.12 (24 Sep 2008 20:50:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Sep 2008 20:50:21 +0000 (UTC) To: Chong Yidong Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 24 22:51:18 2008 connect(): Connection refused 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 1KibKP-0004MD-FT for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Sep 2008 22:51:17 +0200 Original-Received: from localhost ([127.0.0.1]:36806 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KibJN-00085S-77 for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Sep 2008 16:50:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KibJ9-0007xM-86 for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KibJ8-0007wJ-5t for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:58 -0400 Original-Received: from [199.232.76.173] (port=60126 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KibJ8-0007w9-0Z for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:58 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55786) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KibJ7-0005vd-4T for bug-gnu-emacs@gnu.org; Wed, 24 Sep 2008 16:49:57 -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 m8OKnswN030671; Wed, 24 Sep 2008 13:49:55 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8OKU453026080; Wed, 24 Sep 2008 13:30:04 -0700 X-Mailer: MIME-tools 5.420 (Entity 5.420) X-Loop: don@donarmstrong.com X-Emacs-PR-Message: closed 911 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: unreproducible X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) 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:20737 Archived-At: This is a multi-part message in MIME format... ------------=_1222288204-25981-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Wed, 24 Sep 2008 16:25:39 -0400 with message-id <87y71hthoc.fsf@cyd.mit.edu> and subject line Re: bug#911: 23.0.60; custom-set-faces causes "New Frame" = to fail has caused the Emacs bug report #911, regarding 23.0.60; custom-set-faces causes "New Frame" to fail (max-specpdl= -size) to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact don@donarmstrong.com immediately.) --=20 911: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D911 Emacs Bug Tracking System Contact don@donarmstrong.com with problems ------------=_1222288204-25981-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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=-7.9 required=4.0 tests=BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 7 Sep 2008 11:36: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 m87BarDS003703 for ; Sun, 7 Sep 2008 04:36:54 -0700 Received: from mail.gnu.org ([199.232.76.166]:39879 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KcIXt-0008Lr-NO for emacs-pretest-bug@gnu.org; Sun, 07 Sep 2008 07:35:09 -0400 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KcIZT-0005C2-5C for emacs-pretest-bug@gnu.org; Sun, 07 Sep 2008 07:36:52 -0400 Received: from out1.smtp.messagingengine.com ([66.111.4.25]:49197) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KcIZS-0005BY-Pm for emacs-pretest-bug@gnu.org; Sun, 07 Sep 2008 07:36:46 -0400 Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 1AE2A15D07A for ; Sun, 7 Sep 2008 07:36:45 -0400 (EDT) Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Sun, 07 Sep 2008 07:36:45 -0400 X-Sasl-enc: xVjT6zocFk5ljEI9yC4nOTlLJlNeMwI784NXFBcEAKHV 1220787404 Received: from baso (host86-145-203-105.range86-145.btcentralplus.com [86.145.203.105]) by mail.messagingengine.com (Postfix) with ESMTPSA id 41181A066 for ; Sun, 7 Sep 2008 07:36:44 -0400 (EDT) Date: Sun, 7 Sep 2008 12:36:42 +0100 From: Ian Miller To: emacs-pretest-bug@gnu.org Subject: 23.0.60; custom-set-faces causes "New Frame" to fail (max-specpdl-size) Message-ID: <20080907113642.GB3007@baso.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Whenever I select "File->New Frame" (C-x 5 2) a new frame does not appear and I receive the message "Variable binding depth exceeds max-specpdl-size". This seems to be caused by any use of custom-set-faces in the .emacs file. When I remove the custom-set-faces code from .emacs, the bug does not occur. Example custom-set-faces in .emacs that causes the bug: (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(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"))))) If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.12.11) of 2008-08-01 on x86-1 Windowing system distributor `The X.Org Foundation', version 11.0.10499905 configured using `configure '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'target_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic'' 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: en_GB.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: show-paren-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: M-x r e p o r Recent messages: Loading /usr/share/emacs/site-lisp/site-start.d/igrep-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/muse-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el (source)...done Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el (source)...done Loading gnus...done Loading paren...done For information about GNU Emacs and the GNU system, type C-h C-a. display-color-cells: Variable binding depth exceeds max-specpdl-size Making completion list... ------------=_1222288204-25981-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit 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=-4.7 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, IMPRONONCABLE_1,MURPHY_WRONG_WORD2 autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 911-done) by emacsbugs.donarmstrong.com; 24 Sep 2008 20:25:15 +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 m8OKPBmI025467 for <911-done@emacsbugs.donarmstrong.com>; Wed, 24 Sep 2008 13:25:12 -0700 Received: by cyd.mit.edu (Postfix, from userid 1000) id 456D057E189; Wed, 24 Sep 2008 16:25:39 -0400 (EDT) From: Chong Yidong To: martin rudalics Cc: 911-done@emacsbugs.donarmstrong.com, Ian Miller Subject: Re: bug#911: 23.0.60; custom-set-faces causes "New Frame" to fail Date: Wed, 24 Sep 2008 16:25:39 -0400 Message-ID: <87y71hthoc.fsf@cyd.mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > When creating a new frame `frame-set-background-mode' gets called > which eventually calls `face-spec-recalc'... which calls > `face-spec-set-2' two times for the default face background, one time > for #ffffff and one time for DarkSlateGray. `face-spec-set-2' calls > `set-face-attribute', which calls `internal-set-lisp-face-attribute' > which calls Fmodify_frame_parameters which calls > `frame-set-background-mode' again. The Emacs face code strikes again, huh. > (>= (apply '+ (color-values "DarkSlateGrey")) > (* (apply '+ (color-values "white")) .6)) > > evaluates to nil while > > (>= (apply '+ (color-values "#ffffff")) > (* (apply '+ (color-values "white")) .6)) > > evaluates to t. This means that `bg-mode' never equals `old-bg-mode' > but continuously alternates between 'light and 'dark, so > `frame-set-background-mode' will call `face-spec-recalc' thus sending > Emacs into a nasty loop. > > Note that the looping behavior is due to the second call in the dolist > (that for DarkSlateGrey). The first call (for #ffffff) terminates. > > I'm not sure how to fix this because that looping has no specific entry > point. How about defining a variable `frame-set-background-mode-bg-mode'? If it's nil, frame-set-background-mode uses the existing calculation to determine whether it's light or dark; if it's non-nil, it uses that existing value. This should prevent the oscillation. ------------=_1222288204-25981-0--