From eec059b124ed57956cf896904ef8240b24cc7ead Mon Sep 17 00:00:00 2001
From: Juri Linkov <juri@linkov.net>
Date: Tue, 19 Jan 2021 20:27:29 +0200
Subject: [PATCH] * lisp/help-fns.el: Move defvar keymap-name-history closer to
 where it's used.

---
 lisp/help-fns.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 7be2826361c..da905192467 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -76,9 +76,6 @@ frame.")
   ;; costly, really).
   "Radix-tree representation replacing `definition-prefixes'.")
 
-(defvar keymap-name-history nil
-  "History for input to `describe-keymap'.")
-
 (defun help-definition-prefixes ()
   "Return the up-to-date radix-tree form of `definition-prefixes'."
   (when (> (hash-table-count definition-prefixes) 0)
@@ -1656,6 +1653,9 @@ in `describe-keymap'.  See also `Searching the Active Keymaps'."
                              (get-char-property (point) 'local-map)
                            (current-local-map)))))
 
+(defvar keymap-name-history nil
+  "History for input to `describe-keymap'.")
+
 ;;;###autoload
 (defun describe-keymap (keymap)
   "Describe key bindings in KEYMAP.
-- 
2.39.5