From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tom Gillespie Newsgroups: gmane.emacs.bugs Subject: bug#59882: Multiple versions of Org in load-path problem Date: Tue, 18 Apr 2023 21:20:54 -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> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1566"; mail-complaints-to="usenet@ciao.gmane.io" 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 Wed Apr 19 06:22:21 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 1pozKm-0000F7-US for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 19 Apr 2023 06:22:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pozKW-0001FJ-Jr; Wed, 19 Apr 2023 00:22: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 1pozKV-0001FB-14 for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2023 00:22:03 -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 1pozKU-0000LF-Ox for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2023 00:22:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pozKU-0003UC-BE for bug-gnu-emacs@gnu.org; Wed, 19 Apr 2023 00:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Tom Gillespie Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 19 Apr 2023 04:22:02 +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.168187807613335 (code B ref 59882); Wed, 19 Apr 2023 04:22:02 +0000 Original-Received: (at 59882) by debbugs.gnu.org; 19 Apr 2023 04:21:16 +0000 Original-Received: from localhost ([127.0.0.1]:60847 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pozJk-0003T1-2i for submit@debbugs.gnu.org; Wed, 19 Apr 2023 00:21:16 -0400 Original-Received: from mail-yw1-f182.google.com ([209.85.128.182]:46801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pozJf-0003Sl-NC for 59882@debbugs.gnu.org; Wed, 19 Apr 2023 00:21:14 -0400 Original-Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-552ae3e2cbeso113163307b3.13 for <59882@debbugs.gnu.org>; Tue, 18 Apr 2023 21:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681878066; x=1684470066; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=cqjqHVNeszSOW8iuX/1aFsfhz9tYVjR4JCHNRDQyZ9A=; b=jtsFs5TNDKG/EWEmuMlubIegDOmvhLK+G770q6yb6Z5d//3yOBqykQCErWVmb6OGiH gHtvEYFGOpFjc9HjQEq4FRlwrgcxlmP39N3lZf00l7q/FwZf+9WBrn3xqMQQ32uS3T+g 5XVawUpelnIrRQAqfepkUfAsxTWAXDtGH0LUUrqd3I7Fw3TByx2fdNC2U2scdi5hBitc fb+74bGaDoB/vKgPp2DWPLo+6XuPG/eCV81rpJaVcmMEqAjwEuO9wCTAkZ2dZKDMAM5m M3QEqEBeMx7YdX7MDuOzZIMxdkpO40l4F7vny4t13mVvzKGGpDbriDA4QG+S1hQBwaR2 iVJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681878066; x=1684470066; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=cqjqHVNeszSOW8iuX/1aFsfhz9tYVjR4JCHNRDQyZ9A=; b=XzkkSY9n4lV6cqnX0fPn13hMKha9Rtrrelj7ltLHTUwxh5pKzHn2uUJnihGcJ/PCaU Gv4bqKmXdlMM0UFNx2D1+YBSLWAWtSLxtluW+/eKN6z4MrWgDqZhTtohbuEm5ugo+pqj zYnRW1U+SPcNNILa/s9KZxteqIJTK+G8De2xRT7vl799Iq3T/J4tG+ZULsbUAnKw6erT w1kTu1a34KhXMv8e30O3WbbQ6IO9w6ygjKf4A0R7kBFycb23PzgN+pY4grBBVJ7m+LXA DAWMrjzOooQ1xqwraMzBXImK3ySB4/TrnKAUfsr8UGar42GjruIRfU+xheN8FyYlqHd/ 78Cg== X-Gm-Message-State: AAQBX9fsEZ1vRUlzj4GNeJQdjVL9pJPSQGCeHSunbop1XnqyFz3tmdk1 NF9GAZN2GShZ+wOTD0/zsvLAcKehGQlEeogqJ+8= X-Google-Smtp-Source: AKy350YBGEWcI3npDtjh54wbI49OOk2WwPvyJXXu//QcjQdQONUXPt8dSGEKg//ijezSNsvzghU7LDFWbA1qM1FcWe0= X-Received: by 2002:a0d:db0e:0:b0:54f:a209:1a2a with SMTP id d14-20020a0ddb0e000000b0054fa2091a2amr2264794ywe.4.1681878065916; Tue, 18 Apr 2023 21:21:05 -0700 (PDT) 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:260258 Archived-At: > The state of our unloading support is not good enough to use it blindly I have managed to use unload-feature to reload a new version of org after the builtin version has been previously loaded, but the dance you have to do to avoid nasty errors (and segfaults if using native comp!) is about 100 lines of arcane footwork, and if any one step is off you will encounter one of the many hidden landmines. unload-feature cannot be used blindly, and there are a very large number of side effects along the path that are not controlled which makes any process that tries to use unload-feature brittle and hard to debug. https://github.com/tgbugs/orgstrap/blob/f35bccde556b0f82515e79ee69f4379469276356/ow.el#L1010-L1064 https://github.com/tgbugs/orgstrap/blob/f35bccde556b0f82515e79ee69f4379469276356/ow.el#L1073-L1177