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 IFqqDXVsP2QZAAAASxT56A (envelope-from ) for ; Wed, 19 Apr 2023 06:22:13 +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 CPSRDXVsP2S6wQAAauVa8A (envelope-from ) for ; Wed, 19 Apr 2023 06:22:13 +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 D5EA33E9FA for ; Wed, 19 Apr 2023 06:22:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pozJg-0000mQ-Pk; Wed, 19 Apr 2023 00:21:12 -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 1pozJe-0000mC-SK for emacs-orgmode@gnu.org; Wed, 19 Apr 2023 00:21:10 -0400 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pozJb-0000GC-Jb for emacs-orgmode@gnu.org; Wed, 19 Apr 2023 00:21:10 -0400 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-54fe82d8bf5so171342097b3.3 for ; Tue, 18 Apr 2023 21:21:06 -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=NxDpfkqNmnWJOC8Fgv6vz+08zk8fBFlDfFS1V/GxRv7quGCRpvSzioZXBDj0DEZAw4 dBTCrgNRDcy7BuvHhf7ADVee6c5CdrOW3hUTut30fN1RfWDva+Xkq5agSTpCx86eo299 bd9zgDfKiv+8uOXQ8AV5L42kSX3jdLwR51SmjzaK7/3bYr8zVBHT6XvZ3xQdiRL1WzQf oOTjWILYcdjiNnCbdughbD7QEzaaYY82lb2DByFM2c9gxalpjVWTGmp8crrMw0NnAHsn 6djr1bPO/eibK1b2eHEP8fDELq/KA5+u0/Q/pWbk3VGLEzIZ09PGWvAk0V5uEjdIR5Mt x1ZA== X-Gm-Message-State: AAQBX9fr9KE6iylX2XC7t+Q3hC7wkbJtQkA4cE1dMMoDIVAgASprxQ9b msyPycczUXBBs4QkRGDV/Vm/1hIFkG6FjXVX9EAbOKQMcGc= 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) MIME-Version: 1.0 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> In-Reply-To: From: Tom Gillespie Date: Tue, 18 Apr 2023 21:20:54 -0700 Message-ID: Subject: Re: bug#59882: Multiple versions of Org in load-path problem To: Stefan Monnier Cc: emacs-orgmode@gnu.org, 59882@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::1133; envelope-from=tgbugs@gmail.com; helo=mail-yw1-x1133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=jtsFs5TN; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1681878133; a=rsa-sha256; cv=none; b=udo6yVvl3t5V5Iv5ENIYq8i0PTcmIlbgFYFu9X96bg83ufaaFCa6rxRsPepcA4/MVQ8O39 Wvu424BtwrSadEdETDiYuhzy/G+akmIvQ+DLS77Ah8iAs5P45CfD6lp1+ttUFcyymbGMey gAW286zFIMCsvMtdg4tY8ZYh4WNyYym2WnDcX633eJBJyXIzHFdeijWfjRYyR0Yh2QIjAb Wv6XAg+9Jk+WMGmWP7dsugU1Ocea//fCeWkeg0iSYYCox1m5BHiTrC3EszmCTgVOlFhMGL n4wu2NeSAMS7kFvji2yjfICdymMFT3PVFUpX6tUPFisT9unJmSD+Ck7Ub5H5Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1681878133; 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=cqjqHVNeszSOW8iuX/1aFsfhz9tYVjR4JCHNRDQyZ9A=; b=Dbh/1SvXRkGUKwjv54yZIZrZEAJM2lYZqrRJEz2T6PcQIaeuvta7c1lyvS+GNtfZ3wIOTg WbUYNGEcDMed+KFOTeEISDThytjX2+8EeEeFo4ZFv/ozDuG/0+VWIr1044r3R+LH9J13ag 9XRsH5P9jhKi8JB0N0SfCxcYQNCuuFXbQTVV1wuFIYfJYBD8I7CFg8eedKj1XR+Pdqpx/i m+zYKMiTkO0B6hNdfGMaUUIU2lSbn8QdC8KmqIfWpSlzwQ3oxQovKMXuyeuNT3IMBDuj5i V4gAOPLDEpWI5hYI+QtLz8XBOZVyDelOSPtdcmgbjsGK3Y3UYh11DwTE+mMLrw== X-Migadu-Spam-Score: -10.04 X-Spam-Score: -10.04 X-Migadu-Queue-Id: D5EA33E9FA X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20221208 header.b=jtsFs5TN; 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"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: 6jUGmlncK1W5 > 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