@@ -1,52 +0,0 @@
1−From: Geoff Kuenning <geoff@cs.hmc.edu>
2−Date: Thu, 3 Nov 2005 14:14:15 -0800
3−Subject: 0005 Do not reorder words
4−
5−ispell reorders words in personal dictionary without good reason.
6−
7−The correct approach is to build the internal data structure with variant
8−spellings stored in the same order as they appear in the personal dictionary.
9−Fortunately, this is easy, though the patch is to a different file. This one
10−has been tested (That's what I get for trying to rush out a fix before a
11−meeting!).
12−---
13− makedent.c | 18 +++++++++++-------
14− 1 files changed, 11 insertions(+), 7 deletions(-)
15−
16−diff --git a/makedent.c b/makedent.c
17−index 0453d11..d121345 100644
18−--- a/makedent.c
19−+++ b/makedent.c
20−@@ -447,9 +447,10 @@ int combinecaps (hdrp, newp)
21− if (retval == 0)
22− {
23− /*
24−- ** Couldn't combine the two entries. Add a new variant. For
25−- ** ease, we'll stick it right behind the header, rather than
26−- ** at the end of the list.
27−+ ** Couldn't combine the two entries. Add a new variant. We
28−+ ** stick it at the end of the variant list because it's
29−+ ** important to maintain order; this causes the personal
30−+ ** dictionary to have a stable ordering.
31− */
32− forcevheader (hdrp, oldp, newp);
33− tdent = (struct dent *) mymalloc (sizeof (struct dent));
34−@@ -460,10 +461,13 @@ int combinecaps (hdrp, newp)
35− return -1;
36− }
37− *tdent = *newp;
38−- tdent->next = hdrp->next;
39−- hdrp->next = tdent;
40−- tdent->flagfield |= (hdrp->flagfield & MOREVARIANTS);
41−- hdrp->flagfield |= MOREVARIANTS;
42−+ for (oldp = hdrp;
43−+ oldp->next != NULL && oldp->flagfield & MOREVARIANTS;
44−+ oldp = oldp->next)
45−+ ;
46−+ tdent->next = oldp->next;
47−+ oldp->next = tdent;
48−+ oldp->flagfield |= MOREVARIANTS;
49− combineaffixes (hdrp, newp);
50− hdrp->flagfield |= (newp->flagfield & KEEP);
51− if (captype (newp->flagfield) == FOLLOWCASE)
52−--