diff options
| author | Robert Pluim | 2023-03-20 16:09:51 +0100 |
|---|---|---|
| committer | Robert Pluim | 2023-03-20 16:21:36 +0100 |
| commit | 6bf441ff11540f2c49cb4f9d506597217cdc73d6 (patch) | |
| tree | 0541344e336037717847aa91fc18f7359fb96692 | |
| parent | 786de66ec3c4cff90cafd0f8a68f9bce027e9947 (diff) | |
| download | emacs-6bf441ff11540f2c49cb4f9d506597217cdc73d6.tar.gz emacs-6bf441ff11540f2c49cb4f9d506597217cdc73d6.zip | |
Warn package authors away from keymap-unset with REMOVE
* doc/lispref/keymaps.texi (Changing Key Bindings): Ask package
authors to not use the REMOVE argument to `keymap-unset'.
| -rw-r--r-- | doc/lispref/keymaps.texi | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index c17c8a2dc3f..0eea696c612 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi | |||
| @@ -1452,6 +1452,12 @@ keymap; using @var{remove} instead will allow the key in the parent keymap | |||
| 1452 | to be used. | 1452 | to be used. |
| 1453 | @end defun | 1453 | @end defun |
| 1454 | 1454 | ||
| 1455 | Note: using @code{keymap-unset} with @var{remove} non-@code{nil} is | ||
| 1456 | intended for users to put in their init file; Emacs packages should | ||
| 1457 | avoid using it if possible, since they have complete control over | ||
| 1458 | their own keymaps anyway, and they should not be altering other | ||
| 1459 | packages' keymaps. | ||
| 1460 | |||
| 1455 | This example creates a sparse keymap and makes a number of | 1461 | This example creates a sparse keymap and makes a number of |
| 1456 | bindings in it: | 1462 | bindings in it: |
| 1457 | 1463 | ||