Function: help--shadow-lookup

help--shadow-lookup is a byte-compiled function defined in help.el.gz.

Signature

(help--shadow-lookup KEYMAP KEY ACCEPT-DEFAULT REMAP)

Documentation

Like lookup-key, but with command remapping.

Return nil if the key sequence is too long.

Source Code

;; Defined in /usr/src/emacs/lisp/help.el.gz
(defun help--shadow-lookup (keymap key accept-default remap)
  "Like `lookup-key', but with command remapping.
Return nil if the key sequence is too long."
  ;; Converted from shadow_lookup in keymap.c.
  (let ((value (lookup-key keymap key accept-default)))
    (cond ((and (fixnump value) (<= 0 value)))
          ((and value remap (symbolp value))
           (or (command-remapping value nil keymap)
               value))
          (t value))))