From xemacs-m  Thu Dec 19 13:57:02 1996
Received: from corona.pixar.com (corona.pixar.com [138.72.20.84])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with SMTP
	  id NAA10279 for <xemacs-beta@xemacs.org>; Thu, 19 Dec 1996 13:57:01 -0600 (CST)
Received: by corona.pixar.com (Smail3.1.29.1 #2)
	id m0vaoa6-00011cC; Thu, 19 Dec 96 11:56 PST
To: xemacs-beta@xemacs.org
Subject: extent/keymap question
Mime-Version: 1.0 (generated by tm-edit 7.95)
Content-Type: text/plain; charset=US-ASCII
From: Hunter Kelly <retnuh@corona.pixar.com>
Date: 19 Dec 1996 11:56:37 -0800
Message-ID: <yvtbubqmhoq.fsf@corona.pixar.com>
Lines: 32
X-Mailer: Red Gnus v0.74/XEmacs 19.15


I wrote an addition to ispell.el for the ispell minor mode, which I
quite like.  I find that I almost never remember to run ispell on
messages/files/whatever when I am done, so I wanted something that
would check as I type.  The ispell minor mode does exactly this, but
it only beeps if you mis-spell a word.  This can be annoying or easy
to miss, so I decided to hack together something like what is done in
Word, where they underline a word if it is mis-spelled.  I instead
change the face of the word to something obvious and easy to pick
out.  You can then click on the word with the mouse, and it will pop
up a menu with the possible corrections.

Anyway, I use extents to do this, and I have been quite happy with
the results.  The only problem is that if I mistype a word, and
correct it with the mouse instead of the keyboard, it leaves the
extent around, and you gut some ugliness on the screen.  I haven't
been able to figure out how to hook into the modification of an event,
and I didn't know how to make a keymap that would delete the
surrounding extent if anything were inserted or deleted, but would
allow the user to move around the word freely.

I think it is one of those nice showy things that makes XEmacs so
cool, and I would love to see it get in the main distribution, but I
feel like I need to get rid of this major err bug before I pawn it off
on the rest of the world.

Anybody have any thoughts?  

I would be happy to mail my additions to anyone who wants to take a
look at it.

Hunter

