Mercurial > emacs
diff src/cmds.c @ 103875:82a4881dbc9d
(internal_self_insert): Check sym by SYMBOLP before
calling XSYMBOL (sym).
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Mon, 13 Jul 2009 01:02:51 +0000 |
| parents | 58dada904f85 |
| children | b729d024f6dc |
line wrap: on
line diff
--- a/src/cmds.c Sun Jul 12 19:45:36 2009 +0000 +++ b/src/cmds.c Mon Jul 13 01:02:51 2009 +0000 @@ -492,7 +492,7 @@ /* If we expanded an abbrev which has a hook, and the hook has a non-nil `no-self-insert' property, return right away--don't really self-insert. */ - if (! NILP (sym) && ! NILP (XSYMBOL (sym)->function) + if (SYMBOLP (sym) && ! NILP (sym) && ! NILP (XSYMBOL (sym)->function) && SYMBOLP (XSYMBOL (sym)->function)) { Lisp_Object prop;
