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: Thu, 06 Apr 2023 17:25:08 -0400 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> <7e64ae5e-6fd7-ea41-dae5-c8abd9a3fefa@gmail.com> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14188"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 59882@debbugs.gnu.org To: emacs-orgmode@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 06 23:26: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 1pkX7a-0003Td-UQ for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 06 Apr 2023 23:26:19 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkX7M-0004PH-LP; Thu, 06 Apr 2023 17:26:04 -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 1pkX7K-0004OO-G6 for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 17:26: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 1pkX7K-0006oN-8k for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 17:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pkX7J-0007uO-PM for bug-gnu-emacs@gnu.org; Thu, 06 Apr 2023 17:26:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Apr 2023 21:26: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.168081632730359 (code B ref 59882); Thu, 06 Apr 2023 21:26:01 +0000 Original-Received: (at 59882) by debbugs.gnu.org; 6 Apr 2023 21:25:27 +0000 Original-Received: from localhost ([127.0.0.1]:55320 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkX6k-0007tb-Pb for submit@debbugs.gnu.org; Thu, 06 Apr 2023 17:25:27 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:49036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pkX6i-0007tI-JU for 59882@debbugs.gnu.org; Thu, 06 Apr 2023 17:25:25 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1DE2F442DFB; Thu, 6 Apr 2023 17:25:19 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D075B442DF9; Thu, 6 Apr 2023 17:25:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1680816309; bh=Tvs9+JBzarvgxGRTeBn3r+PcYftARGNz/qjM8iuDSS0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PSumX3YONyzQCFm8dAyWODsoKhElzTxHZwEg+xFZ/LEk0yvOX3B0gRcWdyf0DBbeK OAt/0OgRICEJ+4qVqK5+n/GaTqsxYCQI/KKmMoJz1mu1oZbCzzOso6N+Afa5azGxup Z3sR1LwyABGU1kp3FWJZ3rzSFplPO7kyyMg67AqsRLMfSg5L5k7Y9rIBYWh/d6O7dn s9MYtJI/Bs3KsS+k/2b//l5Q6/0avGoBlMq4h3d/Z58057Z8tXOs4lTiZiAnVVADPk UVvGGh64gpl351LY3qhOlVJSzrxlV454iM2v+YqhrEB7e45TGbH/gaQDol5Hf4RL80 8+Ry2+kAPqvMQ== Original-Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B3B001233C3; Thu, 6 Apr 2023 17:25:09 -0400 (EDT) In-Reply-To: <7e64ae5e-6fd7-ea41-dae5-c8abd9a3fefa@gmail.com> (Max Nikulin's message of "Thu, 6 Apr 2023 23:09:13 +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:259358 gmane.emacs.orgmode:154244 Archived-At: > I have noticed that neither `package--reload-previously-loaded` nor code > loading already compiled package unload the loaddefs file. E.g. I added The state of our unloading support is not good enough to use it blindly, indeed: it's too easy/common to have packages where `unload` leaves you with an Emacs that has serious problems (including being unusable). So, instead we limit ourselves to force-reloading files which tends to be much more harmless (tho in theory of course it's just as bad). It also tends to be sufficient. Stefan From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4LxMIP04L2STPwEASxT56A (envelope-from ) for ; Thu, 06 Apr 2023 23:26:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id oI4QIP04L2T2PwAAauVa8A (envelope-from ) for ; Thu, 06 Apr 2023 23:26:21 +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 E36898546 for ; Thu, 6 Apr 2023 23:26:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pkX6i-0003ww-B6; Thu, 06 Apr 2023 17:25:24 -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 1pkX6g-0003wi-Rm for emacs-orgmode@gnu.org; Thu, 06 Apr 2023 17:25:23 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pkX6f-0006Yg-1C for emacs-orgmode@gnu.org; Thu, 06 Apr 2023 17:25:22 -0400 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 1DE2F442DFB; Thu, 6 Apr 2023 17:25:19 -0400 (EDT) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id D075B442DF9; Thu, 6 Apr 2023 17:25:09 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1680816309; bh=Tvs9+JBzarvgxGRTeBn3r+PcYftARGNz/qjM8iuDSS0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=PSumX3YONyzQCFm8dAyWODsoKhElzTxHZwEg+xFZ/LEk0yvOX3B0gRcWdyf0DBbeK OAt/0OgRICEJ+4qVqK5+n/GaTqsxYCQI/KKmMoJz1mu1oZbCzzOso6N+Afa5azGxup Z3sR1LwyABGU1kp3FWJZ3rzSFplPO7kyyMg67AqsRLMfSg5L5k7Y9rIBYWh/d6O7dn s9MYtJI/Bs3KsS+k/2b//l5Q6/0avGoBlMq4h3d/Z58057Z8tXOs4lTiZiAnVVADPk UVvGGh64gpl351LY3qhOlVJSzrxlV454iM2v+YqhrEB7e45TGbH/gaQDol5Hf4RL80 8+Ry2+kAPqvMQ== Received: from alfajor (unknown [45.44.229.252]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id B3B001233C3; Thu, 6 Apr 2023 17:25:09 -0400 (EDT) From: Stefan Monnier To: emacs-orgmode@gnu.org Cc: 59882@debbugs.gnu.org Subject: Re: bug#59882: Multiple versions of Org in load-path problem In-Reply-To: <7e64ae5e-6fd7-ea41-dae5-c8abd9a3fefa@gmail.com> (Max Nikulin's message of "Thu, 6 Apr 2023 23:09:13 +0700") 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> <7e64ae5e-6fd7-ea41-dae5-c8abd9a3fefa@gmail.com> Date: Thu, 06 Apr 2023 17:25:08 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca 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, RCVD_IN_DNSWL_MED=-2.3, 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=1680816381; a=rsa-sha256; cv=none; b=Xoe9ggFi2J0O/cioDQIcDyISrppi+U4M+ceSAo2Ja9ZbP/c2tw6oJbdecw9e2ksC9Klymo GbU3rMYwI5tQuqHydZCEQVGxtmcnhxX8XuTfJrPxqRJPM0dH+RIY6S/LYK1nyHF8Q1F1XW K5gXI7lRjbmib3yoacVjf3gM7J3ktBDVpceaGuHU0iuht2xDX8MOtzG5VImnx70Mv7A/HX HhnEtcbhFlxKI6UcJrEIoaaOXPylE0Jg2glzW+7QDKe3KNLPXKIPc3kywj7G/tEUXcM2FX ASF96WkZ8xyNaMN13wGXZQLzTuMFJOQG3i5bDB1eUVv+LSGCZSR9bjl9PTpBhg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=iro.umontreal.ca header.s=mail header.b=PSumX3YO; dmarc=pass (policy=quarantine) header.from=iro.umontreal.ca; 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=1680816381; 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=9QvpnAaY8Bi9OOKtH4Wouc8sxmz9clmVvr8ecMsENCc=; b=F3/DNtre93mXNcNPsP5vXs+SgJR7NrlyckpOVdDbzBi/3VE4Xds2yB7ex+a07AcRyNfuVu CTybGkSaGhKU77OHofpg21scM3ycwpRSjhinhSbXeW57ceWBEzgJ6xABn00aTL42afKDia 2aypAg+Ab8zMhtP0UguKyOLdRaa1eHdCnnlV0ihxjHERE3QDlZ6JOfSWPZcTDfaKEoncI/ vUmDCY5Fe3qhow2FBWflNuTQr3jJ89mA6m70xjgrdlol/ItDyModTvAyJ49GzmpUcwJ5UZ aOq05vUQDtJNXbvJzGxs+l0gW7O5iPMmBruhfEZescxsWilplkCHphLN6h++hw== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=iro.umontreal.ca header.s=mail header.b=PSumX3YO; dmarc=pass (policy=quarantine) header.from=iro.umontreal.ca; 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: -9.89 X-Spam-Score: -9.89 X-Migadu-Queue-Id: E36898546 X-TUID: kikdCpBYWLO8 > I have noticed that neither `package--reload-previously-loaded` nor code > loading already compiled package unload the loaddefs file. E.g. I added The state of our unloading support is not good enough to use it blindly, indeed: it's too easy/common to have packages where `unload` leaves you with an Emacs that has serious problems (including being unusable). So, instead we limit ourselves to force-reloading files which tends to be much more harmless (tho in theory of course it's just as bad). It also tends to be sufficient. Stefan