From xemacs-m  Sat Dec 21 05:03:06 1996
Received: from altair.xemacs.org (steve@xemacs.miranova.com [206.190.83.19])
          by xemacs.cs.uiuc.edu (8.8.4/8.8.4) with ESMTP
	  id FAA16689 for <xemacs-beta@xemacs.org>; Sat, 21 Dec 1996 05:03:05 -0600 (CST)
Received: (from steve@localhost)
          by altair.xemacs.org (8.8.4/8.8.4)
	  id DAA26454; Sat, 21 Dec 1996 03:12:55 -0800
Sender: steve@xemacs.org
To: xemacs-beta@xemacs.org
Subject: Re: extent/keymap question
References: <yvtbubqmhoq.fsf@corona.pixar.com>
X-Url: http://www.miranova.com/%7Esteve/
Mail-Copies-To: never
X-Face: #!T9!#9s-3o8)*uHlX{Ug[xW7E7Wr!*L46-OxqMu\xz23v|R9q}lH?cRS{rCNe^'[`^sr5"
 f8*@r4ipO6Jl!:Ccq<xoV[Qz2u8<8-+Vwf2gzJ44lf_/y9OaQ`@#Q65{U4/TC)i2`~/M&QI$X>p:9I
 OSS'2{-)-4wBnVeg0S\O4Al@)uC[pD|+
X-Attribution: sb
From: Steven L Baur <steve@miranova.com>
In-Reply-To: Hunter Kelly's message of 19 Dec 1996 11:56:37 -0800
Mime-Version: 1.0 (generated by tm-edit 7.96)
Content-Type: text/plain; charset=US-ASCII
Date: 21 Dec 1996 03:12:54 -0800
Message-ID: <m24thg2ls9.fsf@altair.xemacs.org>
Lines: 49
X-Mailer: Red Gnus v0.72/XEmacs 19.15

>>>>> "Hunter" == Hunter Kelly <retnuh@corona.pixar.com> writes:

Hunter> I wrote an addition to ispell.el for the ispell minor mode, which I
Hunter> quite like. ...

Hunter> I instead change the face of the word to something obvious and
Hunter> easy to pick out.  You can then click on the word with the
Hunter> mouse, and it will pop up a menu with the possible
Hunter> corrections.

Cool.

Hunter> Anyway, I use extents to do this, and I have been quite happy
Hunter> with the results.  The only problem is that if I mistype a
Hunter> word, and correct it with the mouse instead of the keyboard,
Hunter> it leaves the extent around, and you gut some ugliness on the
Hunter> screen.  I haven't been able to figure out how to hook into
Hunter> the modification of an event,

There are comments in the code indicating where such hooks would be
placed were they to be implemented.

Hunter> and I didn't know how to make a keymap that would delete the
Hunter> surrounding extent if anything were inserted or deleted, but
Hunter> would allow the user to move around the word freely.

Examine the `after-change-functions' hook, that might be able to
accomplish what you're after.

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

Hunter> Anybody have any thoughts?  

Also examine the pending-del stuff.  That is the most similar thing I
can think of (except that you can't edit in a region since the first
insertion turns of the region).

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


-- 
steve@miranova.com baur
Unsolicited commercial e-mail will be billed at $250/message.
"That Bill Clinton.  He probably doesn't know how to log on to the
Internet."  -- Rush Limbaugh, noted Computer Expert

