diff options
| author | Joakim Verona | 2012-08-01 13:16:20 +0200 |
|---|---|---|
| committer | Joakim Verona | 2012-08-01 13:16:20 +0200 |
| commit | 610ba6f8ddf2298849cad522b6952bc694f0e63f (patch) | |
| tree | 64548d6651c0501eb5838c566a6902d500228b5f /src/cmds.c | |
| parent | 55fa71b3d9bb8609ca3cbb56f92c776ad8724a69 (diff) | |
| parent | 069bac5e5b55c0f63bd2764e727108d2b48b2643 (diff) | |
| download | emacs-610ba6f8ddf2298849cad522b6952bc694f0e63f.tar.gz emacs-610ba6f8ddf2298849cad522b6952bc694f0e63f.zip | |
upstream
Diffstat (limited to 'src/cmds.c')
| -rw-r--r-- | src/cmds.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/cmds.c b/src/cmds.c index a7a2eb6f528..4512f562064 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -446,11 +446,13 @@ internal_self_insert (int c, EMACS_INT n) | |||
| 446 | /* If we expanded an abbrev which has a hook, | 446 | /* If we expanded an abbrev which has a hook, |
| 447 | and the hook has a non-nil `no-self-insert' property, | 447 | and the hook has a non-nil `no-self-insert' property, |
| 448 | return right away--don't really self-insert. */ | 448 | return right away--don't really self-insert. */ |
| 449 | if (SYMBOLP (sym) && ! NILP (sym) && ! NILP (XSYMBOL (sym)->function) | 449 | if (SYMBOLP (sym) && ! NILP (sym) |
| 450 | && SYMBOLP (XSYMBOL (sym)->function)) | 450 | && ! NILP (SVAR (XSYMBOL (sym), function)) |
| 451 | && SYMBOLP (SVAR (XSYMBOL (sym), function))) | ||
| 451 | { | 452 | { |
| 452 | Lisp_Object prop; | 453 | Lisp_Object prop; |
| 453 | prop = Fget (XSYMBOL (sym)->function, intern ("no-self-insert")); | 454 | prop = Fget (SVAR (XSYMBOL (sym), function), |
| 455 | intern ("no-self-insert")); | ||
| 454 | if (! NILP (prop)) | 456 | if (! NILP (prop)) |
| 455 | return 1; | 457 | return 1; |
| 456 | } | 458 | } |