diff options
| author | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-30 21:23:20 +0100 |
|---|---|---|
| committer | Daniel Mendler <mail@daniel-mendler.de> | 2023-01-30 21:41:49 +0100 |
| commit | afc7d3f46a81b764f0824659d537dd4affa81e43 (patch) | |
| tree | 8d77e8d51515146d3b016917765a2a47afd6e8c3 /compat-tests.el | |
| parent | 01a8a9dc90dbd4d4a69b906e01488a63d003d65d (diff) | |
compat-29: Add set-transient-map
Diffstat (limited to 'compat-tests.el')
| -rw-r--r-- | compat-tests.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compat-tests.el b/compat-tests.el index 11e108c..2e2d0d2 100644 --- a/compat-tests.el +++ b/compat-tests.el @@ -2875,6 +2875,15 @@ (should-equal 'result (funcall-with-delayed-message 1 "timeout" (lambda () 'result)))) +(ert-deftest set-transient-map () + (let (overriding-terminal-local-map) + ;; TODO Implement a proper test. Interactive features like + ;; `set-transient-map' are hard to test and Emacs itself is lacking tests. + ;; For now only test the calling convention here. + (set-transient-map (define-keymap "x" #'ignore)) + (compat-call set-transient-map (define-keymap "x" #'ignore)) + (compat-call set-transient-map (define-keymap "x" #'ignore) nil nil "msg" 1))) + (ert-deftest ert-with-temp-file () (ert-with-temp-file file (should-not (directory-name-p file)) |
