emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DEL vs Backspace


From: Stefan Monnier
Subject: Re: DEL vs Backspace
Date: Sun, 25 Apr 2021 13:25:15 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen [2021-04-25 18:49:43] wrote:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> Maybe we should inverse this mapping.  Similarly for RET-vs-return and
>> TAB-vs-tab.

[ And I forgot to mention ESC-vs-escape in the list.  ]

>> Another benefit in the long run would be to free C-i and C-m for the
>> users to bind as they please in GUI frames.
>
> Sounds good to me.

Note that beside the question of whether we want it or not, there's the
question of how to do it without breaking (too much) existing code and
use cases.

Maybe we could start by adding a DEL => backspace remapping *without*
removing the backspace => DEL remapping?

Still, as modes start changing their keymaps to place bindings on
`backspace` we'll end up with situations where a minor modes has
a mapping for DEL and the major mode has a different mapping for
`backspace` and they'll end up chosen based on the incidental "tty or
GUI?" distinction rather than based on the minor modes bindings's
precedence over major modes's.

This said, such problems already exist since a fair number of modes
mistakently bind commands to `tab` instead of TAB or to `return` instead
of RET, leading to overriding minor-vs-major precedence rules.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]