From xemacs-m  Fri May 16 14:56:06 1997
Received: from mercury.Sun.COM (mercury.Sun.COM [192.9.25.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id OAA22352
	for <xemacs-beta@xemacs.org>; Fri, 16 May 1997 14:56:05 -0500 (CDT)
Received: from Corp.Sun.COM ([129.145.35.78]) by mercury.Sun.COM (SMI-8.6/mail.byaddr) with SMTP id NAA11710; Fri, 16 May 1997 13:09:09 -0700
Received: from legba.Corp.Sun.COM by Corp.Sun.COM (SMI-8.6/SMI-5.3)
	id MAA16598; Fri, 16 May 1997 12:55:41 -0700
Received: by legba.Corp.Sun.COM (SMI-8.6/SMI-SVR4)
	id MAA08320; Fri, 16 May 1997 12:54:57 -0700
To: bwarsaw@python.org
Cc: Hrvoje Niksic <hniksic@srce.hr>,
        XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: delbs.el
References: <kigaflv6yt4.fsf@jagor.srce.hr> 	<bcig1vn2qq0.fsf@corp.Sun.COM> 	<kig911f6y6j.fsf@jagor.srce.hr> 	<bcienb72oyn.fsf@corp.Sun.COM> <199705161947.PAA02629@anthem.CNRI.Reston.Va.US>
Mime-Version: 1.0 (generated by tm-edit 7.106)
Content-Type: text/plain; charset=US-ASCII
From: Gary.Foster@Corp.Sun.COM (Gary D. Foster)
Date: 16 May 1997 12:54:56 -0700
In-Reply-To: "Barry A. Warsaw"'s message of Fri, 16 May 1997 15:47:52 -0400
Message-ID: <bcid8qr2nvz.fsf@corp.Sun.COM>
Lines: 26
X-Mailer: Gnus v5.4.52/XEmacs 20.2

"Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US> writes:

> >>>>> "GDF" == Gary D Foster <Gary.Foster@Corp.Sun.COM> writes:
> 
>     GDF> I've added a hook in so that packages like "cc-mode" can use
>     GDF> their own functions (such as c-electric-delete) when and
>     GDF> where they choose without tromping on the other modes and
>     GDF> packages.
> 
> Will I have to change anything in CC Mode to be a good citizen here?

*VERY* minor changes.  I've already made the necessary changes to
cc-mode and cperl-mode as an example on how to coexist peacefully.

All it takes is instead of rebinding the key, you call make-local-hook 
and hang your delete function off the hook.  If your delete function
returns a non-nil value, the editing chore is considered "handled" and 
doesn't get messed with at all.

What I'm shooting for here is minimum impact on existing stuff and
existing habits.  Once all the mechanisms are in place, people can
then start taking advantage of them to do fancier stuff but my first
goal is to change the framework without changing any *visible*
behavior.

-- Gary F.

