🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #98834

HP stations: a bug in ispell-buffer command in Emacs

#98834
From: Jerry Roylance
Date: Fri, 15 Feb 1991 21:30
30 lines
1923 bytes
    Date: Fri, 15 Feb 91 15:16:29 est
    From: ronen@ai.mit.edu (Ronen Basri)

    HP workstations introduce a bug in m-x ispell-buffer command in Emacs.
    The problem is that on the HPs this command fails to break the text
    into single words and therefore cannot check for the validity of the
    words. This problem does not occur when the m-x ispell-word and the
    m-x spell-buffer are used.

The problem is tr is different on Suns and HPs.  I fixed this for the
HPs a while ago (and made m-$ run ispell-word rather than spell-word),
but I guess the change has been lost.

The emacs source for ispell defines

(defvar ispell-filter-hook-args '("-cs" "A-Za-z" "\012")
  "*Argument LIST to pass to ispell-filter-hook")

which works on Suns.  For HPs the args must be a little different.
If you put this line in your .emacs

(setq ispell-filter-hook-args
      (if nil
	  '("-cs" "[A-Z][a-z]" "[\012]")
	  '("-cs" "[A-Z][a-z]" "[\012*]")))

I forgot the predicate I used, so the fix above will only work for HPs
(ie, ispell won't work on suns).  The predicate should return NIL for
HPs (or sys V) and t for BSD.  If somebody knows a good predicate ...
Technical Details
Message-ID: <19910215213049.3.GLR@MOSCOW-CENTRE.AI.MIT.EDU>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
References: <9102152016.AA12957@sappho.ai.mit.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,d621a88307950b96,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1991-02-15 13:30:00 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!decwrl!sdd.hp.com!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage
From: glr@AI.MIT.EDU (Jerry Roylance)
Newsgroups: gnu.emacs.bug
Subject: HP stations: a bug in ispell-buffer command in Emacs
Message-ID: <19910215213049.3.GLR@MOSCOW-CENTRE.AI.MIT.EDU>
Date: 15 Feb 91 21:30:00 GMT
References: <9102152016.AA12957@sappho.ai.mit.edu>
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 30
Approved: bug-gnu-emacs@prep.ai.mit.edu