Function: tmm-define-keys
tmm-define-keys is a byte-compiled function defined in tmm.el.gz.
Signature
(tmm-define-keys MINIBUFFER)
Source Code
;; Defined in /usr/src/emacs/lisp/tmm.el.gz
;; This returns the old map.
(defun tmm-define-keys (minibuffer)
(let ((map (make-sparse-keymap)))
(suppress-keymap map t)
(dolist (c tmm-short-cuts)
(if (listp tmm-shortcut-style)
(define-key map (char-to-string c) 'tmm-shortcut)
;; only one kind of letters are shortcuts, so map both upcase and
;; downcase input to the same
(define-key map (char-to-string (downcase c)) 'tmm-shortcut)
(define-key map (char-to-string (upcase c)) 'tmm-shortcut)))
(if minibuffer
(progn
(define-key map [pageup] 'tmm-goto-completions)
(define-key map [prior] 'tmm-goto-completions)
(define-key map "\ev" 'tmm-goto-completions)
(define-key map "\C-n" 'next-history-element)
(define-key map "\C-p" 'previous-history-element)))
(prog1 (current-local-map)
(use-local-map (append map (current-local-map))))))