mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-18 18:00:11 +00: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:
|
||||
/* We have scanned the entire keymap, and not found a binding for
|
||||
IDX. Let's add one. */
|
||||
if (!remove)
|
||||
{
|
||||
Lisp_Object elt;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue