From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 8MflKq2XIGPdqQAAbAwnHQ (envelope-from ) for ; Tue, 13 Sep 2022 16:46:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 7izxKq2XIGOdeAEA9RJhRA (envelope-from ) for ; Tue, 13 Sep 2022 16:46:05 +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 48F6F1469F for ; Tue, 13 Sep 2022 16:46:05 +0200 (CEST) Received: from localhost ([::1]:53734 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oY7Aq-0004eq-5Y for larch@yhetil.org; Tue, 13 Sep 2022 10:46:04 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56464) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oY76m-0002Qf-Si for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 10:41:52 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:44640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oY76l-0000yl-00 for emacs-orgmode@gnu.org; Tue, 13 Sep 2022 10:41:52 -0400 Received: by mail-pl1-x629.google.com with SMTP id k21so1503268pls.11 for ; Tue, 13 Sep 2022 07:41:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date; bh=uTNNsDJVwupmAu4DOtwlVr9KJ27PQPfHdVKXFKezC0o=; b=D41+Ewth70d2TKSu9mnp9bHhjbq/BQzNHirLaX9Dmr//13bI9GGIo7Wv4Qg3RV8IQu fmU2PxGnsOyZjaUVZhW8j9iqr2VLwgW+/FNy+5GknCP7QcHsLQDvMEgzmyfvGGHWvJU3 FgmQeeF5xK5hd7bZ+lxepMyy2jA73Ow/1xcbyscMnIS7W3GdnJf8xkx6psDImIJ+rE7C 3REtNjFppopAQz9xGeAWu6fAi04b3CkrEMPeWD5q8Zye1SnqUMqE+9vZ5sLgs0PGS5L/ 4mQd/sQgFafsyQFyhC7TCLWMTcOYrFX0FsjIYRrFfrr6XzDRW5PEbnibFKxBE4/SdcRY kL1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date; bh=uTNNsDJVwupmAu4DOtwlVr9KJ27PQPfHdVKXFKezC0o=; b=QUvWh8Bw1EhB1JJ0yYvtN6LcSyX8RHancULOk7Lni6Pqg8ci+vPjD71+m6l0m+w66q DoAfWhnFNdRNno04OiJ9SE0TTkS7ImDZh4NewwJfF701QVox1ZgGA4HUumnPrnhCbaRI Hc8u6u+NsJ4WRPPLXjtxz9KMMtVjKi20SRoeRdiK6qkiHN8OI4xRRRBjwlqbrqdd0kWz ibXtC0J6PQ3jB1AxPpawAhdIWwsKCdo8hV4UbCF/1E9GbV0mifuZ/WKzDbxv/Ga61d7j BkUgZ9n3zJ4PnBBmsJspTP8+9yiO6JP36QhWxP5bQgVdZr6/DYP3eWokKST893pA0WB7 fONQ== X-Gm-Message-State: ACgBeo36d7NhyXPIgkWOBjA7CnusHd5eOD4hW+PkmUbTXn9lEeo54MaX zijN2cqm/Ke0acDl3J0h9c2YFzQ/WhtjcPb3 X-Google-Smtp-Source: AA6agR7bhk8KgnILclvEeHXubkYI/QIRlSW5MQ7PRMFc0l1aOCAijNRr7JO0pUdyGwNeJkKMYZD1uw== X-Received: by 2002:a17:90a:7343:b0:1fd:d6fc:b2f with SMTP id j3-20020a17090a734300b001fdd6fc0b2fmr4425553pjs.65.1663080109041; Tue, 13 Sep 2022 07:41:49 -0700 (PDT) Received: from localhost ([2409:8a70:2bc:c850:8ec6:81ff:fe70:339d]) by smtp.gmail.com with ESMTPSA id a10-20020a170902ecca00b0016c574aa0fdsm8616466plh.76.2022.09.13.07.41.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Sep 2022 07:41:48 -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> Date: Tue, 13 Sep 2022 22:42:42 +0800 Message-ID: <87tu5bbajh.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=yantar92@gmail.com; helo=mail-pl1-x629.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=1663080365; 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=uTNNsDJVwupmAu4DOtwlVr9KJ27PQPfHdVKXFKezC0o=; b=MELIAuPk6EU6hPOHwInl6TwqmIGlzxLAHBnWYorWHpRN8ge32snb0eUAurBlJGi5OR++Nu UCZuNFUsRPLygctzNl+oIyDYIU0WydOrJVMY9r6K0udH5dQf4j+AOejBjEPh5F2T7p0pWS wsH6npuyd1KTr1/JcuDhQQv6LK2bZMAkbvMJUCFfosynH/vovyzo3d272Ya5UdJWxBNJ4E yY8AUPp47dieBtNe4D5ysPuApwDnrLHQDeW+xO42h7grFQN5Y803s1+I3BrTuYIYw3TBr5 VPLXls2bRbcDHRtwXwEd4xbBtV7xS8yeTgn0eNDup98bxoIQVW9bqGVpzv/0MA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1663080365; a=rsa-sha256; cv=none; b=sphvpW5nr/X3L5ntDIJnuwMfMmWu82yWmvoOLqiCQpmRRjGHHoIw8yYFFLi/irisQ3/Spl XmvUBlimNmtwYsgIavtlEMV2vP4YLcWFg6/pf99ItI78X+7LB+VTYyzZF022CEqo16O0R0 ykUyGg71o0++ksxxvtDFQBaEX3RLcpfypAbz1M7fwwtpal6BG3tquBaJ0LjhDhNJTsxjsK meFD+jCoGjHDbkqGFcU6TIdqB1ueKsEFc1I/GGxUFkLT2r3kknZds2Z3m4Gsxx+rcrgrlg XLUwW4M2NpEIUu6Nabv4GxI1UP6YtmBvkHjQ+D7prfTCN6XOJKDrToOhhdXSig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=D41+Ewth; 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: -6.81 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=D41+Ewth; 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: 48F6F1469F X-Spam-Score: -6.81 X-Migadu-Scanner: scn0.migadu.com X-TUID: Pkr+9CpyKp8l Stefan Monnier writes: >>> - git pull => switches to 9.5.5, but several .el files are left unchanged. >>> - make autoloads => this refreshes the autoloads, but the .elc files >>> of those .el files which didn't change still won't be recompiled. >> >> Isn't it a bug in the elpa scripts then? >> If a macro definition is changed and the .elc file using that macro is >> not changed, it still needs to be re-compiled. Otherwise, all kinds of >> unexpected side effects may appear. > > 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. At least, for the most critical macros. Something similar to declare statements. >>> PPS: Maybe instead of calling `org-assert-version` everywhere, the >>> `org-autoloads.el` (i.e. the file that sets up the `load-path` and >>> the autoloads) could look for traces of Org files in the >>> `load-history` and signal an error if such files are found coming >>> from a different directory. >> >> No, unfortunately. >> >> org-autoloads, when loaded from built-in Emacs version will not help >> to catch newer Org libraries being loaded after built-in Org version is >> loaded. > > Hmm... after new-org-autoloads.el is loaded, the old-Org files will be > relegated to "late in the `load-path`" (i.e. after the directory that > holds the new-Org file) and should hence not be loaded any more (unless > someone goes through the trouble to explicitly load an old-Org files > with an absolute file name). I admit that I do not have sufficient knowledge about the autoload magic Emacs uses when loading packages. 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? -- 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