* 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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.