diff options
| author | Richard M. Stallman | 2000-01-21 02:22:56 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2000-01-21 02:22:56 +0000 |
| commit | c87dbfd03c6bad52a4ed2254b7b7af880c5a9102 (patch) | |
| tree | eb1a3a40e406f58a4b2699a1f25335c55c87bdb7 /src | |
| parent | 2d5e9b548edafcdc886cb430b9a80ffd08a80baf (diff) | |
| download | emacs-c87dbfd03c6bad52a4ed2254b7b7af880c5a9102.tar.gz emacs-c87dbfd03c6bad52a4ed2254b7b7af880c5a9102.zip | |
Comment change.
Diffstat (limited to 'src')
| -rw-r--r-- | src/abbrev.c | 11 | ||||
| -rw-r--r-- | src/cmds.c | 2 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/abbrev.c b/src/abbrev.c index f5586f5c4d7..ca97637a23a 100644 --- a/src/abbrev.c +++ b/src/abbrev.c | |||
| @@ -367,11 +367,14 @@ Returns the abbrev symbol, if expansion took place.") | |||
| 367 | { | 367 | { |
| 368 | Lisp_Object expanded, prop; | 368 | Lisp_Object expanded, prop; |
| 369 | 369 | ||
| 370 | /* If expanding an abbrev which has only a hook, and the hook | 370 | /* If the abbrev has a hook function, run it. */ |
| 371 | has a non-nil `no-self-insert' property, let the return value | ||
| 372 | of the hook specify whether an expansion took place. If it | ||
| 373 | returns nil, no expansion has been done. */ | ||
| 374 | expanded = call0 (hook); | 371 | expanded = call0 (hook); |
| 372 | |||
| 373 | /* In addition, if the hook function is a symbol with a a | ||
| 374 | non-nil `no-self-insert' property, let the value it returned | ||
| 375 | specify whether we consider that an expansion took place. If | ||
| 376 | it returns nil, no expansion has been done. */ | ||
| 377 | |||
| 375 | if (SYMBOLP (hook) | 378 | if (SYMBOLP (hook) |
| 376 | && NILP (expanded) | 379 | && NILP (expanded) |
| 377 | && (prop = Fget (hook, intern ("no-self-insert")), | 380 | && (prop = Fget (hook, intern ("no-self-insert")), |
diff --git a/src/cmds.c b/src/cmds.c index 27d6812d05f..f2688656600 100644 --- a/src/cmds.c +++ b/src/cmds.c | |||
| @@ -443,7 +443,7 @@ internal_self_insert (c, noautofill) | |||
| 443 | 443 | ||
| 444 | sym = Fexpand_abbrev (); | 444 | sym = Fexpand_abbrev (); |
| 445 | 445 | ||
| 446 | /* If we expanded an abbrev which has only 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 (! NILP (sym) && ! NILP (XSYMBOL (sym)->function) | 449 | if (! NILP (sym) && ! NILP (XSYMBOL (sym)->function) |