changeset 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 dc7bbd1d517e
children a7a75be51ae9
files src/cmds.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;