all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* inconsistent bindings of backspace and delete between X and xterm
@ 2004-02-07  3:35 Dale Hagglund
  2004-02-07 14:38 ` Andreas Schwab
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: Dale Hagglund @ 2004-02-07  3:35 UTC (permalink / raw)


[I read bug-gnu-emacs via the gatewayed newsgroup.  Please cc me on
any followups, if possible. --rdh]

I was experimenting with emacs 21.3 running under X and then inside
xterm, and I observe the following behaviour.  In all cases, I started
emacs with the -q flag.

1. Under X, the backspace and delete keys generate the respective
   window-system events, each of which is mapped to DEL via the
   function-key-map, which is then bound to
   `delete-previous-character'.

2. Under xterm version 4.2.99.903(174), backspace sends DEL and delete
   sends `ESC [ 3 ~'.  Emacs treats DEL, of course, as
   `delete-previous-character', but `ESC [ 3 ~' is mapped to the event
   <deletechar>, which is bound to `delete-char'.

This behaviour is inconsistent.  In each case, emacs can distinguish
between the Delete and Backspace keys, but in one environment they
behave, and in the other, differently.  Also, is there any reason why
`ESC [ 3 ~' shouldn't be mapped to <delete> instead of <deletechar>.

Is this intentional?  I don't really care which way the inconsistency
is resolved, but I think it should be.

Dale Hagglund.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2004-02-11 10:03 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-07  3:35 inconsistent bindings of backspace and delete between X and xterm Dale Hagglund
2004-02-07 14:38 ` Andreas Schwab
2004-02-07 17:35   ` Dale Hagglund
2004-02-07 18:45     ` Andreas Schwab
2004-02-08  0:32       ` Dale Hagglund
2004-02-08  6:03         ` Eli Zaretskii
2004-02-07 15:41 ` Eli Zaretskii
2004-02-07 15:56   ` Andreas Schwab
2004-02-07 17:27     ` Dale Hagglund
2004-02-07 18:40       ` Andreas Schwab
2004-02-07 17:21   ` Dale Hagglund
2004-02-11  0:13     ` Dale Hagglund
2004-02-11  6:57       ` Eli Zaretskii
2004-02-11 10:03         ` Dale Hagglund
     [not found] ` <mailman.2052.1076164878.928.bug-gnu-emacs@gnu.org>
2004-02-07 21:00   ` Thomas Dickey

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.