Fix ref to renamed function in doom/help-* helper

And improve their UX by displaying a loading message while Doom crawls
the headings.
This commit is contained in:
Henrik Lissner 2019-10-26 01:47:45 -04:00
parent 7c54478335
commit 592c548b24
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -127,6 +127,7 @@ selection of all minor-modes, active or not."
(let* ((default-directory doom-docs-dir) (let* ((default-directory doom-docs-dir)
(org-agenda-files (mapcar #'expand-file-name (doom-enlist files))) (org-agenda-files (mapcar #'expand-file-name (doom-enlist files)))
(depth (if (integerp depth) depth))) (depth (if (integerp depth) depth)))
(message "Loading search results...")
(unwind-protect (unwind-protect
(delq nil (delq nil
(org-map-entries (org-map-entries
@ -143,7 +144,7 @@ selection of all minor-modes, active or not."
'identity 'identity
(list (mapconcat #'identity (list (mapconcat #'identity
(append (when include-files (append (when include-files
(list (or (+org-get-property "TITLE") (list (or (+org-get-global-property "TITLE")
(file-relative-name buffer-file-name)))) (file-relative-name buffer-file-name))))
path path
(list (replace-regexp-in-string org-link-any-re "\\4" text))) (list (replace-regexp-in-string org-link-any-re "\\4" text)))