🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.sources.bugs
Article #977

Re: A minor installation note about the new ispell

#977
From: don
Date: Thu, 19 Mar 1987 23:45
45 lines
2510 bytes
In article <302@desint.UUCP> geoff@desint.UUCP (Geoff Kuenning) writes:
>Don Kark just called my attention to a minor oversight in my instructions
>for my reposting of ispell.  To use the new ispell, you have to rebuild
>the hashed dictionary file, because I changed some fields in the hash
>entry structure.  The symptom Don got was that ispell rewrote the entire
>main dictionary as his personal dictionary -- 184 blocks!

Unfortunately, Geoff jumped the gun just a little on this one.  The 
installation of ispell wasn't the problem, since I DID rebuild the dictionary
hash file.  Geoff figured the "keep" flag was wrong.  Indeed it was, but
not because of an outdated hash file.  The problem is in buildhash.c.
The hash file it generated had "keep" set on every entry.

Apparently the "d" variable in readddict() is used as a template for building
the dictionary.  The value of the field d.keep was never explicitly set.
Since automatic variables don't get initialized to zero on Suns (Sun2/50),
the value of this bit was left at '1' for me, causing my master dictionary to
dump itself into my personal "ispell.words" every time!  Here is a one line
fix that solved the problem (context diff for "patch" users):

>> START OF PATCH
*** buildhash.c	Sun Mar 15 13:53:59 1987
--- /wilbur2/config/ispell/NEW-buggy/buildhash.c	Thu Mar 19 07:33:39 1987
***************
*** 267,272 ****
--- 267,273 ----
  	d->s_flag = 0;
  	d->p_flag = 0;
  	d->m_flag = 0;
+ 	d->keep = 0;
  
  	p = index (lbuf, '/');
  	if (p != NULL)

>> END OF PATCH

I'll also be posting a patch allowing ispell to be used more easily with
TeX or LaTeX files in the next few days.  Laters.

					-- Don
-- 
=============================================================================
Don Kark			|  {cit-vax,trwrb}!wiley!don
TRW Inc.			|  wiley!don@csvax.caltech.edu
Redondo Beach, CA		|
Technical Details
Message-ID: <422@joshua.wiley.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!cit-vax!usc-oberon!sdcrdcf!trwrb!wiley!don
References: <302@desint.UUCP>

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!cit-vax!usc-oberon!sdcrdcf!trwrb!wiley!don
From: don@wiley.UUCP
Newsgroups: net.sources.bugs
Subject: Re: A minor installation note about the new ispell
Message-ID: <422@joshua.wiley.UUCP>
Date: Thu, 19-Mar-87 18:45:08 EST
Article-I.D.: joshua.422
Posted: Thu Mar 19 18:45:08 1987
Date-Received: Sun, 22-Mar-87 15:38:11 EST
References: <302@desint.UUCP>
Reply-To: don@wiley.UUCP (Don Kark)
Distribution: world
Organization: TRW Inc., Redondo Beach, CA
Lines: 45
Keywords: ispell