]> git.eshelyaron.com Git - emacs.git/commitdiff
(internal_self_insert): Check sym by SYMBOLP before
authorKenichi Handa <handa@m17n.org>
Mon, 13 Jul 2009 01:04:26 +0000 (01:04 +0000)
committerKenichi Handa <handa@m17n.org>
Mon, 13 Jul 2009 01:04:26 +0000 (01:04 +0000)
calling XSYMBOL (sym).

src/ChangeLog
src/cmds.c

index f56c5c6e441cbfe0cbf073cf96a8c32cb9882a7a..3f9e6ca2ca700e72a32bfa74ea0855428090c23e 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-13  Kenichi Handa  <handa@m17n.org>
+
+       * cmds.c (internal_self_insert): Check sym by SYMBOLP before
+       calling XSYMBOL (sym).
+
 2009-07-10  Kenichi Handa  <handa@m17n.org>
 
        * xftfont.c (xftfont_open): Fix typo: FC_RGBA->FC_HINT_STYLE.
index 60916705c97f23d37eda455e44a4b0267047852b..33472b5710bb2567d84ecce8ec9e2a1e261d251f 100644 (file)
@@ -492,7 +492,7 @@ internal_self_insert (c, noautofill)
       /* 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;