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 EKw0BXZAIWPPogAAbAwnHQ (envelope-from ) for ; Wed, 14 Sep 2022 04:46:14 +0200 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 uIo1BXZAIWNi3wAAauVa8A (envelope-from ) for ; Wed, 14 Sep 2022 04:46:14 +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 99750D534 for ; Wed, 14 Sep 2022 04:46:13 +0200 (CEST) Received: from localhost ([::1]:47350 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oYIPj-0007YV-VX for larch@yhetil.org; Tue, 13 Sep 2022 22:46:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38600) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oYIPA-0007YM-BN for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 22:45:38 -0400 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]:37747) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oYIP7-000727-OS for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 22:45:35 -0400 Received: by mail-pl1-x62a.google.com with SMTP id s18so7786712plr.4 for ; Tue, 13 Sep 2022 19:45:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date; bh=vczCOMrCE2PWY0/J/oIvmSmfMxtlmE6t3h6K2oz32Po=; b=CAFm5VzJ6jkDN5KxPCWvoALFRL5U5Xd275VtmGdlisvkSnmQi+Aqqe9rlHzJwaxBIX bk+mT6B3wJEetbzGspR15zpLxd4LU0sMiESn7lkV1Ra+rKw9YyOJpwZkDwjFQBWPyb4q fuUOaOw/Pkut/iGUyEAsoaMovePc/pMsuj92M6vz1cA9xDZFI6MtLvO/ZE0TkVa6W4UE rYSuCiCTB3cFisUZJtJh7EOeB3ntADn13bmLNjvZ4KgVxHcH3mCV3Yj21gM4byPxxuUr Drq9mkKJ3acdLWLUqWyiwKag6fBUCUekJZynYXPUcImvEuTS2I3VOp+M5fEE4Sc08zWd Tq6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=vczCOMrCE2PWY0/J/oIvmSmfMxtlmE6t3h6K2oz32Po=; b=srgenxcl1rOEc/RD5NpxCOSCS91XTPbZtTaokfsO9xHonsndVt4wBSB/455bPsELJx coNh/tq6lVWvqZpJArwEHSE9rRIO3ngNiwh3Tkz4eUnYQBkuonHmgDRsAy/mttp7D5Mw +OcS4JxYuW6TqWovbkstapsauW/CSCfQviXzRC4S6QBt8kDwLp2C+Hh7ky/dnwvsfswH hnyVZB6sD1rWFLY+UFl58B6F7QJaU2OMmsC37c8ksZYtpp3Oxko6jw2FISRdGGVOU9Rr nlA+QGR7rAZak3RIrI0BDvJ2xWE2vCXo4C1IdPHgNEWoV8R7klb2niML2GASKHqxDweY +6XA== X-Gm-Message-State: ACgBeo0uQLqsxp7P9b2FxHUSLzrYuM2rfcqZpVuJ2Y+2fm4DKRiNcwa1 nyk2isEqfbpTyHLReQP8Kp8kWVlWklNfvQ== X-Google-Smtp-Source: AA6agR4ikGJ5DWPiFpSaHJLVIYF3UfeDH3qaZP9Xcz/tlzWkRI0XXv7UmI3NBk3RfOIcN1eCS7NK1Q== X-Received: by 2002:a17:903:1c2:b0:178:3c7e:34f5 with SMTP id e2-20020a17090301c200b001783c7e34f5mr9746116plh.105.1663123531239; Tue, 13 Sep 2022 19:45:31 -0700 (PDT) Received: from localhost ([2409:8970:a81:48f7:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id x4-20020a170902ea8400b0016f975be2e7sm9245052plb.139.2022.09.13.19.45.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 19:45:30 -0700 (PDT) From: Ihor Radchenko To: Stefan Monnier Cc: emacs-orgmode@gnu.org Subject: Re: org-assert-version considered harmful In-Reply-To: References: <875yhsujkq.fsf@localhost> <87h71ct10n.fsf@localhost> <87tu5bbajh.fsf@localhost> Date: Wed, 14 Sep 2022 10:46:24 +0800 Message-ID: <87r10ey8ov.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=yantar92@gmail.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1663123573; 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=vczCOMrCE2PWY0/J/oIvmSmfMxtlmE6t3h6K2oz32Po=; b=RlXrrYxoxcJ8dH4NWoRYp+izfZDMNoS90cVVS+ac/+Z82m/Vm1zsw5Qy96OIrfneD2RQNp MaKPIS9zD1X/Xg0XZtBeCmJ7jH41lX0CcdDxbiLgr9BtK05Rb8zizg8alNGOsiCcv+A20W BvjyLqfN2IaCqJk1bBAtbGGISR53T14h1SuNMug9txcKGyiFy5mDe8n0ka6HWiSW9D2+oE 1tv2LVlAK3y2Q6LeVd7cw69t+pV1ak5zrnMZo6pnunxRsxUMXOOTwdzYIIl0wTjYXUrluD acv5bFqeAnsXN9Kui07sDTxCkupL0+IupYSi5mstNOlPqKYTz1YTyvII9ebBdQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663123573; a=rsa-sha256; cv=none; b=Rk9lu8HE5U6BP5sThJ93JvObJxUFyZveLPIuD2BUfYdB6W7IVJN+BY+u+JZIWB0KhEyAgb Rgq1FN4rKB0rSLmoeV8DfmcqzSILT18+/z8r0go2fSEr8JUTaqKX7JTjta7aDeKg9WA4+B /foxjS6qRoip2gOeMtOvZj9YpRXD52uF1cMzSABi/sXgE8bvAtyxU3mpNEPt7jEebctSxg iOgx0EP+b6DtZ6yak7eU3TNNdrE73TVC8SsdudtqmQLCg+ZFMrecJCdWLBB5dSMg3kLlxG YOhhZCX6aRZYPyMJgmpuvEkJU6/I2JcswcWTHh9CIYRtJ9TMn2pOCxLBeKiwUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CAFm5VzJ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Spam-Score: -3.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=CAFm5VzJ; dmarc=pass (policy=none) header.from=gmail.com; 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" X-Migadu-Queue-Id: 99750D534 X-Spam-Score: -3.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: I8LNhiGjlFUS Stefan Monnier writes: >>> Yup. But there's no option to automatically find those dependencies in >>> ELisp, and (IIRC from last time I looked at it, in many packages obeying >>> such dependencies would end up introducing circular dependencies in >>> the Makefile), so we'd have to depend on the package's author to provide >>> a working set of file dependencies. >> >> It would be nice to have such an option. > > Agreed. The "last time" mentioned above, I looked at changing the > byte-compiler to keep track of the macros that were expanded so we can > auto-generate the dependencies. Then, I am inclined towards easing the version check to (org-version) instead of (org-git-version). It will be no worse than the existing situation with re-compiling updated .el files. >> For reference, one simple way to trigger "mixed" state of Org is doing >> something like: >> >> 1. emacs -Q >> 2. (require 'org) >> 3. Add the newer Org version to load-path >> 4. (require 'ob-python) >> >> When and which version of org-autoloads.el will be loaded in >> such scenario? > > None :-( > > In my book step 3 above is a mistake (even if moved to step 2). I am confused. AFAIK, changing the load-path is a common way for users to install packages manually. We do recommend setting the load-path in https://orgmode.org/org.html#Installation and https://orgmode.org/manual/Feedback.html Moreover, it is also the recommendation from Emacs manual section "28.8 Libraries of Lisp Code for Emacs": >>> The default value of =E2=80=98load-path=E2=80=99 is a list of direct= ories where the >>> Lisp code for Emacs itself is stored. If you have libraries of your own >>> in another directory, you can add that directory to the load path. >>> Unlike most other variables described in this manual, =E2=80=98load-pat= h=E2=80=99 cannot >>> be changed via the Customize interface (*note Easy Customization::), but >>> you can add a directory to it by putting a line like this in your init >>> file (*note Init File::): >>>=20 >>> (add-to-list 'load-path "/path/to/my/lisp/library") --=20 Ihor Radchenko, Org mode contributor, Learn more about Org mode at https://orgmode.org/. Support Org development at https://liberapay.com/org-mode, or support my work at https://liberapay.com/yantar92