[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62207: 29.0.60; Trying to remove non-existent key binding instead ad
From: |
Jonas Bernoulli |
Subject: |
bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding |
Date: |
Wed, 15 Mar 2023 17:07:42 +0100 |
(keymap-unset map key t) is supposed to remove a binding completely,
and that works if there actually is a binding:
(let ((map (make-sparse-keymap)))
(keymap-set map "i" 'bound)
(keymap-unset map "i" t)
map)
=> (keymap)
However if you try to remove a binding that does not actually exist,
then the opposite happens, a "nil binding" is *added*:
(let ((map (make-sparse-keymap)))
(keymap-unset map "i" t)
map)
=> (keymap (105))
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding,
Jonas Bernoulli <=
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Jonas Bernoulli, 2023/03/15
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Robert Pluim, 2023/03/15
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Stefan Monnier, 2023/03/15
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Jonas Bernoulli, 2023/03/15
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Stefan Monnier, 2023/03/17
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Jonas Bernoulli, 2023/03/20
- bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Stefan Monnier, 2023/03/20
bug#62207: 29.0.60; Trying to remove non-existent key binding instead adds a binding, Eli Zaretskii, 2023/03/15