[comp.emacs] minor mode

mende@porthos.rutgers.edu (Bob Mende Pie) (06/02/88)

Thanks for all the replies...
  let me summarize the responses.   

  A true minor mode has to be done in the C code.  It is not possible
to correcty make one in lisp.  One person has written C code for
{before,after}-{command,change}-hook that will do the trick.  As far
as I know, it has been sent off to the FSF for inclusion to gnu.  I
hope that they include it, or somthing like it in emacs 18.52.
  What I am trying to do is implement a auto-spell-mode.  What this
does is call a running ispell and send each word you type to ispell
for corectness.  If a word is wrong it flashes possibilities in the
minibuffer and (optionally) dings or puts you in ispell-word.   I have
this code working, but the implementation is poor due to the minor
mode problem.  As you can deduce, this minor mode requires a call to
auto-spell-word for every space, tab, returnm and some others every
time they are pressed.   It is *wrong* to have to change their
definitions.


					/Bob mende...
-- 
{...}!rutgers!mende	  mende@aramis.rutgers.edu	   mende@zodiac.bitnet

tommorow afternoon at 3:13 I get to decompose all over RICH LITTLE'S
shoes.