1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-03 10:31:37 -08:00

Use defvar-keymap in tests

* test/lisp/button-tests.el (button-tests--map):
* test/lisp/emacs-lisp/edebug-tests.el (edebug-tests-keymap):
* test/lisp/help-tests.el (help-tests-remap-map)
(help-tests-major-mode-map, help-tests-minor-mode-map):
* test/lisp/kmacro-tests.el (kmacro-tests-keymap):
* test/lisp/repeat-tests.el (repeat-tests-map)
(repeat-tests-repeat-map):
* test/src/keymap-tests.el (keymap-tests-minor-mode-map)
(keymap-tests-major-mode-map): Use defvar-keymap.
This commit is contained in:
Stefan Kangas 2021-12-26 21:52:56 +01:00
parent d8fc436bbb
commit d4353da0ad
6 changed files with 76 additions and 94 deletions

View file

@ -53,22 +53,20 @@ Since `should' failures which happen inside `post-command-hook' will
be trapped by the command loop, this preserves them until we get
back to the top level.")
(defvar edebug-tests-keymap
(let ((map (make-sparse-keymap)))
(define-key map "@" 'edebug-tests-call-instrumented-func)
(define-key map "C-u" 'universal-argument)
(define-key map "C-p" 'previous-line)
(define-key map "C-n" 'next-line)
(define-key map "C-b" 'backward-char)
(define-key map "C-a" 'move-beginning-of-line)
(define-key map "C-e" 'move-end-of-line)
(define-key map "C-k" 'kill-line)
(define-key map "M-x" 'execute-extended-command)
(define-key map "C-M-x" 'eval-defun)
(define-key map "C-x X b" 'edebug-set-breakpoint)
(define-key map "C-x X w" 'edebug-where)
map)
"Keys used by the keyboard macros in Edebug's tests.")
(defvar-keymap edebug-tests-keymap
:doc "Keys used by the keyboard macros in Edebug's tests."
"@" 'edebug-tests-call-instrumented-func
"C-u" 'universal-argument
"C-p" 'previous-line
"C-n" 'next-line
"C-b" 'backward-char
"C-a" 'move-beginning-of-line
"C-e" 'move-end-of-line
"C-k" 'kill-line
"M-x" 'execute-extended-command
"C-M-x" 'eval-defun
"C-x X b" 'edebug-set-breakpoint
"C-x X w" 'edebug-where)
;;; Macros for defining tests: