Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Joe Buehler Newsgroups: gmane.os.cygwin Subject: Re: Backspace and C-h in emacs -nw Date: Mon, 26 Aug 2002 12:24:27 -0400 Lines: 47 Message-ID: <3D6A563B.2020300@hekimian.com> References: NNTP-Posting-Host: hekimian.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1030378985 12606 206.205.138.10 (26 Aug 2002 16:23:05 GMT) X-Complaints-To: usenet AT main DOT gmane DOT org NNTP-Posting-Date: Mon, 26 Aug 2002 16:23:05 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.0.0) Gecko/20020530 X-Accept-Language: en-us, en Peter Ring wrote: > C-h: > DEL runs the command backward-delete-char-untabify > > Backspace: > C-d runs the command delete-char - If you look at the emacs news (accessible from the help menu, also in /usr/doc/emacs-21.2/NEWS), you will find an entry for emacs 21.1 related to this, which I have attached below. - Keep in mind that rxvt may also be doing something with the key mappings -- I don't know. - Control-H is the same as backspace on character-mode terminals, so they cannot be distinguished. If I understand correctly, rxvt is an X11 app, so this is not related to your problem, but it is something to keep in mind for the text-mode emacs running in a cygwin console window. Joe Buehler ** The default binding of the Delete key has changed. The new user-option `normal-erase-is-backspace' can be set to determine the effect of the Delete and Backspace function keys. On window systems, the default value of this option is chosen according to the keyboard used. If the keyboard has both a Backspace key and a Delete key, and both are mapped to their usual meanings, the option's default value is set to t, so that Backspace can be used to delete backward, and Delete can be used to delete forward. On keyboards which either have only one key (usually labeled DEL), or two keys DEL and BS which produce the same effect, the option's value is set to nil, and these keys delete backward. If not running under a window system, setting this option accomplishes a similar effect by mapping C-h, which is usually generated by the Backspace key, to DEL, and by mapping DEL to C-d via `keyboard-translate'. The former functionality of C-h is available on the F1 key. You should probably not use this setting on a text-only terminal if you don't have both Backspace, Delete and F1 keys. Programmatically, you can call function normal-erase-is-backspace-mode to toggle the behavior of the Delete and Backspace keys. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/