diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-18 14:06:00 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-18 14:06:30 +0200 |
commit | 0dc75daf1189d2327c6efa4d747fa98fcba03ea3 (patch) | |
tree | ff53b16faa9c8fef8530590abca8f8e99ba44ccb /doc/lispref/keymaps.texi | |
parent | d7265d58f8dbab8049be4be0fa3f474e7fef7be6 (diff) | |
download | emacs-0dc75daf1189d2327c6efa4d747fa98fcba03ea3.tar.gz |
Filter out NS non-key events from `where-is-internal'
* doc/lispref/keymaps.texi (Scanning Keymaps): Document it.
* lisp/keymap.el (make-non-key-event): New function.
* lisp/term/common-win.el (x-setup-function-keys): Mark ns events
as not being keys (bug#55940).
* src/keymap.c (Fwhere_is_internal): Filter out key sequences that
are marked as being non-keys.
Diffstat (limited to 'doc/lispref/keymaps.texi')
-rw-r--r-- | doc/lispref/keymaps.texi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lispref/keymaps.texi b/doc/lispref/keymaps.texi index a037c228f13..a27b0ea366c 100644 --- a/doc/lispref/keymaps.texi +++ b/doc/lispref/keymaps.texi @@ -2209,6 +2209,11 @@ If @var{no-remap} is @code{nil}, return the bindings for non-@code{nil}, return the bindings for @var{command}, ignoring the fact that it is remapped. @end table + +If a command maps to a key binding like @code{[some-event]}, and +@code{some-event} has a symbol plist containing a non-@code{nil} +@code{non-key-event} property, then that binding is ignored by +@code{where-is-internal}. @end defun @deffn Command describe-bindings &optional prefix buffer-or-name |