From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WP5TGRenlWOpuwAAbAwnHQ (envelope-from ) for ; Sun, 11 Dec 2022 10:47:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KBM9GRenlWPHBAEAauVa8A (envelope-from ) for ; Sun, 11 Dec 2022 10:47:03 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1F3D29965 for ; Sun, 11 Dec 2022 10:47:03 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4IuW-0003u7-3n; Sun, 11 Dec 2022 04:46:16 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4IuJ-0003qp-Aj for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 04:46:05 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4IuG-0002h6-Of for emacs-orgmode@gnu.org; Sun, 11 Dec 2022 04:46:02 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id D0A9D240029 for ; Sun, 11 Dec 2022 10:45:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670751958; bh=z7x9b6WXzDPCMLwBSZJgBXM/f8Cc9DmmYLbvjinyYi0=; h=From:To:Cc:Subject:Date:From; b=OiwgzKzxwc/myRUs+iMQVZeSJUhHctAZbqZMTcPJip9eaqpFy5T6qT5xcEIzcRBbl bJRVgHut+KOvE9XE7EMDiMPiaxtUVX8FDCPDyh3/XlYTtnhQzTUX2Yan3GE/unsP7d viWBIhmG6+SFdaFknh5HL704cOviVUrAdHCHv6BFXwzSujZ5tktOEP15ywEH7ev5F0 a19KIr1a49q1xaL5Q2oDBwqrC2/lbb6DxbtpD9B1G4/T76OtphfGKdif+J9ukG2PE0 u6d9Eep/O0u9vSSgwQfwf1qDKELxv1+clVI5Jki/IH6qoL7F5k9O/LufahnVfHyhLq tlNvFcbClzVWQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NVKdH5Qp4z6tmF; Sun, 11 Dec 2022 10:45:55 +0100 (CET) From: Ihor Radchenko To: Matt Lundin Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-mouse is activated without explicit require In-Reply-To: <87r0x6sju1.fsf@fastmail.fm> References: <87r0x6sju1.fsf@fastmail.fm> Date: Sun, 11 Dec 2022 09:45:54 +0000 Message-ID: <87iliie0j1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670752023; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=v64fOV1059sRZsMmml3rXnqbmWJwL+jysOExqXhDKds=; b=LezJQQ5bLi71PrX7bllaZe5TbK4uwSUsFzFXzjtNQEMByAMiYjKXnn4Mdcok+0fdp3E6Fb CSIIoCP7PTL8SBP5IFtsoLnaHEQSQzWce4JctXMX7VLPoKYNtuBL6PGMaOF/U4uTNUANs4 MEB//2RFLkQ0hSqDc901iTPUJRO7r5cVrdhIR5OvhBabAMcA0NBZhKO1OrJgeKOhPgH2Nj /8bAQvWI1RtNShn9k4C59elVRhEOOS3+99dnLcNyWK4zjnVANdpUaafQ0dGeMldCTpNUF8 0FGsZr+oXVj0IX+YzzR6Cg8Kh6O2SsDRuPFGgQL/wZ/MQenL9TnmYqHkBAWeng== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OiwgzKzx; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670752023; a=rsa-sha256; cv=none; b=USdu+3R/J6p0b+loUM7MP1FnaCwrIeMDNITcbkWQggk695WbBwh4JjdE2QnbJ2rbgSxExf hNhhkznF0BokMvpwdpwmS0NAKgx6ECzxOfK4gumDma+x2u3k1P+gl4qdZ4UOxWvJwm6Qv4 1OQiwMUs35YyrZXpPGYTCAhiUGbr6yGmd6+2a874yd/l7qB/xIY9waNfDaNFtMgULAqLxV KkoAv1s00eshVUNR4GvHjGdDTBFrzynPznvgo4ooa7w8Kw9LD09E23j+/rrL4oFEiOctLy 11xX7lciT1gsECi+dzfbNn0IAoypdt3zFXd0DdXhBEuj7nEZftTaNIrGK8N6WQ== X-Migadu-Spam-Score: -10.73 X-Spam-Score: -10.73 X-Migadu-Queue-Id: 1F3D29965 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=OiwgzKzx; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=posteo.net X-TUID: NDar5gTXWfQd 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 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 . Support Org development at , or support my work at