commit 6a4d5e0760ba96a24cd13052233c6edfb34d022c
parent 3794389ef685b6a59b3a487d0492c3add3c42c2f
Author: Xiyue Deng <manphiz@gmail.com>
Date: Wed, 26 Feb 2025 15:43:18 -0800
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:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git 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)