bug-bash
[Top][All Lists]
Advanced

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

Re: bind allows "impossible" key bindings without warning


From: Chet Ramey
Subject: Re: bind allows "impossible" key bindings without warning
Date: Fri, 3 Jan 2025 16:40:26 -0500
User-agent: Mozilla Thunderbird

On 1/3/25 11:04 AM, Hauke Laging wrote:

This happened to me:
I defined a key binding consisting of a control key and a regular key
(C-h IIRC but that does not matter).

They're not impossible, simply ambiguous. Readline waits a half second
for an additional disambiguating character by default. As Koichi said,
you can increase that to whatever duration is comfortable for you.

The problem which took me quite
some time to understand (because I never use C-h) was that a key binding
for the first key already existed. That prevented the longer key
sequence from being recognized.

I suggest that bind detects this kind of problem (which should be very
easy), does configure the new key binding (compatibility) but tells the
user what the problem is (e.g. prints the conflicting binding).

People purposely use bindings like this all the time.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

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