On 11/12/2022 16:45, Ihor Radchenko wrote:
We cannot do much about Emacs' handling of autoloads, but what we can
(and should) do is changing org-mouse to become a global minor mode.
Then, loading org-mouse will cause no side effects.
I am afraid, requirement that loading should not cause side effects is
too strict and it will make usage inconvenient. Examples:
- ol-info calls `org-link-set-parameters'.
- org-protocol installs an advice for `server-visit-files'. (It should
not be necessary, but currently Emacs does not provide a better option.)
However I agree that it is undesired when attempt to call interactive
help causes side effects. I would say that in such cases loading of
packages should be sandboxed and should not propagate to global scope.