From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs,gmane.emacs.orgmode Subject: bug#59882: Multiple versions of Org in load-path problem Date: Sun, 18 Dec 2022 10:40:39 -0500 Message-ID: References: <87tu27jq7h.fsf@localhost> <87k032nyok.fsf@localhost> <39a5810d-75bc-4ddb-8722-703f762ed4de@app.fastmail.com> <835yel11x8.fsf@gnu.org> <87edt2qpoa.fsf@localhost> <83359innsp.fsf@gnu.org> <87pmcmt8cc.fsf@localhost> <3bf2e057-4204-cdc8-0847-39a723db4fc8@gmail.com> <809ae318-fe95-1023-6bca-ba827fd01a29@gmail.com> <87fsdfs8vl.fsf@localhost> <4b053e69-87d3-8323-8949-0546b4bb6c1a@gmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11954"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Ihor Radchenko , emacs-orgmode@gnu.org, Eli Zaretskii , 59882@debbugs.gnu.org To: Max Nikulin Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 18 16:41:24 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p6vn2-0002yR-Gk for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 18 Dec 2022 16:41:24 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6vmn-0004Oy-Ps; Sun, 18 Dec 2022 10:41:10 -0500 Original-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 1p6vmj-0004O2-89 for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2022 10:41:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6vmg-00044Q-HI for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2022 10:41:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p6vmf-0006zW-TL for bug-gnu-emacs@gnu.org; Sun, 18 Dec 2022 10:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Dec 2022 15:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59882 X-GNU-PR-Package: emacs Original-Received: via spool by 59882-submit@debbugs.gnu.org id=B59882.167137805726861 (code B ref 59882); Sun, 18 Dec 2022 15:41:01 +0000 Original-Received: (at 59882) by debbugs.gnu.org; 18 Dec 2022 15:40:57 +0000 Original-Received: from localhost ([127.0.0.1]:34526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6vma-0006zB-Kq for submit@debbugs.gnu.org; Sun, 18 Dec 2022 10:40:56 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:52441) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p6vmZ-0006z5-10 for 59882@debbugs.gnu.org; Sun, 18 Dec 2022 10:40:55 -0500 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 824F2440F2F; Sun, 18 Dec 2022 10:40:49 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id AB2434401BE; Sun, 18 Dec 2022 10:40:47 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1671378047; bh=86gF1hoBgjm8HufTIRe5F9ukXsOLjO18YHHelTvsBk8=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=i7PZXJelGvuZpwwZLh2P57S9dZ8RiM7ciBWGm48bVrZ1EhqYhvrOi0OF7EgPAMku+ Gl3KtwMivrMnCywrXdVIvRzVS5+e7WNwZdR29e90LtqJzM7Sng8TpiUlnNZoJpf47P 5u21ZslnP/yv7/72RFsUqcc73Mf3Z4ulufqKe5Eh/jWQ/vioDlK530JOwU3TqZcBlQ HrbhDSG6Cauhc3uYTSGgs0y08LakaZfKhf7cFDAfVDmcjrMs7bfKYVGULdH0lOtk+7 cbD2spROsRJiai0hmL3mTHHalEhe9Jwa3iqfzigs4rytON+Et2vnFhf2AtjgMtiTnx mofyTHGp5WE4A== Original-Received: from pastel (unknown [45.72.200.228]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7964B120D6D; Sun, 18 Dec 2022 10:40:47 -0500 (EST) In-Reply-To: <4b053e69-87d3-8323-8949-0546b4bb6c1a@gmail.com> (Max Nikulin's message of "Sun, 18 Dec 2022 22:24:24 +0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:251370 gmane.emacs.orgmode:151527 Archived-At: > - "emacs -l org" to simulate a regular user session with some opened file= s. > - Update to Org-9.6 from ELPA. > - Close emacs and start it again "emacs -l org" > > Result: > byte-code: Invalid function: org-assert-version Hmm... there's code in `package.el` intended to avoid that problem, but clearly it's failing here. Could Someone=E2=84=A2 investigate why that code doesn't do its job. The code in question is in `package--reload-previously-loaded` and my understanding is that it should cause `org-macs` to be reloaded from the Org-9.6 version of the code before the new code gets compiled, and that new version does define the `org-assert-version` version, so those macro calls should then be compiled correctly. [ The approach used in `package--reload-previously-loaded` has its weaknesses, but AFAIK it *should* be able to avoid the above error. ] Stefan