unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Comparing font objects
@ 2008-06-15 20:12 Chong Yidong
  2008-06-16  7:33 ` Kenichi Handa
  0 siblings, 1 reply; 2+ messages in thread
From: Chong Yidong @ 2008-06-15 20:12 UTC (permalink / raw)
  To: Kenichi Handa; +Cc: emacs-devel

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)?




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Comparing font objects
  2008-06-15 20:12 Comparing font objects Chong Yidong
@ 2008-06-16  7:33 ` Kenichi Handa
  0 siblings, 0 replies; 2+ messages in thread
From: Kenichi Handa @ 2008-06-16  7:33 UTC (permalink / raw)
  To: Chong Yidong; +Cc: emacs-devel

In article <87ej6ywj8e.fsf@stupidchicken.com>, Chong Yidong <cyd@stupidchicken.com> 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




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-16  7:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-15 20:12 Comparing font objects Chong Yidong
2008-06-16  7:33 ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).