Skip to content

Commit 6a4d5e0

Browse files
manphizWilfred
authored andcommitted
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.
1 parent 3794389 commit 6a4d5e0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/helpful-unit-test.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,9 @@ associated a lambda with a keybinding."
734734
(should
735735
(equal
736736
(length (helpful--keymaps-containing #'helpful--dummy-command))
737-
2))
737+
(if (< emacs-major-version 30)
738+
2
739+
3)))
738740

739741
;; Undo keybinding.
740742
(global-set-key (kbd "C-c M-S-c") nil)

0 commit comments

Comments
 (0)