diff options
| author | Richard M. Stallman | 1997-01-02 02:30:33 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-01-02 02:30:33 +0000 |
| commit | 9317a902a2ad8ae248469e2e7e44c1613f5365d5 (patch) | |
| tree | ea06ef4a0754f6efa06b6f97ba5baf7f130533ec /src | |
| parent | 05a455e217bb596a88470a6c637a226e4a149383 (diff) | |
| download | emacs-9317a902a2ad8ae248469e2e7e44c1613f5365d5.tar.gz emacs-9317a902a2ad8ae248469e2e7e44c1613f5365d5.zip | |
(internal_self_insert): Check the property
on the hook, not on the abbrev symbol.
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 | } |