Function: help-fns--most-relevant-active-keymap
help-fns--most-relevant-active-keymap is a byte-compiled function
defined in help-fns.el.gz.
Signature
(help-fns--most-relevant-active-keymap)
Documentation
Return the name of the most relevant active keymap.
The heuristic to determine which keymap is most likely to be relevant to a user follows this order:
1. keymap text property at point
2. local-map text property at point
3. the current-local-map
This is used to set the default value for the interactive prompt
in describe-keymap. See also Searching the Active Keymaps.
Source Code
;; Defined in /usr/src/emacs/lisp/help-fns.el.gz
(defun help-fns--most-relevant-active-keymap ()
"Return the name of the most relevant active keymap.
The heuristic to determine which keymap is most likely to be
relevant to a user follows this order:
1. `keymap' text property at point
2. `local-map' text property at point
3. the `current-local-map'
This is used to set the default value for the interactive prompt
in `describe-keymap'. See also `Searching the Active Keymaps'."
(help-fns-find-keymap-name (or (get-char-property (point) 'keymap)
(if (get-text-property (point) 'local-map)
(get-char-property (point) 'local-map)
(current-local-map)))))