Matt Lundin <m...@imapmail.org> 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 problem is that this adds a lambda function to org-mode-hook that > activates all org-mouse functionality at the next call of org-mode or > org-mode-restart. This has two unexpected effects: > > 1. It changes the behavior of mouse clicks without the user's explicit > request. > 2. It advise org-open-at-point, with the result that it is no longer > possible to get a list of all links in an entry when calling > org-open-at-point on a headline. (See separate bug report on this.)
Confirmed. 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. It will be a breaking change though. Not for Org 9.6. Note that this bug is not new. org-mouse has not been changed for a long time. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>