254 lines
86 KiB
Plaintext
254 lines
86 KiB
Plaintext
Copyright (c) 1986 Xerox Corporation. All rights reserved.
|
||
|
||
20.7.5 Spelling Corrector Functions and Variables
|
||
1
|
||
|
||
(ADDSPELL X SPLST N) [Function]
|
||
1
|
||
|
||
Adds X to one of the spelling lists as determined by the value of SPLST:
|
||
NIL Adds X to USERWORDS and to SPELLINGS2. Used by DEFINEQ.
|
||
0 Adds X to USERWORDS. Used by LOAD when loading EXPRs to property lists.
|
||
1 Adds X to SPELLINGS1 (at end of permanent section). Used by LISPX.
|
||
2 Adds X to SPELLINGS2 (at end of permanent section). Used by LISPX.
|
||
3 Adds X to USERWORDS and SPELLINGS3.
|
||
a spelling list If SPLST is a spelling list, X is added to it. In this case, N is the (optional) length of the temporary section.
|
||
If X is already on the spelling list, and in its temporary section, ADDSPELL moves X to the front of that section.
|
||
ADDSPELL sets LASTWORD to X when SPLST=NIL, 0 or 3.
|
||
If X is not a literal atom, ADDSPELL takes no action.
|
||
1
|
||
|
||
Note that the various systems calls to ADDSPELL, e.g. from DEFINE, EDITF, LOAD, etc., can all be suppressed by setting or binding ADDSPELLFLG to NIL (("ADDSPELLFLG" . Variable)).
|
||
(MISSPELLED? XWORD REL SPLST FLG TAIL FN) [Function]
|
||
1
|
||
|
||
If XWORD=NIL or $ (<esc>), MISSPELLED? prints = followed by the value of LASTWORD, and returns this as the respelling, without asking for approval. Otherwise, MISSPELLED? checks to see if XWORD is really misspelled, i.e., if FN applied to XWORD is true, or XWORD is already contained on SPLST. In this case, MISSPELLED? simply returns XWORD. Otherwise MISSPELLED? computes and returns (FIXSPELL XWORD REL SPLST FLG TAIL FN).
|
||
1
|
||
ÿÿ |