From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: Comparing font objects Date: Mon, 16 Jun 2008 16:33:54 +0900 Message-ID: References: <87ej6ywj8e.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1213601656 11981 80.91.229.12 (16 Jun 2008 07:34:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 Jun 2008 07:34:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 16 09:35:00 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K89Ex-0001z4-Fd for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 09:34:59 +0200 Original-Received: from localhost ([127.0.0.1]:50132 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K89E9-0005jB-9Q for ged-emacs-devel@m.gmane.org; Mon, 16 Jun 2008 03:34:09 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K89E4-0005j4-JH for emacs-devel@gnu.org; Mon, 16 Jun 2008 03:34:04 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K89E2-0005io-FA for emacs-devel@gnu.org; Mon, 16 Jun 2008 03:34:03 -0400 Original-Received: from [199.232.76.173] (port=42809 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K89E2-0005ih-C5 for emacs-devel@gnu.org; Mon, 16 Jun 2008 03:34:02 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:30446) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K89E1-0001c5-Ly for emacs-devel@gnu.org; Mon, 16 Jun 2008 03:34:01 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K89E0-0002jV-IX for emacs-devel@gnu.org; Mon, 16 Jun 2008 03:34:01 -0400 Original-Received: from rqsmtp1.aist.go.jp (rqsmtp1.aist.go.jp [150.29.254.115]) by mx1.aist.go.jp with ESMTP id m5G7YeXj022161; Mon, 16 Jun 2008 16:34:40 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp1.aist.go.jp by rqsmtp1.aist.go.jp with ESMTP id m5G7Xt6I029403; Mon, 16 Jun 2008 16:33:55 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id m5G7Xs6j003914; Mon, 16 Jun 2008 16:33:54 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1K89Du-0001V4-L4; Mon, 16 Jun 2008 16:33:54 +0900 In-reply-to: <87ej6ywj8e.fsf@stupidchicken.com> (message from Chong Yidong on Sun, 15 Jun 2008 16:12:17 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by mx20.gnu.org: Solaris 9 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:99293 Archived-At: In article <87ej6ywj8e.fsf@stupidchicken.com>, Chong Yidong writes: > emacs -fn "Monospace-12" > M-: (set-face-attribute 'default nil :font "Monospace-12") RET > Debugger entered--Lisp error: (error "Stack overflow in equal") > internal-set-lisp-face-attribute(default :font "Monospace-12" 0) > set-face-attribute(default nil :font "Monospace-12") > eval((set-face-attribute (quote default) nil :font "Monospace-12")) > eval-expression((set-face-attribute (quote default) nil :font "Monospace-12") nil) > call-interactively(eval-expression nil nil) > It appears that Fequal is looping while comparing font vectors. Maybe > we need to handle font vector comparison specially (see fns.c:2205)? Thank you for finding this bug. I fixed it by setting FONT_OBJLIST_INDEX slot of a font-object to nil. --- Kenichi Handa handa@ni.aist.go.jp