]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix some help-fns test failures
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 4 Sep 2022 09:37:32 +0000 (11:37 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 4 Sep 2022 09:37:32 +0000 (11:37 +0200)
* lisp/help-fns.el (help-fns--key-bindings): Fix test failures
from recent change.

lisp/help-fns.el

index 3f3a5747dc2dc1d2044835c615e24d1a0efea082..6d635ec9ee301f2802c54fabc43d81c008a35669 100644 (file)
@@ -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