mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-06 06:20:55 -08:00
Don't add a key binding when REMOVE is non-nil
* src/keymap.c (store_in_keymap): Don't add a nil keybinding if we've been asked to remove a non-existent binding. (Bug#62207)
This commit is contained in:
parent
a4a9ffdd80
commit
bb3e0ded9e
1 changed files with 16 additions and 15 deletions
|
|
@ -887,6 +887,7 @@ store_in_keymap (Lisp_Object keymap, register Lisp_Object idx,
|
||||||
keymap_end:
|
keymap_end:
|
||||||
/* We have scanned the entire keymap, and not found a binding for
|
/* We have scanned the entire keymap, and not found a binding for
|
||||||
IDX. Let's add one. */
|
IDX. Let's add one. */
|
||||||
|
if (!remove)
|
||||||
{
|
{
|
||||||
Lisp_Object elt;
|
Lisp_Object elt;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue