From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id KC3SNzZMl2NydwAAbAwnHQ (envelope-from ) for ; Mon, 12 Dec 2022 16:43:50 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id KJ+/NzZMl2PKRAAAauVa8A (envelope-from ) for ; Mon, 12 Dec 2022 16:43:50 +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 941D63C52C for ; Mon, 12 Dec 2022 16:43:49 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4kxO-0005V1-0z; Mon, 12 Dec 2022 10:43:06 -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 1p4kxM-0005UT-GU for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 10:43:04 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4kxK-00088d-Oh for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 10:43:04 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id C31BF5C00BC; Mon, 12 Dec 2022 10:42:59 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Mon, 12 Dec 2022 10:42:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imapmail.org; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; t=1670859779; x=1670946179; bh=maUfByOG/e jnwgjj89CC2HfA6riQXO7ARF9XJxqLezU=; b=BHnYM1bsaSc1KNH5SU6RwjvEPM WaULXQpoyvdmnQgiwjlKka4/eJoSq0TALT9pS8l6c3pddcniy/SeYkfvk0Wbn4nT Sesvc5J1g7mBJfn4GUyWeMeRBc6bke6EWpZS2mrJ6zzpowe8EnFAnWtp6sgJPFVq ILa+fdVLy5gIojWhlTe3jGaCOwiD87DQk7UrisSeao79mUW8PfT3giwYnfPevtyX mZgXMggqOBUeq69Os2dsrqAb0PO+2qxHaMTyyki+iyj7s1p58fsJzP2zFwoiGX9V rKLqiLwm64rpUl/9YLYuWGvWHmeQ5TRj2W5r2VUdSWANHAR/kBNBwaAF2coA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references: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=1670859779; x=1670946179; bh=maUfByOG/ejnwgjj89CC2HfA6riQ XO7ARF9XJxqLezU=; b=D+iYTagRVW8+exb4JQkF/YkEOipqwRnh2wMNHiKG02yF zHYMOmsECaVMzWto1/vMF3oqAeOqmVSrpWDkvOOej1hDDTzOfRsURB7AxbdxyxmU +TJPI0eVBmLN5CdM/WkQvUBIs95lX+4dYoMoymrcUnXIgDTR8d5fxd6ANg9T88NF SWEkvJXfn4pm8BNADyDQO7sKUikLkbwGQfDWR3L1kH7roY7l06DqNWF5LoN9pq18 88sffkb7V/A56tyJjzxVwtpNTB9uKVY+HRHlUl69/PTynXFxBCNh3dixqWDbI5k4 A0Hnozb+QuT3aazbrjjwOLhzZJ+0Rd2nmgWoyD4Uvg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdekgdehiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecuuegrugftvghpuhhtqdffohhmrghinhculddutdejmd enucfjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpeforghtthcu nfhunhguihhnuceomhgulhesihhmrghpmhgrihhlrdhorhhgqeenucggtffrrghtthgvrh hnpeejieegvdfftedutddukeelffelheffgefgtedvfffgkeffuefgkeetjedvkeehfeen ucffohhmrghinhepvghlrdhithenuceurggutfgvphhuthffohhmrghinhepihhmrghpmh grihhlrdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhf rhhomhepmhgulhesihhmrghpmhgrihhlrdhorhhg X-ME-Proxy: Feedback-ID: ieb924183:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 12 Dec 2022 10:42:59 -0500 (EST) From: Matt Lundin To: Max Nikulin , emacs-orgmode@gnu.org Subject: Re: Autoloading side effects (was: Re: [BUG] org-mouse is activated without explicit require) In-Reply-To: References: <87r0x6sju1.fsf@fastmail.fm> <87iliie0j1.fsf@localhost> Date: Mon, 12 Dec 2022 09:42:58 -0600 Message-ID: <87a63smxvh.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=66.111.4.27; envelope-from=mdl@imapmail.org; helo=out3-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, RCVD_IN_MSPIKE_H2=-0.001, 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=1670859830; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=maUfByOG/ejnwgjj89CC2HfA6riQXO7ARF9XJxqLezU=; b=QtxXhzbJiKEblYwyGj0CgmlEOdNxlNBZLua0A6H3/6tzaIs5zxqIwGeHI+4LpMCCmaHwHc 1FInGxIMJzLJpH10cpkA8OmzBIJhTdkGzByhn6uxcFzPrT0Df2yqxq8zaVpufsChIKyYnV y2E/pQgo6yjGdpIzvpmnUvuY1vLQnDik7kT7Vz48uNwdh6psbFfHuUtfNJ+z5bDW/HqcY4 VzJMuGQcsjWvb0HwvNgrIXhLSmMz9UvTuEWJEERnAlRqY/URszpEVRuDtDTliW0AVtk+Aa fax1ngIdK4OK4t0UW0qpubjNC34qfDSyZBb9Qx4GhWIVz99hIpHNG+cU3vmaqw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=imapmail.org header.s=fm2 header.b=BHnYM1bs; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=D+iYTagR; 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=1670859830; a=rsa-sha256; cv=none; b=R9U20rz9SLDqTmR+qr47S/fBRX1+Y9hBXVNtSEN+1yeaRGK1b7texDAwM8LGY38hZxW11c pmFD1C1N1oRHl+BWetG9FIPjzY+xqQ9gwSMss7sARQhmzLzsRdYOL0nHOWdi+AVA7lK4rw kLOUJPooBVTXk87U4U2di5DsR2QV01SQ3u+SluJx/u2i4CEkVzIz/EgT1HA5TW6d1w/saw IwbqAdBhE2ZktH/szxrQhLwF7/UlGUtfjuoKBV9sOkC+HGnjuyLlq41aQ6/h+mSejY+d8n 7eiwgiHyC2Elr9BsPjJ7pR/iQ7UUxfAqMIHI9ZS4Z55mwD1syFqWbR1dqPQoQQ== X-Migadu-Spam-Score: -1.76 X-Spam-Score: -1.76 X-Migadu-Queue-Id: 941D63C52C X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=imapmail.org header.s=fm2 header.b=BHnYM1bs; dkim=fail ("headers rsa verify failed") header.d=messagingengine.com header.s=fm2 header.b=D+iYTagR; 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: T1PhkIkAJaXy Max Nikulin 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