]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/help-fns.el: Move defvar keymap-name-history closer to where it's used.
authorJuri Linkov <juri@linkov.net>
Tue, 19 Jan 2021 18:27:29 +0000 (20:27 +0200)
committerJuri Linkov <juri@linkov.net>
Tue, 19 Jan 2021 18:27:29 +0000 (20:27 +0200)
lisp/help-fns.el

index 7be2826361c68be984cd1882eae0c37a179a6c2f..da90519246729c39effbd7d2dfd31dc1da4c5bd1 100644 (file)
@@ -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.