From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id oOhzDfjzLmRchQAASxT56A (envelope-from ) for ; Thu, 06 Apr 2023 18:31:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id aGlnDfjzLmTPnQAAauVa8A (envelope-from ) for ; Thu, 06 Apr 2023 18:31:52 +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 A1F5138F87 for ; Thu, 6 Apr 2023 18:31:51 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkSAr-0000c1-5a; Thu, 06 Apr 2023 12:09:21 -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 1pkSAp-0000bZ-69 for emacs-orgmode@gnu.org; Thu, 06 Apr 2023 12:09:19 -0400 Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pkSAn-0006O9-JP for emacs-orgmode@gnu.org; Thu, 06 Apr 2023 12:09:18 -0400 Received: by mail-lj1-x22b.google.com with SMTP id y7so8748760ljp.2 for ; Thu, 06 Apr 2023 09:09:17 -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=tvkkQ4CTctUKbWw9m3w7DI2A6PHN9oikW0ptHJFG0mMDZSvOGY5JYMntKL45MuX5Wd hcgdyVdbe539bx75OU1jIllQbNrwF5SYHpIemYKU14b/2i/Et9YtL0mXrsN4HAzqxcVq ksfsL77DFiWyMfwrQN7hFHwoERN7rK5+5f85LdjDAOKGqHdyb2DFRBXNqojBC4YOdba+ uodHd4ENhsbNx4FEWJZ7vOEb86CBT17gLv7IOdbLwMtr0AHGTVdoWs1X7d4vlUCLI58I JaBUcpiNXJNaXdbBnrdC+Rqz5ggs6dshgx6IgE8NPlht6e76cWw8h2idUKS5lW0ROJgk F5YA== X-Gm-Message-State: AAQBX9egrjiZ/LgEDVP5z23s0kUzNPWPKBmzsdnjgLeJMRuvevWJpK5m GRneR0xaZ+frKdw3sNQ3vQM= 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) 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) Message-ID: <7e64ae5e-6fd7-ea41-dae5-c8abd9a3fefa@gmail.com> Date: Thu, 6 Apr 2023 23:09:13 +0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: bug#59882: Multiple versions of Org in load-path problem Content-Language: en-US To: Stefan Monnier Cc: emacs-orgmode@gnu.org, 59882@debbugs.gnu.org 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> From: Max Nikulin Mail-Followup-To: Stefan Monnier , emacs-orgmode@gnu.org, 59882@debbugs.gnu.org In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::22b; envelope-from=manikulin@gmail.com; helo=mail-lj1-x22b.google.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 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_FROM=0.001, NICE_REPLY_A=-2.224, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1680798712; a=rsa-sha256; cv=none; b=Ht8AOoFOF/IGuiIb9t0L3y0SIhl2edMemeSH4ihtZ+d4NsHcPkviVpZON5n+QDXxEdeELJ 82AsSEdTTfmxkfQr8kk9Vu4M2YMp5IVne/EK1XFg8YiPz4rwFdYQBacHglFzuNanJAtcMh x7FZwqSaMOnwaMKfW3nD+NWo3rTtdl3GbrVB6Ck4CrTzPHNlK4GS5zYqlg/lqRUdYV0q5o ZggtJkzkE8iR/AqLcaH+uUmd5C1MEuEoAzxpHIVAaBl9wA7z8p2CMgEiSvH4B0RXtbfIO7 fFGrc7hpNr9jt5eZclLhJR4QyNufLMK1EajOn+e+UKFhl8d0iW7v0dTUIn4pmA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="QgLq4f/y"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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=1680798712; 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=sqq9UBmGaB3zlV031L3TvGXqD7UsGapUf4YlERgSs9U=; b=k+CEhtnsIqjD01ANTMpJoVI9MYBcDtC6rdeKZ7Wpk8aOtp5OdipXqqXdjfb7bvEYcKoS5U tskBaCl9mvliRj96Ea4Z5ZIEKzHB6zSYNz3SiSgi9uDJ8WYMz9Bnj+5SPhudOP6fmIwzmF yXQmb/IYasb637TJCYWTfVPHRsVFqkhZZmCZHxZJJYo0vwMa7Ag7VyQhfjkCvf/g5tSjen 1bxU9XbqdPm0z2QJ9r8zTNy+pnicf5Sqe3JtCkOZZuZ9RrR1sN3XP4xw7KlvNTTEOQ6fNl PTB8EAZq2j770OqETcKq+uQqloGtni2PYt1K0f/NpDCm4+zPj+zECYaiB3MOmQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b="QgLq4f/y"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -2.72 X-Spam-Score: -2.72 X-Migadu-Queue-Id: A1F5138F87 X-TUID: XOt1x3Fseue7 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.