fix(emacs-lisp): Doom API demos in help(ful) docs
Due tocd26975
, `with-file-contents!` leaves the cursor at point-min, not point-max, so this `re-search-backward` call would never find its mark. Now, the elisp demos for Doom functions/macros should show up again in helpful-*/describe-* buffers. Amend:cd269753cf
This commit is contained in:
parent
56d396c5f6
commit
d8e16db605
1 changed files with 1 additions and 1 deletions
|
@ -392,7 +392,7 @@ Intended as :around advice for `elisp-demos--search'."
|
|||
(or (funcall fn symbol)
|
||||
(with-file-contents! (doom-path doom-docs-dir "examples.org")
|
||||
(save-excursion
|
||||
(when (re-search-backward
|
||||
(when (re-search-forward
|
||||
(format "^\\*+[ \t]+\\(?:TODO \\)?%s$"
|
||||
(regexp-quote (symbol-name symbol)))
|
||||
nil t)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue