delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/05/28/15:09:22

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
Message-ID: <4A1EE154.2090603@cornell.edu>
Date: Thu, 28 May 2009 15:09:08 -0400
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: emacs -nw keypad, tpu-edt.el, and C-h
References: <4A168F2B DOT 4020805 AT cornell DOT edu> <99716858969849F89D65A4015B9948F7 AT HEPNTLTIM3> <4A1C9952 DOT 8040100 AT cornell DOT edu> <AECBDC9D8B31450CA07DD85A423AD033 AT dc DOT pp DOT rl DOT ac DOT uk> <4A1D9D05 DOT 40407 AT cornell DOT edu> <838wkhsm5e DOT fsf AT gnu DOT org> <4A1E7C50 DOT 8020505 AT cornell DOT edu> <416096c60905280702m6e4cb748ic305be3592d81c70 AT mail DOT gmail DOT com> <4A1EA704 DOT 3040500 AT cornell DOT edu> <17393e3e0905280907s4cdf3c4ek9b8896dbba69cb48 AT mail DOT gmail DOT com> <416096c60905281010t7538d5c5secacd14b87139b86 AT mail DOT gmail DOT com>
In-Reply-To: <416096c60905281010t7538d5c5secacd14b87139b86@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 5/28/2009 1:10 PM, Andy Koppe wrote:
> Could the default for the terminals be changed? Yes, easily, but only
> at the cost of breaking any applications that always expect ^H for
> Backspace.

Sorry, I guess I haven't been expressing myself very well.  I wasn't 
suggesting any particular course of action, and I certainly don't want 
to break other applications.  I'm simply describing the symptoms and 
asking what can be done to make emacs work as well as possible for 
cygwin users.  I'm thinking of users who are experienced with emacs on 
other platforms and are startled when C-h doesn't work as they expected, 
as well as new emacs users who see a splash screen telling them to type 
C-h for help and then find that it doesn't work.

Let me start over and try to be more clear.

I almost always use emacs under X, where, by default, C-h is the help 
key (as advertised on the emacs splash screen) and the Backspace key 
behaves the way one would expect.  If you start emacs under X and type 
'C-h k <backspace>' (which is asking emacs to tell you what the 
backspace key does), you get the following response:

	DEL (translated from <backspace>) runs the command...

So emacs knows you've hit the backspace key and knows how it should be 
interpreted, whereas C-h (pressing h while holding down control) is 
treated as the help key.

In the course of trying to debug Tim's problem that started this thread, 
I had occasion to use emacs in various text terminals, and I was 
surprised to find that, by default, emacs behaves differently in that 
setting.  (One has to use F1 for help instead of C-h, and there's no 
distinction between C-h and <backspace>.)

This difference does *not* occur in the one linux system that I have 
access to (which happens to be Redhat linux).  If I log into the console 
on that machine and start emacs (with no window system running), C-h is 
help and <backspace> is DEL.

It would be nice if we could get emacs on cygwin to work the same way it 
does on other platforms.  If it can't be done without breaking other 
things, so be it.  In that case, as I said before, I'll try to change 
the splash screen to say that F1 is the help key (when emacs is started 
in a context where C-h doesn't function as the help key).  It might 
actually be an emacs bug that this doesn't happen automatically; I've 
asked about this on the emacs-devel list 
(http://lists.gnu.org/archive/html/emacs-devel/2009-05/msg00569.html).

Ken

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019