Re: [BUG] org-mouse is activated without explicit require

2022-12-14 Thread Ihor Radchenko
Max Nikulin writes: > On 13/12/2022 16:52, Ihor Radchenko wrote: >> Max Nikulin writes: >> We have `org-modules' that can handle calling `org-link-set-parameters'. > ...> We can simply process 'ol-* in `org-modules' specially. > > I do not consider it is a good idea. Third party packages

Re: [BUG] org-mouse is activated without explicit require

2022-12-13 Thread Max Nikulin
On 13/12/2022 16:52, Ihor Radchenko wrote: Max Nikulin writes: We have `org-modules' that can handle calling `org-link-set-parameters'. ...> We can simply process 'ol-* in `org-modules' specially. I do not consider it is a good idea. Third party packages may call `org-link-set-parameters'

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

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

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

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

Re: [BUG] org-mouse is activated without explicit require

2022-12-11 Thread Ihor Radchenko
Matt Lundin writes: > I'm not too familiar with how emacs handles autoloads. However, I find > org-mouse is automatically loaded if I call describe-function and then > tab complete after typing "", "org-", "org-m", etc. This seems enough to > load the entirely of the org-mouse.el file. > > The

Re: [BUG] org-mouse is activated without explicit require

2022-12-10 Thread Samuel Wales
hi matt, superb bug report. happy human rights day. isn't there a policy someplace in the elisp manual that states that loading a package should have no major[tm] side effects? the emacs behavior of loading upon completion is new to me and a surprise. the org list of links behavior is new to

Re: [BUG] org-mouse is activated without explicit require

2022-12-10 Thread Greg Minshall
Matt, > I'm not too familiar with how emacs handles autoloads. However, I find > org-mouse is automatically loaded if I call describe-function and then > tab complete after typing "", "org-", "org-m", etc. This seems enough > to load the entirely of the org-mouse.el file. i'm also not an expert