summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-12 17:17:55 -0500
committerCraig Jennings <c@cjennings.net>2026-05-12 17:17:55 -0500
commitc111f35a53912886cef0baeb7f8463b6ce63c014 (patch)
tree2763ba018b20068ea97c3ce2f20848ec6153dba4 /modules
parent0fd02153db4b931ceae24b9bb2d4d7e90a7d451f (diff)
downloaddotemacs-c111f35a53912886cef0baeb7f8463b6ce63c014.tar.gz
dotemacs-c111f35a53912886cef0baeb7f8463b6ce63c014.zip
test(keyboard-compat): cover the terminal and GUI setup functions
`cj/keyboard-compat-terminal-setup` (8 `define-key`s into `input-decode-map` for arrow escape sequences) and `cj/keyboard-compat-gui-setup` (18 `M-<UPPER>` → `M-S-<lower>` translations into `key-translation-map`) had no tests — that's the bulk of the module's executable lines. I added `tests/test-keyboard-compat-setup.el` — 7 ERT tests that `let`-bind those keymaps to fresh copies, stub `env-terminal-p` / `env-gui-p`, and check the decode/translate entries land, with completeness loops over all 8 arrow sequences and all 18 Meta-Shift letters, plus the gate-off boundary for each. `cj/--icon-blank-in-terminal` was already covered. `lookup-key` on an ESC-prefixed string can return a meta-prefix event count instead of nil, so the "no-op when not on a terminal" case asserts the keymap is still empty rather than checking individual lookups.
Diffstat (limited to 'modules')
0 files changed, 0 insertions, 0 deletions