Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)

2022-12-13 Thread Ihor Radchenko
Max Nikulin writes: >> We have `org-modules' that can handle calling `org-link-set-parameters'. > > Sorry, but I have not got your idea. Currently `org-modules' is just a > list of packages that should be loaded with org.el. > > It is possible to introduce some convention either in Org or in Ema

Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)

2022-12-12 Thread Max Nikulin
On 12/12/2022 17:25, Ihor Radchenko wrote: Max Nikulin writes: 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'. We have `org-modules' that can handle calling `org-link-se

Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)

2022-12-12 Thread Matt Lundin
Max Nikulin writes: > 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

Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)

2022-12-12 Thread Ihor Radchenko
Max Nikulin writes: > 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 tha

Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)

2022-12-11 Thread Max Nikulin
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 e