diff options
| author | Xiyue Deng <manphiz@gmail.com> | 2025-02-26 15:43:18 -0800 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2025-02-27 10:27:57 -0500 |
| commit | 6a4d5e0760ba96a24cd13052233c6edfb34d022c (patch) | |
| tree | a1debd34a55a92c36d6375de6f44f909c1855277 /test/helpful-unit-test.el | |
| parent | 3794389ef685b6a59b3a487d0492c3add3c42c2f (diff) | |
Adapt helpful--keymaps-containing for Emacs 30+
The output of helpful--keymaps-containing changed since Emacs 30.x.
This patch adapts its test for newer Emacs versions.
Diffstat (limited to 'test/helpful-unit-test.el')
| -rw-r--r-- | test/helpful-unit-test.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el index 26c5077..bdfdfc1 100644 --- a/test/helpful-unit-test.el +++ b/test/helpful-unit-test.el @@ -734,7 +734,9 @@ associated a lambda with a keybinding." (should (equal (length (helpful--keymaps-containing #'helpful--dummy-command)) - 2)) + (if (< emacs-major-version 30) + 2 + 3))) ;; Undo keybinding. (global-set-key (kbd "C-c M-S-c") nil) |
