]> git.eshelyaron.com Git - emacs.git/commitdiff
Warn package authors away from keymap-unset with REMOVE
authorRobert Pluim <rpluim@gmail.com>
Mon, 20 Mar 2023 15:09:51 +0000 (16:09 +0100)
committerRobert Pluim <rpluim@gmail.com>
Mon, 20 Mar 2023 15:21:36 +0000 (16:21 +0100)
* doc/lispref/keymaps.texi (Changing Key Bindings): Ask package
authors to not use the REMOVE argument to `keymap-unset'.

doc/lispref/keymaps.texi

index c17c8a2dc3f42e2818641b53cdd868fcb09ad4b0..0eea696c6127d04ff8f25305cc8b668df0637282 100644 (file)
@@ -1452,6 +1452,12 @@ keymap; using @var{remove} instead will allow the key in the parent keymap
 to be used.
 @end defun
 
+Note: using @code{keymap-unset} with @var{remove} non-@code{nil} is
+intended for users to put in their init file; Emacs packages should
+avoid using it if possible, since they have complete control over
+their own keymaps anyway, and they should not be altering other
+packages' keymaps.
+
   This example creates a sparse keymap and makes a number of
 bindings in it: