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 aEmaNi29jmOZYQAAbAwnHQ (envelope-from ) for ; Tue, 06 Dec 2022 04:55:25 +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 AOizNi29jmNaFwAA9RJhRA (envelope-from ) for ; Tue, 06 Dec 2022 04:55:25 +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 68E4E39911 for ; Tue, 6 Dec 2022 04:55:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2P2Q-0007sx-EG; Mon, 05 Dec 2022 22:54:34 -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 1p2P2P-0007sp-7m for emacs-orgmode@gnu.org; Mon, 05 Dec 2022 22:54:33 -0500 Received: from mail-bn8nam11olkn2010.outbound.protection.outlook.com ([40.92.20.10] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2P2N-0002jg-5P; Mon, 05 Dec 2022 22:54:32 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KIUE3GLBZhI1OdXQ7etn90bJEnTObXpqde2YEiWllIg3h6eqdiMuHjsjkQHkRjbTuS1CQ6RMyDeSehj/4TnKXoxN1oZwlHKMA0qsMYFSiuvTONImKXG9z24Ivh1lB1//gAnoETsfwDpM5b8kwKUigJPsj/KnGKXTb6rKueEvYbaxeDM8g9ZMDTcN1NNQEjufrYsYI+h8G7V1H4nmt31Kj4sJG1vJSo7F3rjdOFnt7+bPdqiRfwv6NekwZMmtIv0KGTDIGiUw44DepH1un5GWDbAhDM7tD4LjFUuoVkLw5ikTTVkg4wKXlC7R+SYzDqly9nw2YD9ngAwdgZFOaeZcxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FVY7K6gM50nT38euMAekYWyHRgsKvgmOmxMw2XPW4ko=; b=ewMd8dKMHs2hDUJABDoSWlSo+yjttzV/tLgt6gREQvfxwPiF1jfFBoKNKMQIjORRXVh3QvLdrkZZVPKF9wqBAuE/7K+KV6/NECygdW3WK9ze+gm1RWymhw+F4eetYvFS0KCGUZa50yQ770CTBF9X+cB7WyPP3psI8HlNN5m+urQfElzeFvpx9fWoj5RW268qUs6l8VC3hKJdVcRlhvHHha8RD6Ogb3RZ2t3PlFTmWQpriWD9uDkoDB9ISrS3WIwg9AQwmnTvEYVSLRAVnzi9JfRvKzM2F5rmbc3m7t0cg9nw4jUuh3H/mBnPU2nkIXWpyur09nyeWExRm5Iwh3Uq2w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FVY7K6gM50nT38euMAekYWyHRgsKvgmOmxMw2XPW4ko=; b=nZp6jR9W8L36TBwZafm5GtRHhZsQ3GYaMa5qz7oJzPZK933ZxCKQhgpnbcea9QSzCf7bzNjhdx9WZcZERLwpzULEwLpLlE//gmkuaV5nH2QAqM1IazNe1hhcUdjalx4IpIxtgUvWSDXGBMKUmLpY3QAdtcaJnue7t5ScG/rZ+PbKl/TgttM/zv4FxINfU/q7XKGJKm4TbCeTgqqksufGIr2nkuAmAcsgRI4h+Q5bvuWtiCMa7zE4/0RyTFS1i44S3OqxaWmLxGWSf24mDmnPg/4XBedjBZuWJpidPbak55j8Tcs4sZA6dGVYsX9JjSDLsBzMg8ohEtnIobkmza59WA== Received: from SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) by CH2PR03MB5205.namprd03.prod.outlook.com (2603:10b6:610:9b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Tue, 6 Dec 2022 03:54:29 +0000 Received: from SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::e016:84f7:daad:916e]) by SJ0PR03MB5455.namprd03.prod.outlook.com ([fe80::e016:84f7:daad:916e%3]) with mapi id 15.20.5880.014; Tue, 6 Dec 2022 03:54:28 +0000 From: David Masterson To: Kyle Meyer Cc: Bastien , emacs-orgmode@gnu.org Subject: Re: [PATCH] Autoload `org-assert-version' and remove org-loaddefs.el References: <874juewk4k.fsf@kyleam.com> <87r0xi5jx7.fsf@gnu.org> <87k039glwb.fsf@kyleam.com> Date: Mon, 05 Dec 2022 19:54:25 -0800 In-Reply-To: <87k039glwb.fsf@kyleam.com> (Kyle Meyer's message of "Fri, 02 Dec 2022 23:18:44 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Content-Type: text/plain X-TMN: [RyUALjuhgnfEQZT/DK8KSk8wuPY8mVsugw0BujF85x4oAv0G7730VIwUC2rBpK7r] X-ClientProxiedBy: BY5PR17CA0004.namprd17.prod.outlook.com (2603:10b6:a03:1b8::17) To SJ0PR03MB5455.namprd03.prod.outlook.com (2603:10b6:a03:27b::11) X-Microsoft-Original-Message-ID: <871qpdp4pa.fsf@penguin> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 2 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR03MB5455:EE_|CH2PR03MB5205:EE_ X-MS-Office365-Filtering-Correlation-Id: 97c91a44-a1ca-4ab3-00e9-08dad73d929e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: r3uT7GFVN+8+N0h9ZNbp5kzP4Y1HX3S/mnHRxADKqL38eLnm/dKEdyfBfNj0Ap6Hp65e7Ufm7mUp1SgswsB2Ni0RqOiPN7mBqi01RZO1jaWdxfwytAkrefz6+rugjf4SyiJuKSlpAuxp4P/ElaHWuRBoXMLiceROUOh1rmZo3Xk75OfJ0I/GhtdgILTZrBKTfLneaN2SlGGL15GTmCw7yNsRFYqeUNF7AUutp8mOBK2WjxIYmfpLlz0FUav02QR9zSAtIvVxUUrmq8wkK373bEICWjFP4OWGuYMAxqOejsOYTlEFyyd9Ci0Na7/UsEVUTcsjiq2UTd6rJECgE62f3iI4Aob54+Cvy91BrG+nD5n68OTF03hJn3ks7KeJB9+Tn6BIr7oAzyNb/fOjIKjzT/9cli+BX123d1+vpc7UJzs5SECBbUYnsxLvSmpskOGZ49BXoy910ioMZvfhLrOqPM6Oz8eZoFGSKtOSrI6pC8rXAHIK4wpfo06r9WRLGzhSJVqbSsQ74l9gEmtMm99sojX6vMBWRUc5fBgY9fA1PqiGbLXXfzXAK3/VcwaaeQgoaagEr57tBvh/12BiLJsrosk7zr4EZFZJ5nPScxfReHb+gtm49Brz5UNIQR4JIbFoSR9sQIrJyaMF5HY/qxYlbg== X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?lK1wUrscdjBFVTauiYfnF31wpFw4llwp/wvocSsM2vma2Z7epH90mHNbaYVq?= =?us-ascii?Q?h/ZlZMOwTM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7CQ3Vp2y2HUaEhsQpJSy?= =?us-ascii?Q?w4ANlKqV7hSPst0i/4qd9o2TiHKHOYL8nSG1MNkJNsLvR0nbHbR4K8QVn3ow?= =?us-ascii?Q?T1hMKuohHhY1yH7w1oug9XH5e0u/f9CLNmfuXFLBqbE+hPwcjc7nogdJdj7S?= =?us-ascii?Q?0dqaSDLDIJEViFzrkMTcdf/HuN2U2h+vHqpHQ9EiVA+KJ6RXL9q1Bc6vJ3Kt?= =?us-ascii?Q?OAi1yUKFlWN6cfChQVR1hSTmcSI+hx7+OwN9i/W3IpVbbD1fam0yZal8RM6w?= =?us-ascii?Q?f6nXEtihwX9IAAA/4XjzY7ReKBHy4J+TqijsJo2gA2ewGBpOEpNfkyzyRzcn?= =?us-ascii?Q?QUrwWsqWK2UuwRGmDNJkJ0M+TFn4fN8ZgkQluc4yP+uLkr1QAQ82GvUhHV+F?= =?us-ascii?Q?3IzkHROq6lmxN4lMSi8Zlo9GCn2FtZvc0Tw6okgfpWWnr6cG9JlNO6Vhvisn?= =?us-ascii?Q?tyD2Vhc0cYg7ENvzvxH58eSUKuZA?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 97c91a44-a1ca-4ab3-00e9-08dad73d929e X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB5455.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2022 03:54:28.4129 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR03MB5205 Received-SPF: pass client-ip=40.92.20.10; envelope-from=outlook_98C99531806B1C22@outlook.com; helo=NAM11-BN8-obe.outbound.protection.outlook.com X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FORGED_GMAIL_RCVD=1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FORGED_FROMDOMAIN=0.169, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670298925; 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=FVY7K6gM50nT38euMAekYWyHRgsKvgmOmxMw2XPW4ko=; b=MS8XZJz6wvNv59Eu30Zymc1l0h3FP+6ez5Wj3YE6I+ZClwccNdD/H9xjzmxsOOLw1rtg5h m2+6fE54wUBti0HMwQRKegmmR8irXLRL/BfCyqJKW3Uicic423gYBZyx7hDPVIrXWcU7ft de2nAoz9guoS/zPXOBAq15ow7UuB9PNipb8ZCXlxtH45uNrhALGH1Rg2rdmAPZukC+gfeR IUBMEZgm2IzlGKZ/TNcOYK1YnQLtrGzs9SDNgbw+052lhbPAg6CiqhKGXv1kmJ/qycnjFR oGm7w2QyBuZkJHszO4FYx8QC0h0S0IVucLQzQhS/qwCBIGq4uo02HwB9WFMw6g== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1670298925; a=rsa-sha256; cv=pass; b=OTTiwEDmq2mgswxKYKjHD8fLbIgIur1zJA+mROsFdHZkc7enlPn8nUoYQlqUMavdOSyBkn PidKn9nEzEfyjVGbvvQWkpQxBHZ4eWZq9RMaPJYfHhEZyUgwVK2+GbslEIpgGwz866ma0M tPNRnano+cwpiTieLVwd3CDHUXp10pUCtihk1Od7lbY6xGUEdM/7RqDKKolQnqN6zTtkFx ZqftV3XBJv8MLZ333OzvmlWq/WiA3ldEXYXsI6VuD1D+GafeiLimU+jH4MmS1fiUrcrY2i +OLYRMPE8YyJO7wNbVOUihDPQgjhZEN9Cg/XLazeHGQNIzafUEBYqcvC7yYlvg== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=nZp6jR9W; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM 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-Spam-Score: 0.54 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=nZp6jR9W; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=fail reason="SPF not aligned (relaxed), DKIM 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-Queue-Id: 68E4E39911 X-Spam-Score: 0.54 X-Migadu-Scanner: scn0.migadu.com X-TUID: USFijschV8ZU Kyle Meyer writes: > Bastien writes: > >> Kyle Meyer writes: > [...] > >>> Every spot that calls org-assert-version is preceded by a line that >>> requires org-macs, so isn't this error likely due to a mixed >>> installation/load-path issue where the wrong/older org-macs is taking >>> precedence? >> >> Yes: I thought `org-assert-version' job was to help catching mixed >> installations, so my reasoning was that, even when an old org-macs >> version has been loaded, autoloading `org-assert-version' would help >> report about mixed installation. > > I see. So your goal isn't to resolve any errors due to mixed > installation but instead to get the more informative error message from > org-assert-version? > > I don't think autoloading will help because it will look in the > org-macs file at the front of the load-path, and, in the bad case, that > does not have the org-assert-version definition. Question: which end of load-path is "front" if you look at load-path via describe-variable? It's been far too long since my days of Elisp hacking. Another typical use case is Org bundled with Emacs and you want to install a later version of Org via package-install. >> That said, do you have any idea how to fix the bug people encounter >> when installing Org from ELPA and being bitten by "invalid-function >> org-assert-version"? > > Sorry, I don't. Given a mixed installation where the org-macs at the > front of load-path does _not_ have org-assert-version, I don't see a way > to catch that. Not helpful at the moment, but I suppose the situation > improves with time as Org versions that do not have org-assert-version > become less abundant. Is Org the only thing that will call 'org-assert-version'? Then assume that a pre-built version of Emacs/Org is self-consistent. Then (perhaps?) patch an early spot in Org-9.6 to do: (if (and (featurep 'org) (< org-version 9.6)) (unload-feature 'org)) -- David Masterson