From 500af031c88b7ddb3252f4d28113cf1d3e8144c7 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 4 Sep 2022 11:37:32 +0200 Subject: [PATCH] Fix some help-fns test failures * lisp/help-fns.el (help-fns--key-bindings): Fix test failures from recent change. --- lisp/help-fns.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/help-fns.el b/lisp/help-fns.el index 3f3a5747dc2..6d635ec9ee3 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -516,7 +516,7 @@ the C sources, too." (remapped (command-remapping function))) (unless (memq remapped '(ignore undefined)) (let* ((all-keys - (with-current-buffer orig-buffer + (with-current-buffer (or orig-buffer (current-buffer)) (where-is-internal (or remapped function) overriding-local-map nil nil))) (seps (seq-group-by -- 2.39.2