From xemacs-m  Wed Jun  4 12:00:16 1997
Received: from CNRI.Reston.VA.US (CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with SMTP id MAA16901
	for <xemacs-beta@xemacs.org>; Wed, 4 Jun 1997 12:00:15 -0500 (CDT)
Received: from newcnri.cnri.reston.va.us by CNRI.Reston.VA.US id aa08783;
          4 Jun 97 13:03 EDT
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id NAA06423; Wed, 4 Jun 1997 13:03:54 -0400
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id NAA00505; Wed, 4 Jun 1997 13:03:17 -0400
Date: Wed, 4 Jun 1997 13:03:17 -0400
Message-Id: <199706041703.NAA00505@anthem.CNRI.Reston.Va.US>
From: "Barry A. Warsaw" <bwarsaw@CNRI.Reston.VA.US>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
To: "Gary D. Foster" <Gary.Foster@corp.sun.com>
Cc: xemacs-beta@xemacs.org
Subject: Re: cc-mode delete behavior [PATCH]
References: <bcipvu2pbof.fsf@corp.Sun.COM>
X-Mailer: VM 6.30 under 19.15p4 XEmacs Lucid
Reply-To: cc-mode-help@python.org
X-Attribution: BAW
X-Oblique-Strategy: Take away the elements in order of apparent non-importance
X-Url: http://www.python.org/~bwarsaw


>>>>> "GDF" == Gary D Foster <Gary.Foster@Corp.Sun.COM> writes:

    GDF> Ok, I put a patch together to make cc-mode honor the desired
    GDF> delete behavior (either forwards or backwards).  It works in
    GDF> both normal and 'hungry' mode and seems to work well in tty
    GDF> mode as well.  I also removed the hook and rebound DEL to the
    GDF> c-electric-delete function via define-keys so I can hopefully
    GDF> dispel all remaining doubts that this is a "hook solution".
    GDF> It's not.  This should prove that. ;)

    GDF> It was pretty simple to get it to check the desired delete
    GDF> direction, and it should work normally in nearly all cases
    GDF> (checks with boundp/fboundp, etc).  This patch should be
    GDF> applied against the version of cc-mode.el in the b3 release,
    GDF> since it 'undoes' the stuff I did to cc-mode before.

Before I add this to CC Mode 5 (and has anybody here played with it
yet?), I'd like to hear from the XEmacs maintainers that this
mechanism is blessed.  From what I've been following it seems that
there's still some controversy over The Right Way, but maybe I've just
been swamped and have missed the Blessing.  This approach seems fine
to me, but I'll support whatever way you guys decide.

-Barry

