emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Matt Lundin
Subject: Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require)
Date: Mon, 12 Dec 2022 09:42:58 -0600

Max Nikulin <manikulin@gmail.com> 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 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.

For reference, another module that causes global side effects when
calling interactive help is org-ctags.el. It advises `visit-tags-table`
and `xref-find-definitions` and adds a hook to `org-mode-hook`.

Matt



reply via email to

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