From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 kFV4JBtflWOEhwAAbAwnHQ (envelope-from ) for ; Sun, 11 Dec 2022 05:39:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MJi0IxtflWO1PAEAG6o9tA (envelope-from ) for ; Sun, 11 Dec 2022 05:39:55 +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 1B44A3BF9 for ; Sun, 11 Dec 2022 05:39:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4E7E-0003ps-44; Sat, 10 Dec 2022 23:39:04 -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 1p4E7C-0003pj-Dw for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 23:39:02 -0500 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4E7A-0000hE-KW for emacs-orgmode@gnu.org; Sat, 10 Dec 2022 23:39:02 -0500 Received: by mail-lf1-x12e.google.com with SMTP id 1so13259096lfz.4 for ; Sat, 10 Dec 2022 20:38:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ed+ISseSmqUppm1p/ozvigNQ+Noouz1kUAtaSiT3Qlk=; b=koO26HwRh2UDT+gYOcm/kFIvWOEN+PTIA4LPrtH3LQMqODi9cXWpm7ufD73+X8gD6y bjKL2JVQ438viRCn7apP72zClwrbtwoGwxVg/39/kE+z7W5M0l9wlGB2nlvw/7S7YkMB SIwtvkijKLJn3+VffoyszIHgAlKEp8ToRmpGWmJb2r7zZUqQLmKh/5GiIpjBNZYtKvlt b1/vLEiCFvVq7SvtTnkuOxS5RVEauhVMxrYjcxLH50BiOHfB0ZBMX4Y16HSRAJopebUx PuCnTb51HOZuidr4Qqjq7l6VxPAx8jdtL09hVRtyIIJPLqqDiC2l0ks4RsfDkWlSoRty 4ZJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ed+ISseSmqUppm1p/ozvigNQ+Noouz1kUAtaSiT3Qlk=; b=2l5Gs2adPeYZY6LmcAfgaWKD+1nAI3Tq3E4PRSM6rMTG7BfFG9R6t0G4CGSmUBkltf VuRv3S0K+OkpQ1R8iYbeE+g2eCQhV/R3+fRID2FInXTOemx1H0ca8jckNmJi9gG2apdC 7GtB5LPcO7f5OZgPfE70fuladxZLussT6CHmiqq1sEwKPM4MH1BFhxLGbOkXDtr9iuAB ecFle38HrWet1CX43dwFa1WMFY3WQsUcyhlRqLCtCAj6pr4qgXw7/Tnc3ZjoBrNMelsh EuJ+V8zaHyqmf4rSANvmEAO61ws4ySdGPL0fD5fhiRlD0dewQ8ZEgpHaDDm2+VHXXP2k HhNA== X-Gm-Message-State: ANoB5pmovGtdQ/r20bHhW0I2bVxLgQqr0mbcpI6MCK9DVEtojDleSHeD cuZ1FYmqlPDtOqaskdNdCyv1EtgYXn1++IK1mqY= X-Google-Smtp-Source: AA0mqf7U8BKlaH66XILGERmXNvhyTbI1kWD5hQro62CIg7FdS5vWolTlxrv3qro6I43XJFmAAy8BBX/vqP5Nzm/tng4= X-Received: by 2002:a19:6559:0:b0:4b5:6e66:7bbc with SMTP id c25-20020a196559000000b004b56e667bbcmr6782503lfj.487.1670733537055; Sat, 10 Dec 2022 20:38:57 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a9a:7145:0:b0:22e:c163:faca with HTTP; Sat, 10 Dec 2022 20:38:55 -0800 (PST) In-Reply-To: <87r0x6sju1.fsf@fastmail.fm> References: <87r0x6sju1.fsf@fastmail.fm> From: Samuel Wales Date: Sat, 10 Dec 2022 21:38:55 -0700 Message-ID: Subject: Re: [BUG] org-mouse is activated without explicit require To: Matt Lundin Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::12e; envelope-from=samologist@gmail.com; helo=mail-lf1-x12e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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=1670733595; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ed+ISseSmqUppm1p/ozvigNQ+Noouz1kUAtaSiT3Qlk=; b=RH0gzhLzhPp/B78/WcNoso5d5x8hIDPPHh/bYXl8WUvwbatVFdhCyAiO/2ll5P3le+Va6i hZGFMZsLFWAGV1Ddjp96JPt2ut7Gj4vnoiuQWn6bKZ2yilTR6KI5izKC7L4hlgD8QHsjTQ 8EYKNLY3416nxOSmmlfJ05UWMQP0iI+1Tt6XRh7fDl+ro54brIMZUOl2ATF5irWgcXZt3k eCLmPiCl4ciPJkcbjalbSK2r+9fcXIM2YpQbIh//brTNLuS+C1T3nDXaD9a5liqdeErXFW DDly/PDOYWnFsc3iA6ca4moqKTLow9V5Ub3KnCBot/zK8Es/mVrSVoh2zFHKuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=koO26HwR; 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=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670733595; a=rsa-sha256; cv=none; b=cAQdYmCdyfLm4xWuEFEloENlpa42fyFSNtNIVMm+Ai//GwSCt5LcdA8Ziwe6+I/mCtsIib T9mwxfN47PoJO7gNhrTFDyIvKySOPsblnsCkVr4CdEX+0ojWk2GHh5OiZAwkE7hD2PXkPW 8mtNQk5/xBhtt0B/TGe+x2n4p5ZM2j+ZOOB8zAvAjAHYv7ITEnA6Ul8/wMl+1BuelU6byx AA6A/JQzaoiWG79z8V5uDg3aK+GloPCcukDEMN/x1gwxYLpQGZVHbWcUDY/yKOhpKW1Fj8 xy2s9ujEJiOcYnr9fZ6gPrcqENZ9JdbMY/1WtUN7wRbAUx9uxNo/nSFRW6pyRw== X-Migadu-Spam-Score: -7.68 X-Spam-Score: -7.68 X-Migadu-Queue-Id: 1B44A3BF9 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=koO26HwR; 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=gmail.com X-TUID: 7YG3AbP2THjm hi matt, superb bug report. happy human rights day. isn't there a policy someplace in the elisp manual that states that loading a package should have no major[tm] side effects? the emacs behavior of loading upon completion is new to me and a surprise. the org list of links behavior is new to me. n.b. i personally find org-mouse to a be excellent for accessibility reasons. i am always either in mouse mode or keyboard mode and it adds a lot of functionality. could even use a bit more, such as selecting todo kw. sorry cannot address your bug further. it does seem there are things needing fixing. On 12/10/22, Matt Lundin wrote: > 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 > > --=20 The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com