From d17b30812ef8271ff0c5724741526ba26856a70b Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 20 Aug 2024 08:09:54 -0400 Subject: [PATCH] * lisp/help-fns.el (help-definition-prefixes): Don't delete the hashtable Fixes bug#72511. (cherry picked from commit 45ae4de0e7ce99c88c62f940f605bca693b8e33f) --- 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 187d1dd6a41..6b4e4ad48f7 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el @@ -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) -- 2.39.2