Function: kkp--handle-letter-terminators
kkp--handle-letter-terminators is a natively compiled function defined
in kkp.el.
Signature
(kkp--handle-letter-terminators TERMINATOR TERMINAL-INPUT)
Documentation
Handle input sequences ending with letter terminators.
TERMINATOR is the last character in the TERMINAL-INPUT sequence, indicating the type of the terminator. TERMINAL-INPUT is a list of characters representing the terminal input sequence.
Source Code
;; Defined in /nix/store/0igl9q4k4n87vg4h2gnnrlha21kx9biv-emacs-packages-deps/share/emacs/site-lisp/elpa/kkp-20260706.858/kkp.el
(defun kkp--handle-letter-terminators (terminator terminal-input)
"Handle input sequences ending with letter terminators.
TERMINATOR is the last character in the TERMINAL-INPUT sequence,
indicating the type of the terminator. TERMINAL-INPUT is a list of
characters representing the terminal input sequence."
(let* ((input-string (mapconcat 'char-to-string (remq terminator terminal-input) ""))
(input-parts (split-string input-string ";"))
(modifier-parts (split-string (or (cl-second input-parts) "") ":")) ;; list of modifiers and event types
(modifier-string (cl-first modifier-parts))
(modifier-num (if (not (string-empty-p modifier-string))
(1- (string-to-number modifier-string))
0))
(modifier-str (kkp--create-modifiers-string modifier-num))
(key-name (alist-get terminator kkp--non-printable-keys-with-letter-terminator)))
(kbd (concat modifier-str key-name))))