# HG changeset patch # User Richard M. Stallman # Date 852172233 0 # Node ID c378600f005d038626480d6b7f4f09aecf75fd90 # Parent aac35896dd0469f1c79ea3df934dd507f25f44bf (internal_self_insert): Check the property on the hook, not on the abbrev symbol. diff -r aac35896dd04 -r c378600f005d src/cmds.c --- a/src/cmds.c Thu Jan 02 02:30:23 1997 +0000 +++ b/src/cmds.c Thu Jan 02 02:30:33 1997 +0000 @@ -325,11 +325,13 @@ sym = Fexpand_abbrev (); /* If we expanded an abbrev which has only 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 (! NILP (sym) && ! NILP (XSYMBOL (sym)->function) + && SYMBOLP (XSYMBOL (sym)->function)) { Lisp_Object prop; - prop = Fget (sym, intern ("no-self-insert")); + prop = Fget (XSYMBOL (sym)->function, intern ("no-self-insert")); if (! NILP (prop)) return Qnil; }