From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id IJVDIEGu3GQ+dAEASxT56A (envelope-from ) for ; Wed, 16 Aug 2023 13:08:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id IA2zH0Gu3GTpewEAauVa8A (envelope-from ) for ; Wed, 16 Aug 2023 13:08:49 +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 14340610A7 for ; Wed, 16 Aug 2023 13:08:49 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UmLvBWBu; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692184129; 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=+NZoZ6KdTAUwAQHhuhqkvK+E4A2hldxYUrMt3rN7A9c=; b=VPpN3oeLZiwIuUmTQG+ZuZ+dbih5bQPZx9Jh9pbQCKVKWJWVD6aoC38tGPdjERD1fEEm+6 7zO5qsvQUWZ/rgDAII96w6zoCLFdlvpAAffJltFSuvOwMsbIAi3yyYBA+1E+vjtOpjaLU5 4gQt93RCHaKwdSwpZ1OCwa3ju58DshM3iget4DtMF8ZWRNMKZlsdMT2PgY6vm4SduxIpju rNOtFSKSxQZLvAvxGn2k87sRYUrpd9BcegRwuZliWkSJTyWrK+dixNvjc3D3HodqPMnkrS AEt+oRt3JvCMCuFTpiZuy2W2/3XANlrf6rghNgJAz2j5CDhUVFnN0SirZbNCzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=UmLvBWBu; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692184129; a=rsa-sha256; cv=none; b=Ad5LMoDB12XiMNs994JSLcVpuQySZ68hKzyJYdbX2+/PFVxLylVF4Z5w+b9f/Hj1dcbVYc nN24oS7pp60LkGZMpEvrKSLw3w7wGgDB7LuU+GVR4OhsG90mCH0EfCk/+E8h/WJK7OqiBV irZaA0/uQT0PWEbDe61Ha1Q053Cx5prAGZkobL/5G+D4yQ8DSld0piwKFnhh2vtreM8FGJ TPVyiZ/7PJ185adrlNNqyrRX4wpE1lq1QX0lCCIzQbj/tjmFaSfcJsbGNqr1X4XCmcaMo6 FhpYvT5XEUZsxGxVnG2bpQfnjNaFJLOAJOqNKEOwt+/oTEw8IepS/FeQo8c3tw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWENe-0002tQ-2X; Wed, 16 Aug 2023 07:08:02 -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 1qWENd-0002sw-2B for emacs-orgmode@gnu.org; Wed, 16 Aug 2023 07:08:01 -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 1qWENW-0004l2-OP for emacs-orgmode@gnu.org; Wed, 16 Aug 2023 07:07:58 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id E5EB5240106 for ; Wed, 16 Aug 2023 13:07:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692184067; bh=DgukPAHy5JMUT9AEZOtuF5BYM1kboxQxMPHn8oVzdLs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=UmLvBWBu8lT9fFHX9UoozTdqLqLBf7eAj3UKyka8VRr2a6G179DBqv0WZ8PnUhu+t 0iwfbWuwmp0NfvE4jSiv0oml0k+pwP2+grVWKfysaxl9i5aoZzFNVK/1G+XwyKpKuV lKYsV7+3oaOfxC6nrWsy0KMVAITrD5EqtePi8CVfM+bCvXPxYHF12Z/9WMm0QBkz9I hhcFoDch7oOmFeS2C/1qPWr67AcQuC+cz/55X0FomdTv3/vy/JG1dHU4gmuAUeelB4 B+4badUHnn3CG1xo8bfB74MskbYuK7+c0Gct5bi2obke0SRWt9W4+XP0LOdWezgPHw bCgV1Xr+WSm+Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RQljH0RCjz9rxP; Wed, 16 Aug 2023 13:07:46 +0200 (CEST) From: Ihor Radchenko To: Stefan Monnier Cc: Tom Gillespie , "emacs-orgmode@gnu.org" , Bastien Subject: Re: org-assert-version considered harmful In-Reply-To: <877cz7jucs.fsf@localhost> References: <875yhsujkq.fsf@localhost> <87h71ct10n.fsf@localhost> <87tu5bbajh.fsf@localhost> <87r10ey8ov.fsf@localhost> <87o7v4dvon.fsf@gnu.org> <87pmfijrvw.fsf@localhost> <87y1u4ec18.fsf@gnu.org> <871qqnjjdw.fsf@localhost> <87zgd85vc9.fsf@localhost> <87359yl2w5.fsf@localhost> <877cz7jucs.fsf@localhost> Date: Wed, 16 Aug 2023 11:08:15 +0000 Message-ID: <87h6oznt28.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_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -6.40 X-Migadu-Queue-Id: 14340610A7 X-Migadu-Scanner: mx0.migadu.com X-Migadu-Spam-Score: -6.40 X-TUID: pZ7OgJOQSgJK Ihor Radchenko writes: > Stefan Monnier writes: > >> BTW, rather than unloading, `package.el` relies on forcibly "re"loading >> from the new version the already loaded files from the old version. >> It suffers from a different set of problem :-( >> [ I suspect `defvar` is the main problem for that solution. ] > > Could it be possible to force require use certain package version and > automatically re-load a package when older version is being loaded? After trying several more approaches, I now came up with yet another idea. Instead of fiddling with load internals, compilation, or load-path, what about making sure that Org libraries include version info directly? Every library will have (require 'org-foo-9.X "org-foo") (require 'org-bar-9.X "org-bar") ... (provide 'org-lib) (provide 'org-lib-9.X) Then, we will make sure that the right version of the library is always loaded. Simply because (provide 'org-lib-9.X) will be unique for different Org releases. There might still be a problem where we solve cyclic dependencies by using declare-function, but those places should be fixed anyway, sooner or later. WDYT? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at