]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 20 Aug 2024 12:09:54 +0000 (08:09 -0400)
committerEshel Yaron <me@eshelyaron.com>
Tue, 20 Aug 2024 14:13:08 +0000 (16:13 +0200)
Fixes bug#72511.

(cherry picked from commit 45ae4de0e7ce99c88c62f940f605bca693b8e33f)

lisp/help-fns.el

index 187d1dd6a4130f3627b5e5c2e641af9b191af9f3..6b4e4ad48f7a129244e7d5e6cbdaab6bdee13ee1 100644 (file)
@@ -85,14 +85,14 @@ current help buffer.")
 
 (defun help-definition-prefixes ()
   "Return the up-to-date radix-tree form of `definition-prefixes'."
-  (when (> (hash-table-count definition-prefixes) 0)
+  (when (and (null help-definition-prefixes)
+             (> (hash-table-count definition-prefixes) 0))
     (maphash (lambda (prefix files)
                (let ((old (radix-tree-lookup help-definition-prefixes prefix)))
                  (setq help-definition-prefixes
                        (radix-tree-insert help-definition-prefixes
                                           prefix (append old files)))))
-             definition-prefixes)
-    (clrhash definition-prefixes))
+             definition-prefixes))
   help-definition-prefixes)
 
 (defun help--loaded-p (file)