Commit fb6b6049 authored by Kenichi Handa's avatar Kenichi Handa

(internal_self_insert): Check sym by SYMBOLP before

calling XSYMBOL (sym).
parent 7b607b73
2009-07-13 Kenichi Handa <handa@m17n.org>
* cmds.c (internal_self_insert): Check sym by SYMBOLP before
calling XSYMBOL (sym).
2009-07-11 Eli Zaretskii <eliz@gnu.org>
* dired.c (directory_files_internal_w32_unwind) [WINDOWSNT]: New
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment