emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Max Nikulin
Subject: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)
Date: Sun, 11 Dec 2022 21:49:03 +0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]