From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 2BnaFWRx32RDKwAASxT56A (envelope-from ) for ; Fri, 18 Aug 2023 15:25:56 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:478a::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id QNCdFWRx32TRswAAauVa8A (envelope-from ) for ; Fri, 18 Aug 2023 15:25:56 +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 5FBE551BBC for ; Fri, 18 Aug 2023 15:25:55 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=iro.umontreal.ca header.s=mail header.b=QT+BRuAi; 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=quarantine) header.from=iro.umontreal.ca ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692365156; a=rsa-sha256; cv=none; b=bE2RO0zxRCMiRjuazXB5aSo1pwP7g5hsL9v5wTrT5xvI7FChua31jFTkI8iOzhRstYI+yU xid2G6jsFd3ZRgcvrt4aaMOPT2Acaijg1ZBCuUnjzln/dQax5eQ08C3UG1y45lqJ5s3CnE ORLVDbpON55BCbWRXJInpe1CDzlZbTWbfWLBExmHyo5qRktUuLDKRs0yTlo29Jn38RihXU y8+M0H59sgfMevlzLX4aDPFWx5NXkxNRLs2rZPUzHY++YjGKvPX+8CFvvB1W9gU9HAMRq0 eWLDcPeiukX8e8lrr5JWBh21s0uKAhRGPgN2QG5EqoM9ISRqUv+K+lLa9uG38A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=iro.umontreal.ca header.s=mail header.b=QT+BRuAi; 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=quarantine) header.from=iro.umontreal.ca ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692365156; 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=WFoC5MD8epjrDpreGKD2eEaUSoj7XlyHfM7OZ48gQEA=; b=Vfuxw+5u6ddGtNqIxN58U4H6UM7g81DncX0GGZOKD2aGL6AOYW+JY3hyNW7Tf9TJ0NRPLF jjmvB8juq2IQgHfFN7ZyEiRdnB8SXBvgV3g20EK6Tc8bbojDhSLmDBkeKtnZN2a3cAbPyb WbdfezTKpvcQESgmXez6w2OM8kO3Ifgzsdj8MKmtXcoLhfp54bYz3d5HoYuGbpzsaPaaZM HR2jwEYVfjbRhLVuU74pd1LcmZWkobcru+vKPrZISiuleW2cmaQqEMuRIi4Ko/21bxpTE/ yEpwOj6+7i/qbT/5yqTP0eUBVQY7+dgrmggqnKzZ0VBitz8Xb9E/z76iGLw86w== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWzTW-00027P-UH; Fri, 18 Aug 2023 09:25:14 -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 1qWzNy-0000jA-17 for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 09:19:30 -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 1qWzNv-0007lG-Jd; Fri, 18 Aug 2023 09:19:29 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 1365380762; Fri, 18 Aug 2023 09:19:25 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1692364763; bh=b1fCeP51vNC8UF6fMhNcs+LamfNBSH76UAJoyA3RFHU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=QT+BRuAiigpNCyxZ7EwuldWXv+gV2VtbYjkzaZ8OCsMaTGyWkSkoCtDrMxvEeqh24 g24SULD7qmr1FzaUaxcvdDuONeQj2/YiPtlgzqvBz4Xjy2wCT7zQEhPRlwEZl+IIdK oMdu8c0DM09xbLYyLgGq3pxC2q2TQnca649/hWc6jxaaXEHvrD29uHlBy+Ms65+Cex 8cvhEboomXlmJhoE1q8lewivTeQMjPUDNvRDWGlZOVw3UhgvJ+yPZVs/zDUORYPZlt xXxu9XZsE4BO3fQCTVN+ndGG0S3ZsEo5A8LrEzywHwq8Ph7/PDLHXW6apHfu7uLaF8 Se2KLf4jBnf3A== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id B777D8027D; Fri, 18 Aug 2023 09:19:23 -0400 (EDT) Received: from pastel (unknown [45.72.228.154]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 87502120167; Fri, 18 Aug 2023 09:19:23 -0400 (EDT) From: Stefan Monnier To: Ihor Radchenko Cc: Tom Gillespie , "emacs-orgmode@gnu.org" , Bastien Subject: Re: org-assert-version considered harmful In-Reply-To: <87zg2oofmt.fsf@localhost> (Ihor Radchenko's message of "Fri, 18 Aug 2023 09:37:30 +0000") Message-ID: References: <87r10ey8ov.fsf@localhost> <87o7v4dvon.fsf@gnu.org> <87pmfijrvw.fsf@localhost> <87y1u4ec18.fsf@gnu.org> <871qqnjjdw.fsf@localhost> <87zgd85vc9.fsf@localhost> <87359yl2w5.fsf@localhost> <877cz7jucs.fsf@localhost> <87h6oznt28.fsf@localhost> <87r0o3p3bv.fsf@localhost> <87zg2oofmt.fsf@localhost> Date: Fri, 18 Aug 2023 09:19:16 -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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx0.migadu.com X-Spam-Score: -10.13 X-Migadu-Queue-Id: 5FBE551BBC X-Migadu-Spam-Score: -10.13 X-TUID: jO0oH4rNgtlv >> For this one I can see the problem. You define: >> >> (defmacro org-require-with-shadowcheck (feature) >> [...] >> `(eval-and-compile ...)) >> >> so it will behave like a function, except that it's also >> executed during macroexpansion, so the (require 'org-element) within >> `org-set-modules` will be eagerly executed while loading `org.el` :-( >> >> You should define `org-require-with-shadowcheck` as a function (just >> like `require`). > > But then it will not run during byte-compilation. Yeah, I was assuming that you had replaced all `require`s with `org-require-with-shadowcheck`, but that's probably not what you'd done. Not knowing what you had done (beside define `org-require-with-shadowcheck`), it's hard to reproduce/investigate, tho. Stefan