From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Max Nikulin Newsgroups: gmane.emacs.bugs Subject: bug#59882: Multiple versions of Org in load-path problem Date: Thu, 6 Apr 2023 23:09:13 +0700 Message-ID: <7e64ae5e-6fd7-ea41-dae5-c8abd9a3fefa__3157.20662926964$1680797426$gmane$org@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13471"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Cc: emacs-orgmode@gnu.org, 59882@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 06 18:10:19 2023 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 1pkSBn-0003LA-6H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Apr 2023 18:10:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkSBc-0001YR-1V; Thu, 06 Apr 2023 12:10:08 -0400 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 1pkSBW-0001YD-Sy for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 12:10:02 -0400 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 1pkSBW-0006Tw-E5 for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 12:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkSBV-00016L-PI for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 12:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Max Nikulin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2023 16:10: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.16807973664157 (code B ref 59882); Thu, 06 Apr 2023 16:10:01 +0000 Original-Received: (at 59882) by debbugs.gnu.org; 6 Apr 2023 16:09:26 +0000 Original-Received: from localhost ([127.0.0.1]:54788 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkSAw-00014w-1i for submit@debbugs.gnu.org; Thu, 06 Apr 2023 12:09:26 -0400 Original-Received: from mail-lj1-f172.google.com ([209.85.208.172]:44936) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkSAr-00014Z-Rq for 59882@debbugs.gnu.org; Thu, 06 Apr 2023 12:09:25 -0400 Original-Received: by mail-lj1-f172.google.com with SMTP id q14so41157206ljm.11 for <59882@debbugs.gnu.org>; Thu, 06 Apr 2023 09:09:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1680797355; x=1683389355; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:from:to:cc:subject:date:message-id:reply-to; bh=sqq9UBmGaB3zlV031L3TvGXqD7UsGapUf4YlERgSs9U=; b=QgLq4f/y5k/Z53hW29sYZmN7H5YYtyqiBWLJX5lLhrrzsXgGqeXFL+KQEn5zWFmmSn y8tkA40aIj9/67Z8WuJFnHEhFfkfL4CGs/LzEioAmYu8xRs/A6MB/gQ8q0m7+RQHjFU9 Onbth9QICg6TJevUhNWPSGbYayte/gt98AlAFo9jFkybSrseTLgymjkD7yNcS0hskbE4 15rIzjWIARPjZsQFX+mhXz6AKHoAUeuDi+uy2jcXee1qySaAvCshjpQnScuhO4TElXMe oUvzUe1S+WmmCkzmMYjxNwkikigKj7/ltL3oi+QWV0uee582TN3hJ+4/ghJvbUr3Ku6B 5t/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680797355; x=1683389355; h=content-transfer-encoding:in-reply-to:mail-followup-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=sqq9UBmGaB3zlV031L3TvGXqD7UsGapUf4YlERgSs9U=; b=tsakefzohbBCoseanpRVjJnYWHfW/UelWagsyz2WpebZmtVKcS2M1c3RTCIpyFbvsy PzkvgdjHzZn6Ki1Z1krrXCbmfoXjKUZ4xhBZsQ2Lmndd+y7ELbjFn4LWNUgQoD6T4Opy /Fv0HzOYwenQ8LbqKeoEmCLlJVdJf0viqLqyJ6/zU59vAIijEQw55wCsfvwbQF24I3Fh LZY/rEi+5hN1sKr51w0lujPI6ng3WSe/HvfEV8nbbZGghpafb76B2XsfiHbjaW6mwDyo sn+T4Pa8NdN9qlFlBnIVni3j7jEAzlAZRU32TV4nR7ejEAW+DDOzEdhXmYni0Wp+ELbT WWmw== X-Gm-Message-State: AAQBX9cUKVDdE2+KM+pzIdXQv60+yoBEy8WHh2yMnw6e7XdGWQ5lIRIA SJ4QqYzdQH610nAnqbZO3+ihgetop468EA== X-Google-Smtp-Source: AKy350YZIKoneWNe88kLaNsQl6PV0qpBt/z1dqlU6xKgv//dCTCW2UYnrSWnoVL4BPwhnGTq2pCLxg== X-Received: by 2002:a2e:8753:0:b0:2a2:54e8:1037 with SMTP id q19-20020a2e8753000000b002a254e81037mr2939263ljj.38.1680797355202; Thu, 06 Apr 2023 09:09:15 -0700 (PDT) Original-Received: from [192.168.0.101] (nat-0-0.nsk.sibset.net. [5.44.169.188]) by smtp.googlemail.com with ESMTPSA id k18-20020a2e8892000000b002958a51df76sm336254lji.92.2023.04.06.09.09.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 06 Apr 2023 09:09:14 -0700 (PDT) Content-Language: en-US Mail-Followup-To: Stefan Monnier , emacs-orgmode@gnu.org, 59882@debbugs.gnu.org In-Reply-To: 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:259331 Archived-At: On 18/12/2022 22:40, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> - "emacs -l org" to simulate a regular user session with some opened files. >> - 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ā„¢ investigate why that code > doesn't do its job. > > The code in question is in `package--reload-previously-loaded` Since I managed to reproduce the issue with emacs-28.2 built from source tree, I tried current master (30.0.50) as well. I used the following trick to shadow org-assert-version: sed -i -e 's/org-assert-version/org-assert-version-old/g' lisp/org/*.el I am unable to reproduce the "Invalid function: org-assert-version" issue. Org compilation finishes without warnings. I have noticed that neither `package--reload-previously-loaded` nor code loading already compiled package unload the loaddefs file. E.g. I added org-stale-function marked as autoload. It is possible to get help for this function, but attempts to call this function causes "Autoloading file" error. Ideally emacs should completely forget about such functions when newer elpa package is installed.