From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id aE82COdNlWNOSQEAbAwnHQ (envelope-from ) for ; Sun, 11 Dec 2022 04:26:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +DtlB+dNlWMJAwAAG6o9tA (envelope-from ) for ; Sun, 11 Dec 2022 04:26:31 +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 4D21387EF for ; Sun, 11 Dec 2022 04:26:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4Cxv-0005kA-BF; Sat, 10 Dec 2022 22:25:23 -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 1p4Cxt-0005jv-Fy for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 22:25:21 -0500 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4Cxn-0004XZ-Qo for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 22:25:21 -0500 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id D31195C0040; Sat, 10 Dec 2022 22:25:12 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Sat, 10 Dec 2022 22:25:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= cc:content-transfer-encoding:content-type:date:date:from:from :in-reply-to:message-id:mime-version:reply-to:sender:subject :subject:to:to; s=fm2; t=1670729112; x=1670815512; bh=3UaA1k4ohg RKRsVg9lcy37GejLLtzGHvM8xxGAOw8hc=; b=Yf7h6pXGL/Ot6HrEjJc53GX0wl sPvw2sSCOyxj6duV5IdNG6UHpY3p9FrZEab4+eufyDSxPPmmqv+LhOSlOiSwudtq U408dBoVYRlVvdIHEecKc7cQiT3GApYktePNV4m1x/v1QQYGxVu4o1VCCYn1OPgT ytlp5S13nXY56HxSHrQZhubBWcXOBuES1rNqjObPvl31OYwmpLC/TaLOM1LbfKTv deSTapPwuAYtY+4mHSGSKftoMSMrJNuP8w/imiP1c1oqgmcmy+z3OxZaWTy8gcUB QJPOXukf2dZCQJuBXwsYyn7w57R9rJOQFKgDhf+I3xR98/d42HR6lboNGMUg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:date:feedback-id:feedback-id:from:from:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1670729112; x=1670815512; bh=3UaA1k4ohgRKRsVg9lcy37GejLLt zGHvM8xxGAOw8hc=; b=Sg1/Tr50OUAR2p/IBQtnZgSFIrUF5etIcbcgO0LqAuM4 7E1ZgbHVNxQQTcH4UGtljrbNSWXxSi2yrjxTdhoDgkwZS+O8bH/fh7zNrI/oHrqK XIqvO+wVRXw81XlhfYVnYQX+GlLWVE3cCmsGhld6e92vjYlMPIxOA8G8ebI6uC6P ufeNftgQc27OdV7keED3Tt5dT7K7kkEBJcJ4c9KU0G+y0kvNDEb+P/l/kxsSDozJ tzLJ0sU2no2Ea+B1p3TYI4q92/OWQTUDsoDYyLbxlxsGXYqwXndNnUvxlDs7Qmqa 4gmWWRBp9RTNDNWdGAI83+bwnbPpAWSQc/kahqFWyw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdehgdeitdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtqhertddttd ejnecuhfhrohhmpeforghtthcunfhunhguihhnuceomhgulhesihhmrghpmhgrihhlrdho rhhgqeenucggtffrrghtthgvrhhnpeeuffdthfetjeefjeethedtleehleefudevvdehue etgfdvtdfffedvkeduhefgueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep mhgrihhlfhhrohhmpehmughlsehimhgrphhmrghilhdrohhrgh X-ME-Proxy: Feedback-ID: ieb924183:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sat, 10 Dec 2022 22:25:12 -0500 (EST) From: Matt Lundin To: emacs-orgmode@gnu.org Subject: [BUG] org-mouse is activated without explicit require Date: Sat, 10 Dec 2022 21:25:10 -0600 Message-ID: <87r0x6sju1.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=66.111.4.29; envelope-from=mdl@imapmail.org; helo=out5-smtp.messagingengine.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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=1670729191; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=3UaA1k4ohgRKRsVg9lcy37GejLLtzGHvM8xxGAOw8hc=; b=kW7dnwf21yCxBKdBVpgqIH+UrTLVWdT2v0deJeGDMAAjy468zAbB6XY3myK0odSs3TR1qZ UMEKonqND1YlaP3LdUeK9XtY4CJ23ARQwFgsXuHHZJ5uXympBvMELXdNNFQDI3DcIU8bAO w7z+0LZIgwbUkJR3w/CdK3os4T7OCzSJ7VEDZKwmr1SK7Mwefd1LD/zMKtpg2OFTdyx6bG CzB1n36PgKNKhcdNhd3N1gADiamwG597pvaz6xfzARK+BeM1xKb7kPhkpDHvgJEif1j1MH 1IJHqxyFGOafZaTxVqPh5wkoK58g6LiYYEmr4wdfHl/86m46V50kiyKw/ohtKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=imapmail.org header.s=fm2 header.b=Yf7h6pXG; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="Sg1/Tr50"; 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=fail reason="SPF not aligned (relaxed)" header.from=imapmail.org (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670729191; a=rsa-sha256; cv=none; b=mjv/hpnehFWLmSmMGorUX5gCBSIt2au2le0W6GwTBpG18qU/DH5CPeSCBKEGVY3iL9rLKi 6wsR5R1ggehmNyoE/pGGFibyKdQ7Z1/bkktuSXpY/ND2qOIUXPpVmi0qGrlQlNZf/qlb7M 5Fd7a1FOJNI9oLBqLdoX4+q4pBk9r3JqPlubKK7HUis/KL2MqfpqTjUosU2uG5ipSm0TKz MF6TRITjy42XUhbGfHN5AemczBVD7O0tRBrUfY3BTPDdI4xYDYU+O6n/ddJnzLdH1qz+k2 7+DyssMbRgpjDt5bMZPLycHjuWCpvXpo7PBPmsvlV8ugIo5z4gmODJl0M27ZPA== X-Migadu-Spam-Score: 5.65 X-Spam-Score: 5.65 X-Migadu-Queue-Id: 4D21387EF X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=imapmail.org header.s=fm2 header.b=Yf7h6pXG; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b="Sg1/Tr50"; 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=fail reason="SPF not aligned (relaxed)" header.from=imapmail.org (policy=none) X-TUID: 0lThkGXPjFRg 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.) I am able to reproduce this with a minimal .emacs config and the most recent git version (after running "make clean && make"). Steps to reproduce: 1. /usr/bin/emacs -Q -l ~/minimal.el where ~/minimal.el is... --8<---------------cut here---------------start------------->8--- (add-to-list 'load-path "~/org-mode/lisp/") --8<---------------cut here---------------end--------------->8--- 2. C-h f org-m [tab] Note that "org-mouse-" functions appear in the completion list. Even if one aborts describe-function at this point, org-mouse has been loaded and org-mode-hook now contains a lambda function to activate the functionality of org-mouse (org-defkey, advice-add, etc.). 3. Open an org buffer for the first time or call "M-x org-mode-restart" in an already opened buffer "C-h v org-open-at-point" now reports the following advice: --8<---------------cut here---------------start------------->8--- This function has :around advice: =E2=80=98org--mouse-open-at-point=E2=80= =99. --8<---------------cut here---------------end--------------->8--- Also notice that org-mouse features are now active in org buffers. Thanks, Matt