[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
- [BUG] org-mouse is activated without explicit require, Matt Lundin, 2022/12/10
- Re: [BUG] org-mouse is activated without explicit require, Greg Minshall, 2022/12/10
- Re: [BUG] org-mouse is activated without explicit require, Samuel Wales, 2022/12/10
- Re: [BUG] org-mouse is activated without explicit require, Ihor Radchenko, 2022/12/11
- Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require), Max Nikulin, 2022/12/11
- Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require), Ihor Radchenko, 2022/12/12
- Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require), Max Nikulin, 2022/12/12
- Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require), Ihor Radchenko, 2022/12/13
- Re: [BUG] org-mouse is activated without explicit require, Max Nikulin, 2022/12/13
- Re: [BUG] org-mouse is activated without explicit require, Ihor Radchenko, 2022/12/14
- Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require),
Matt Lundin <=