On 06/01/2023 06:13, Alain.Cochard wrote:
For example, with the cursor on 'org-capture-finalize' in the manual,
'C-h f <RET>' gives nothing right away; 'C-h f org-capture<TAB>' does
not offer 'org-capture-finalize' as a completion; 'C-h f
org-capture-fin<TAB>' does complete and says that
'org-capture-finalize' is interactive; and then it becomes possible to
use it with 'M-x'.
To improve loading speed, Org starts with minimal set of packages, other
should be loaded on demand. See `org-modules'.
For C-h f (`describe-function') behavior see
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60085
"`help-enable-autoload' is not fully obeyed"
As to `org-capture-finalize', while being interactive, it is of little
use before capture is started and so org-capture is loaded. That is why
it is not marked for autoload and unavailable for M-x. In future it
might be restricted to a specific "capture" mode.
Perhaps there is a way to generate TAGS file for Org files an to
instruct Emacs to lookup collected symbols there.