From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UEI1Ghy7ImQ9JgEASxT56A (envelope-from ) for ; Tue, 28 Mar 2023 12:02:04 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oO0/GRy7ImSZCgAAG6o9tA (envelope-from ) for ; Tue, 28 Mar 2023 12:02:04 +0200 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 3080BE879 for ; Tue, 28 Mar 2023 12:02:04 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="gABER/zj"; 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-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679997724; 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=YtxcqysdF2LRlfIvXMHjrlQiZyS5eDdqpAHK1sVBLZk=; b=AzO8fbahfkERr8iZkpfN8NWxcEaF0bovhBJULTAjLsrFAes61e6SxJ4tgqT8NQ6TyVfKi3 nqgbMlsygDlrzDqwtQc7uZfstp1fn8jhxSAdIaNS8xI3NExZqWcU2pj4kf7CfsGipatifU 7UFmThbAiiyL7KBYqxzkcYi8KCJ21TaZD7o3idcbJe24jwZ01RbhQ71DVpWhWGq1/QHPRu CsNpeJxsj6YaSCC027cBbGzWahxzE/IMOiS3Alxi4P1vv7xcoldV2FI3wOdbMZ3K9cjc6s wtlKNMTWPCnIiGF2xd/vOZHeGecM8gyFVdaWOt98vPGI+iP+6yP27+9+AJwr9g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679997724; a=rsa-sha256; cv=none; b=QaA6dGBJSIQC3ry3OOtdJuXPGWn5xrw3e0tHaQoHOVgYnEEEO3hbVqnLJMxPot2TdjEYiI oeoVpc9dNJcXl83J7dU0lLL3F7T7eWSYZNpo+bbPShI50d6L+FJuF5R5wVir6gE01j2mcR v+/U7aiwbSb3AQNWDy1dMUcKU129lmpJcun/PM0aJ5EJ0MFrBJgad3Lq+Bsx/T2NaTqBua 3Sboyi9MT1zYD1CZa6bWFcFYt3Bmh/sbQzeDjZp4p7Pw8kAIH1m3n/gA5NRfweTGYUTuaH Nv6nSMAY4x5UrXN8z81CsSyE6dNr/sf3j2fKMrnSSz9ba7pcNMJwxJ5Ewr8iiQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="gABER/zj"; 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 Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ph68W-00017D-Io; Tue, 28 Mar 2023 06:01:04 -0400 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 1ph68V-000174-AY for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 06:01:03 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ph68T-0004tr-Ea for emacs-orgmode@gnu.org; Tue, 28 Mar 2023 06:01:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A0D87240114 for ; Tue, 28 Mar 2023 12:00:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1679997659; bh=983HHjtGORtYF/me/eDYMcac9oLLBSHwIZwluMEutBE=; h=From:To:Cc:Subject:Date:From; b=gABER/zjoiEasDDirnVGEGw7debL6r5eXYtQ0TMxk0W3QDt5cju9AVm7FMUE5K1qz 7aK2XngX3mEoFGZIH0bc8rdVj8axg7aBUeX+PQBRVJIZdMXGqaLFNHjzzL1xLi+70N X5MPM9GsX6h9bwftmlAlK5obu47e0LrLoESr0y5n9QfF7YGFZBoFbTa6KwQ9W9Hkk7 cgHqU+QzxgSQSwhO6XRtuFLrVLl6XxIx8mHL/PCH0lmHdv1/YvnxQv1W5p/hQDASQ0 Vfmx1T6HZPAd/JS2gOLwR5P/6DbZTR3wkF08nNGkCgMviq4T0fpcAihv6sjLCXS46N BWSYokLI309LQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Pm4vG63WFz9rxB; Tue, 28 Mar 2023 12:00:58 +0200 (CEST) From: Ihor Radchenko To: Max Nikulin Cc: emacs-orgmode@gnu.org Subject: Re: [POLL] Should we accept breaking changes to get rid of Org libraries that perform side effects when loading? In-Reply-To: References: <87o7omg4ie.fsf@alphaville.usersys.redhat.com> <87pm91ngb8.fsf@localhost> <87jzz8f3re.fsf@alphaville.usersys.redhat.com> <87mt43agk6.fsf@localhost> <874jq8ohbr.fsf@localhost> Date: Tue, 28 Mar 2023 10:02:56 +0000 Message-ID: <87bkkdw5v3.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, 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: X-Migadu-Queue-Id: 3080BE879 X-Spam-Score: -5.65 X-Migadu-Spam-Score: -5.65 X-Migadu-Scanner: scn0.migadu.com 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 X-TUID: ndoJJa9tUOF5 Max Nikulin writes: > On 26/03/2023 00:45, Ihor Radchenko wrote: >> I am then CCing Bastien, as, despite the Elisp convention, following it >> will break https://bzg.fr/en/the-software-maintainers-pledge/ > > I hope, it may be mitigated to some degree, e.g. loading of > `org-modules' and `org-babel-load-languages' may include their > activation. Perhaps `org-require-package' should activate the loaded > package as well. We often promise in the manual that simple `require' is sufficient. Not everybody is using `org-modules' mechanism. Also, `org-require-package' is unrelated. It is specifically designed to handle third-party packages where we have no control about side effects. > If it is possible to avoid user prompt in org-ctags then migration may > be done in 2 steps separated by a year: add new require helper and do > not activate by default. Unsure if it is possible to add some warnings > on first step that activate function is not called. There is no point discussing how to introduce the breaking change. Making the transition longer will not make it non-breaking. We first need to decide if we want to go ahead at all. >> (defun enable-feature (feature &optional filename noerror) >> "Load and enable FEATURE. >> FILENAME and NOERROR arguments are the same as in `require'." >> (when (require feature filename noerror) >> (let ((enabler-cmd (intern (format "%s-enable-function" feature)))) >> (and (fboundp enabler-cmd) (funcall enabler-cmd))))) > > I would prefer activating on first call only, subsequent calls should be > no op. Sure. I just wanted to point out that it is an easy part to implement such functionality. >> (defun disable-feature (feature) > > I had a hope that existing `unload-feature' is enough. `unload-feature' serves different purpose, no? I am not sure if mixing the two will be welcome by Emacs devs, if we really want to pursue inclusion this into Emacs. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at