From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WP47HWRckmP2VAAAbAwnHQ (envelope-from ) for ; Thu, 08 Dec 2022 22:51:32 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AA01HWRckmOAkQAA9RJhRA (envelope-from ) for ; Thu, 08 Dec 2022 22:51:32 +0100 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 149DC3328E for ; Thu, 8 Dec 2022 22:51:31 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p3Omq-0000t6-Hs; Thu, 08 Dec 2022 16:50:36 -0500 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 1p3Omo-0000se-LP for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 16:50:34 -0500 Received: from us-smtp-delivery-170.mimecast.com ([170.10.133.170]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p3Omn-0005Oh-3Q for emacs-orgmode@gnu.org; Thu, 08 Dec 2022 16:50:34 -0500 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04lp2042.outbound.protection.outlook.com [104.47.73.42]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-434-Wc3G-UjOPsezHoc_92NgPQ-1; Thu, 08 Dec 2022 16:50:30 -0500 X-MC-Unique: Wc3G-UjOPsezHoc_92NgPQ-1 Received: from DS7PR20MB4671.namprd20.prod.outlook.com (2603:10b6:8:79::16) by PH7PR20MB5258.namprd20.prod.outlook.com (2603:10b6:510:1b4::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.13; Thu, 8 Dec 2022 21:50:26 +0000 Received: from DS7PR20MB4671.namprd20.prod.outlook.com ([fe80::a2ca:ae14:c459:fc31]) by DS7PR20MB4671.namprd20.prod.outlook.com ([fe80::a2ca:ae14:c459:fc31%4]) with mapi id 15.20.5880.016; Thu, 8 Dec 2022 21:50:26 +0000 From: "Cook, Malcolm" To: David Masterson , Ihor Radchenko CC: "emacs-orgmode@gnu.org" Subject: RE: Multiple versions of Org in load-path problem Thread-Topic: Multiple versions of Org in load-path problem Thread-Index: AQHZCR5eZDy5J6kF+UuTmomTbhGr6K5ibgoAgADrUJ6AAD7mboAAAlGAgAC5oRiAADVFsA== Date: Thu, 8 Dec 2022 21:50:26 +0000 Message-ID: References: <87tu27jq7h.fsf@localhost> <87k032nyok.fsf@localhost> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: DS7PR20MB4671:EE_|PH7PR20MB5258:EE_ x-ms-office365-filtering-correlation-id: de3f508b-f25e-4fa6-0b00-08dad9663736 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0 x-microsoft-antispam-message-info: jNSq75922SS+CG7nAZUTE5k0dxga1ItvLd0lGAFDdsfcefCYSNACzt1YPRjAW5HInewCgCQ5KjdwlaLE9tXyOT1ioYZ7K6c9Igl581Z+SlJtSNXN/dlLivRqBtTVFBNtA97C4XGpMwiojlZljIO8cnaWCvKyckw5cM0e8w30sOprkEQdCSbkfXCuaNHBVtxjJg1koq4bkoeOv0KTHVv3hEjMmfu9KHTY+IViyph5EVoTiPXvI7AXUSjmb9q7YdlJZIHu3i0VWpniZQxLgjyRaVsQ1x5mdE8anpoCujDYJygBtgrxel+zleTI/xG5RnHXzBZQL5LuV+G7UOyC/q1s0kiZgj5NHOcpWx0RmIftvujvqPfqYLR4w/whXDpijWwoNlRpNTD7hFLjUcD4Fr3BeVsv9mx9onpTyrCokqzxISSZ0hbE0zCIqZ+yL6CPyeLAHrLf4gjiAV2ImcKw0pzYEnd/LEqA+XHe8hf/+HefA7o9W1FUsbN05hyeb74w+2jJg7SkCrZU3NVsjEDkNX3hHBLgNVe+7gnbzsyvybRqV7tYi1JyPLEToO05OH5CInv1H16HyENaYDWjL89+DDUeg5zNE+6EZTY4G/d5lbT4TFLIeJD/7h8qsdgGOl4ZhWigNL8EOppjdkFDEgYAugbcTlhwRHjiTMjaZOnU35ij1F+7kmLTVOCKOMiXd2wRy6GoXtaiOGC3avgXeaMAYrIUXoYCE02QKny+k/8emygPseo= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DS7PR20MB4671.namprd20.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(39850400004)(136003)(396003)(346002)(376002)(366004)(451199015)(71200400001)(966005)(6506007)(9686003)(26005)(478600001)(7696005)(83380400001)(110136005)(5660300002)(786003)(316002)(38070700005)(33656002)(2906002)(55016003)(66446008)(66476007)(76116006)(64756008)(66556008)(66946007)(186003)(8676002)(4326008)(52536014)(8936002)(86362001)(122000001)(41300700001)(38100700002); DIR:OUT; SFP:1101 x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?5I9XqtEsIR5EjWhTg+d5llJNUOeFnYwVF7O2n29uCqg0U/jzJAb+oOzAiBSv?= =?us-ascii?Q?/djkK3QFYTLNZLr4HngoHZTJ1Pz9/eoPEOR0VlHHN2GSm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tRau/HLUTP+QRGGR2RX//OY3Iie6HGvt1N7atGEPRmEC?= =?us-ascii?Q?JLchR4uzFemf7FUfWoC2bP4kn6YhfbJgtXb6iKmWdHfULkpCHQpNbKrZa06x?= =?us-ascii?Q?5w9ITag5POrFUwIjFRfNHGhB1DoBYQIJdoBND82kAsOdio/3ElQ9+lETNyrl?= =?us-ascii?Q?mFFcoG1/wkHYUkPDvdYogBVIqjrmacVHts73DXPcC9lw8UmE+KcTVDDZqEwq?= =?us-ascii?Q?UJX2TGusveYtWV4VBgDKAwqtvSAJGCehL+AtEugii/QoF/AZOHwplyPrl1Ly?= =?us-ascii?Q?myY9+AaarhhIRWajyEDvFfLa1k/3Wz7nyycMNiOFhX5zdCuzfpP2UxpRiE+W?= =?us-ascii?Q?gC/EjPptFELFDXStErvvwmmKkCdbTCRRkY5fxtHWLBJKhj1PB1shw8ZUWG79?= =?us-ascii?Q?7ggELFvr3ZXem2QEQFD6gU974nfcR1/wH7ms/ski+0Ic2mlIXsv1J2OShdP6?= =?us-ascii?Q?ElI0LiJSpSHhKy+WHF8q7eewvmtpBy6Z8QwhcJrmMK4A234eCkprqFmMzR6a?= =?us-ascii?Q?J3a1YeYBkDmaxupus3hh6v8PgreZZ/rwsLdOIjHlvunUG2b1dmEwxfS8eaOE?= =?us-ascii?Q?VhB7DDGtoIZRvtjh5VA=3D?= MIME-Version: 1.0 X-OriginatorOrg: stowers.org X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DS7PR20MB4671.namprd20.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: de3f508b-f25e-4fa6-0b00-08dad9663736 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Dec 2022 21:50:26.1276 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3ab7a17c-a0ab-4280-b9f3-bb144eebee49 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: mDiHEHWl8hsS/XwO7sWjI8P+OGbtPr4EhKupbTdHcGxopQRHX+Jc4HAnV+p6Glkl X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR20MB5258 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: stowers.org Content-Language: en-US Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=170.10.133.170; envelope-from=mec@stowers.org; helo=us-smtp-delivery-170.mimecast.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, PDS_BAD_THREAD_QP_64=0.999, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670536292; 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; bh=ehEEsfvunR3oTIk7Bu+xdB7/vcuceBkmz47S2f+t9tc=; b=aUDVFMFXVwSndfESTzsSHcfGVEN9g8x8T0/gQhSc3UP2GWVKoZ7RS4/LnO3DCUULUMXM1S mEXZ4hQp+xyAcCwkhEjXzP8j8wx+jBwdvGIZGqwzDld20OqGnJ/08WlboT9FtSz5d66Klf 54Oef+xUv9KBxKPcKsn4TLnddzFjUbH6xE0FrQCAEjXiYWr9GB9zVl9FasDaSLcTDfWlvQ 5kbGCG3S6FCmSllRaywSt9J7qEtdKp8CiZCceBaYOnoZIFuqFalA7qE2KLJN2YL9pH1V0U J1LFPmaI4ujU9PfDQ+5i2NAggpgTV4FNmpnYytIEINaR0TSOICk06YvaznJKQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670536292; a=rsa-sha256; cv=none; b=HIUWiAe+/kSbDyY/sHvb8qy406t+nmVeJv9HCinwRSqPvmWbRFhetyD5GDx13pUeQkOVV2 FTwXnQy9HzOPiWijT0YhAyTzIsXkpVMkzaWGvCv0ssRFo/0X7nC4aaWRTlBufw4V1wXNQ2 elze3LESnEfWaj2MwqGdrQo4n4lF8xXBBF/fkQ6+eor/nFHZspwzis9d9zggIcQ+5eTqpY TZ8Ply9k+wat8Qbqgw9u5lSy/NDLfr/K/XDePMGWKa0nix/n4IPI94B9WVe/BZBtMpxEfy uqmhRWngLOdZoRCmmoCdiUyayxhe/WG3L5QDYwNNAXr8JG8sKYT3vqslyBIqXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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-Spam-Score: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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-Queue-Id: 149DC3328E X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: JxpSojxT98pY >Ihor Radchenko writes: > >> David Masterson writes: >> >>> I went so far as to add the following to early-init.el: >>> >>> (if (featurep 'org) (unload-feature 'org)) >>> (add-to-list 'load-path (expand-file-name "~/.emacs.d/elpa/org-9.6") >>> (load-library "org") >>> >>> The load-library still fails with the org-assert-version error. >> >> Indeed. It is to be expected. M-x package-install should not err here >> though. In theory. > >My testing says that, in early-init.el, Org is not yet a feature, so the >built-in Org-9.3 is not yet loaded and the first 'if' fails. Adding the >path for Org-9.6 should put it at the front of the load-path and >(hopefully) override Org-9.3 if it is in the load-path (I think I >checked that). The error in the load-library is, therefore, a problem >with Org-9.6 installed by package-install.=20 > >> I suggest you to read `org-assert-version'. It aims to catch the >> situation above and similar. > >This is chicken and egg problem. I can't use 'org-assert-version' >unless I can get Org to load. > >> Note, however, that installation problem is different. Or rather it >> should be different. >> >>> Could it be that, when you package-install Org-9.6, it runs through a >>> check where (I think) it compiles the package? I get a lot of warnings >>> and 34(?) failed files. Could it be that some of the files are not >>> built and, so, when I load-library, I'm picking up some of the wrong >>> files from the built-in Org-9.3? Do we need to remove all versions of >>> Org that is not the current version from the load-path at the very >>> beginning of org.el to ensure no fall-through? Kind of a hack, but... Hi, I've been reading along as I've been similarly hounded in years past with o= rg version changes. It really sounds like you compiled org-9.6 with Org-9.3 already loaded. I'd recommend reinstalling. Here is one way to do it that is pretty safe: =09> emacs -Q -batch -eval "(progn (require 'package) (package-initialize) = (package-refresh-contents) (package-install 'org))" If after doing this, and running emacs, you find M-x org-version does not r= eturn 9.6, or you find the package assert problem, I'd try the more paranoi= d: =09> emacs -Q -batch -eval "(progn (require 'cl-seq) (delete (car (cl-membe= r "lisp/org" load-path :test #'string-match)) load-path) (require 'package= ) (package-initialize) (package-refresh-contents) (package-install 'org))" And possibly consider adding to your init.el at the very top: =09(require 'cl-seq) (delete (car (cl-member "lisp/org" load-path :test #'= string-match)) load-path) YMMV, ~ Malcolm >> >> Maybe. It should not. That's why I raised >> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D59882 >> I'd like to see if Emacs devs have anything to say here. > >Good. I'm not used to bug reporting in Emacs, so I raised a question on >use-package in mailto:emacs-devel@gnu.org, but they pointed me at your bug= . >I'll see if I can add anything there. > >--=20 >David Masterson >