From xemacs-m  Sun Jul 13 13:06:05 1997
Received: from cnri.reston.va.us (cnri.CNRI.Reston.VA.US [132.151.1.1])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id NAA15883
	for <xemacs-beta@xemacs.org>; Sun, 13 Jul 1997 13:06:04 -0500 (CDT)
Received: from newcnri.CNRI.Reston.Va.US (newcnri [132.151.1.84]) by cnri.reston.va.us (8.8.5/8.7.3) with SMTPid OAA27522; Sun, 13 Jul 1997 14:08:58 -0400 (EDT)
Received: from anthem.CNRI.Reston.Va.US by newcnri.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id OAA05076; Sun, 13 Jul 1997 14:10:08 -0400
Received: by anthem.CNRI.Reston.Va.US (SMI-8.6/SMI-SVR4)
	id OAA01073; Sun, 13 Jul 1997 14:09:00 -0400
Date: Sun, 13 Jul 1997 14:09:00 -0400
Message-Id: <199707131809.OAA01073@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: Olivier Galibert <Olivier.Galibert@mines.u-nancy.fr>
Cc: Xemacs-beta ML <xemacs-beta@xemacs.org>
Subject: Re: Two problems with Helsinki (and previous betas also)
References: <19970712061537.61444@iria.mines.u-nancy.fr>
X-Mailer: VM 6.32 under 20.3 "Sofia" XEmacs  Lucid (beta9)
Reply-To: bwarsaw@python.org
X-Attribution: BAW
X-Oblique-Strategy: Ask a friend
X-Url: http://www.python.org/~bwarsaw


>>>>> "OG" == Olivier Galibert <Olivier.Galibert@mines.u-nancy.fr> writes:

    OG> 2- Load a C file. Set "auto delete selection" (pending-del I
    OG> guess ?). Select a region. Press backspace. The region is
    OG> ignored. Delete or typing some text would have had deleted the
    OG> region as expected. You just can't guess how much that
    OG> particular one is getting on my nerves. This bug sees to
    OG> appear only in cc-mode.

Try this patch:

-------------------- snip snip --------------------
*** cc-cmds.el	1997/07/09 21:31:40	5.24
--- cc-cmds.el	1997/07/13 18:07:37
***************
*** 639,643 ****
  ;; set up electric character functions to work with pending-del,
  ;; (a.k.a. delsel) mode.  All symbols get the t value except
! ;; c-electric-delete which gets 'supersede.
  (mapcar
   (function
--- 639,643 ----
  ;; set up electric character functions to work with pending-del,
  ;; (a.k.a. delsel) mode.  All symbols get the t value except
! ;; the functions which delete, which gets 'supersede.
  (mapcar
   (function
***************
*** 652,657 ****
     c-electric-lt-gt
     c-electric-colon))
! (put 'c-electric-delete 'delete-selection 'supersede) ; delsel
! (put 'c-electric-delete 'pending-delete   'supersede) ; pending-del
  
  
--- 652,659 ----
     c-electric-lt-gt
     c-electric-colon))
! (put 'c-electric-delete    'delete-selection 'supersede) ; delsel
! (put 'c-electric-delete    'pending-delete   'supersede) ; pending-del
! (put 'c-electric-backspace 'delete-selection 'supersede) ; delsel
! (put 'c-electric-backspace 'pending-delete   'supersede) ; pending-del
  
  

