Function: viper-key-to-character
viper-key-to-character is a byte-compiled function defined in
viper-util.el.gz.
Signature
(viper-key-to-character KEY)
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper-util.el.gz
;; key is supposed to be in viper's representation, e.g., (control l), a
;; character, etc.
(defun viper-key-to-character (key)
(cond ((eq key 'space) ?\ )
((eq key 'delete) ?\C-?)
((eq key 'return) ?\C-m)
((eq key 'backspace) ?\C-h)
((and (symbolp key)
(= 1 (length (symbol-name key))))
(string-to-char (symbol-name key)))
((and (listp key)
(eq (car key) 'control)
(symbol-name (nth 1 key))
(= 1 (length (symbol-name (nth 1 key)))))
(read (format "?\\C-%s" (symbol-name (nth 1 key)))))
(t key)))