diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/cmds.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cmds.c b/src/cmds.c index 2e6464bf0ce..db05b38460e 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -325,11 +325,13 @@ internal_self_insert (c1, noautofill) | |||
| 325 | sym = Fexpand_abbrev (); | 325 | sym = Fexpand_abbrev (); |
| 326 | 326 | ||
| 327 | /* If we expanded an abbrev which has only a hook, | 327 | /* If we expanded an abbrev which has only a hook, |
| 328 | and the hook has a non-nil `no-self-insert' property, | ||
| 328 | return right away--don't really self-insert. */ | 329 | return right away--don't really self-insert. */ |
| 329 | if (! NILP (sym) && ! NILP (XSYMBOL (sym)->function)) | 330 | if (! NILP (sym) && ! NILP (XSYMBOL (sym)->function) |
| 331 | && SYMBOLP (XSYMBOL (sym)->function)) | ||
| 330 | { | 332 | { |
| 331 | Lisp_Object prop; | 333 | Lisp_Object prop; |
| 332 | prop = Fget (sym, intern ("no-self-insert")); | 334 | prop = Fget (XSYMBOL (sym)->function, intern ("no-self-insert")); |
| 333 | if (! NILP (prop)) | 335 | if (! NILP (prop)) |
| 334 | return Qnil; | 336 | return Qnil; |
| 335 | } | 337 | } |