Fix helpful--autoloaded-p in Emacs 29.0.50#283
Conversation
Also fixed `helpful--skip-advice`, which is now appended to the documentation instead of prepended.
Maybe a simple |
|
I would suggest using the following that has worked for me: (defun helpful--autoloaded-p (sym buf)
"Return non-nil if function SYM is autoloaded."
(-when-let (file-name (buffer-file-name buf))
(setq file-name (s-chop-suffix ".gz" file-name))
(if (boundp 'read-symbol-positions-list)
(help-fns--autoloaded-p sym file-name)
(help-fns--autoloaded-p sym))))Additionally, with the changes from my PR |
And revert helpful--compiled-p
|
Thank you very much @tpeacock19 ! Your fix does solve In the end I've gone with the advice of Stefan in StackOverflow and just tried to call the old function first. |
|
I'm still learning about lisp and programming in general. So may I ask why you prefer to call the function? |
|
Thanks for the PR :) |
|
@tpeacock19 I think checking whether |
I don't know how (or whether to) add this change, since it likely breaks
helpfulfor anyone not using the latest Emacs. What to do?help-fns--autoloaded-pThe function
help-fns--autoloaded-pnow only takes 1 argument, sodescribe-functionerrors out; as described in doomemacs/doomemacs#6097 . The change was made on 2022-01-31.helpful--skip-adviceAlso fixed
helpful--skip-advice. The advice info is now appended to thedocumentation, so the test
helpful--docstring-advicewould fail.That is, the docstring from
(documentation #'test-foo-advised t)now reads: