From xemacs-m  Wed Jun  4 16:19:56 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id QAA26130
	for <xemacs-beta@xemacs.org>; Wed, 4 Jun 1997 16:19:54 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id XAA20790; Wed, 4 Jun 1997 23:19:48 +0200 (MET DST)
To: Gary.Foster@Corp.Sun.COM (Gary D. Foster)
Cc: XEmacs Developers <xemacs-beta@xemacs.org>
Subject: Re: cc-mode delete behavior [PATCH]
References: <bcipvu2pbof.fsf@corp.Sun.COM> <kiglo4qjjgt.fsf@jagor.srce.hr> <bciiuzuqjae.fsf@corp.Sun.COM> <kighgfejhf5.fsf@jagor.srce.hr> <bci67vuqdvs.fsf@corp.Sun.COM>
X-Attribution: Hrv
X-Face: Mie8:rOV<\c/~z{s.X4A{!?vY7{drJ([U]0O=W/<W*SMo/Mv:58:*_y~ki>xDi&N7XG
        KV^$k0m3Oe/)'e%3=$PCR&3ITUXH,cK>]bci&<qQ>Ff%x_>1`T(+M2Gg/fgndU%k*ft
        [(7._6e0n-V%|%'[c|q:;}td$#INd+;?!-V=c8Pqf}3J
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 04 Jun 1997 23:19:48 +0200
In-Reply-To: Gary.Foster@Corp.Sun.COM's message of 04 Jun 1997 14:03:51 -0700
Message-ID: <kig67vurrpn.fsf@jagor.srce.hr>
Lines: 88
X-Mailer: Gnus v5.4.52/XEmacs 20.3(beta3)

Gary.Foster@Corp.Sun.COM (Gary D. Foster) writes:

> > Please use the `delete' and `backspace' terminology.  In Emacs, DEL is
> > most often used as an alias for ?\177.  If we remove the C code
> > forcing \177 to `delete' and put it to `function-key-map' instead,
> > then DEL and `delete' will suddenly become totally different thing
> > (only equal by default).
> 
> Right now, with xemacs -q, pressing the little grey key labelled 'del'
> on my keyboard (and all the others I've tried) generates a \177
> sequence.

I beg to differ.  On TTY-s, it generates either \177 or \008, and on X 
it generates either the Delete or BackSpace event.

> If I remove the mapping and move it to function-key-map instead, I
> assume that you'll give me credit for enough intelligence to follow
> that with a one-line change in keydefs.el also.

Uhm, I don't consider you unintelligent.  Please stop accusing me of
giving you too little credit.  I'm just asking.  You have a right to
answer, or not.

So, I'll ask once again: do your DEL examples mean \177 or delete?

> > I thought I was clear in "that want to provide their own backspace and 
> > delete functions"?
> 
> What are you trying to say here?  If you want to provide your own
> backspace or delete function, you do it just exactly like you would
> before.  You write:
> 
> defun hrvoje-super-delete ...)
> 
> and
> 
> (define-key hrvoje-map 'hrvoje-super-delete)

But where is the key?  That was the main part of the question! :-)

Is it \177 or delete or backspace?  Do they differ?

> How is this *any* different than it was before?  That's *exactly* how
> it was before.

I didn't say it was different than before; don't put words into my
mouth.  I'd accept something different than before, anyway.

> > > 	and then inside the delete function check whether
> > > 	delete-erases-forward is t or nil and delete in the direction
> > > 	that the user expects.
> > 
> > I'm not sure I like this.  I'd like to hear others' opinions regarding
> > this particular point.
> 
> Uhm... from the original cc-mode, before I touched it:

Yes, okay.  I just asked what the others think about the concept, and
I'd still like to know.

My inquiries are not personal attacks against you.  I'd just like to
discuss the concepts you introduce with you and all the others.  You
are biased, as the author. :-)

What I meant is, in message-mode (or whatever):

    DEL runs the command backspace-or-delete

See?

> > Please explain the \177 <-> delete discrepancy.
> 
> I think I've already explained that in quite enough detail.  When and
> if we decide to do the function-key-map change to cause the little
> grey key to generate 'delete I'll change everything else too.  Until
> then, that funny little key still generates \177.

See above.

> Geez, [...]  Sheesh,

Please don't think that I accuse you whenever I object to something.
If you don't like discussing these things, then don't.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
ED WILL NOT CORRUPT YOUR PRECIOUS BODILY FLUIDS!!

