From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UPjiBvg732SHgAAASxT56A (envelope-from ) for ; Fri, 18 Aug 2023 11:38:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8NPBBvg732SGUwEAauVa8A (envelope-from ) for ; Fri, 18 Aug 2023 11:38:00 +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 B3C644CABB for ; Fri, 18 Aug 2023 11:37:59 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="f/iFmHos"; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692351480; 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:dkim-signature; bh=VZBzpTwloXWB90G3qzptbmzdu1flQ+NJsVALCGOxuJI=; b=aoJERgPtT/GuhJbEwfCjO+zn6uxSDyQerQjKFzzFzdYkmU95j0ODuoULj5CRulljntgbuk 0wxIPzrDFZoQORKxlIyKchLqpRQ2Juiux13YaOdTrh/TVr05hfcGJ6ArpyxoYwT5N0UFtJ OXiQ9ufx5/HuXoqO2ACS7o130C0SATDsDoXEGddB43mM+jzbw1woU0dcj6Kp0/VjeevuBZ W9dh442Qm5gge1PYGNEWsv5NAsWU/14rJka+hT2EHZsxhNDBJ+B57kli1YkhlPxZkVCeCB 8fGz7v8Ci3cM9yW39/930AnH3TkplJii8vH7qU3tnb/fTBUV4oWwumhcCKAg3w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="f/iFmHos"; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692351480; a=rsa-sha256; cv=none; b=MPaqi9Lj9IPn+VVM38PmTKfmMY5fXtlLZ9Ki0GOAtEiMQDuOIsQxA45WnOk36YjJJOFms1 LGSlN3YT8dQZ4hsJFSrVsNDzbsie9sBs3vFof2hkBzJAWTzASL0w6+enuqhmGu4qqvdIpU YDxO98WR7hVjilDw3laLgDz+QgIxhZQqvbwuNnjvFSMTnD0wTQ4ydpiduXheXUfdfdSJ76 6vE8LoVoGanhSlIkJ6DK1VlGp4B/Pzn36Yr4BrXeaSvlM5E6yaj//eVFOJzCJQzmuehb/K RggX3+71KHuGEwwSv47vqbqoLK2oi8B30LUadhbQIMAcBHttL4Okqe2IneFIYw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWvuo-00008F-3U; Fri, 18 Aug 2023 05:37:10 -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 1qWvum-00007f-IM for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 05:37:08 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qWvuj-0001s9-P1 for emacs-orgmode@gnu.org; Fri, 18 Aug 2023 05:37:08 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 9E6FE240103 for ; Fri, 18 Aug 2023 11:37:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692351422; bh=RVQf1C4sYoe/OWueZLKiW29CJ3eRqDO4euC0tAwbudY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=f/iFmHosLCl2FKk/7ivrtAuD5kKeQJTW8FxHFAQzGKOTjNR4mn/9KpKdWTqTsWpT3 Aro3ALeqIdbzyfFAizS+g6Jw82AOw3K0EAejca9+nyJEbZdH7IpTVHonopYbVuV8Z4 2pEQXqhdxjLGm++8MDBuVOBI151rpxT+diNB7+ltIKA6VpAQs6AnuLtmPEUZ4ig0Hx g+MRi/Y6RDy6mxZpCeKu1WkHCYAsnYhyN1vRia4zAtzWHN9V2w0AI9dFaYrpOmyOtZ VCYwrxOmhcpTqdi9/IXh9FI2QZyDMKuGX/ueugupDBAzaev31lhZ6ACmwqEcDcU3B7 +GtDp3fT8DvXA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RRxbd6Trcz6tvx; Fri, 18 Aug 2023 11:37:01 +0200 (CEST) From: Ihor Radchenko To: Stefan Monnier Cc: Tom Gillespie , "emacs-orgmode@gnu.org" , Bastien Subject: Re: org-assert-version considered harmful In-Reply-To: References: <87tu5bbajh.fsf@localhost> <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> Date: Fri, 18 Aug 2023 09:37:30 +0000 Message-ID: <87zg2oofmt.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, 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-Spam-Score: -6.75 X-Spam-Score: -6.75 X-Migadu-Queue-Id: B3C644CABB X-Migadu-Scanner: mx1.migadu.com X-TUID: xQ3X1zMtBI1F Stefan Monnier writes: >> My attempt to use shadowcheck idea you proposed failed with some very >> strange errors and I gave up. >> See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62762#311 > > 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. And compilation will yield [...] org-datetree.el:278:14: Warning: the function =E2=80=98org-cut-subtree=E2= =80=99 is not known to be defined. org-datetree.el:264:22: Warning: the function =E2=80=98org-up-heading-safe= =E2=80=99 is not known to be defined. org-datetree.el:263:35: Warning: the function =E2=80=98org-back-to-heading= =E2=80=99 is not known to be defined. org-datetree.el:257:37: Warning: the function =E2=80=98org-time-string-to-t= ime=E2=80=99 is not known to be defined. org-datetree.el:237:6: Warning: the function =E2=80=98org-paste-subtree=E2= =80=99 is not known to be defined. [...] and no single macro from other library will be expanded. --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at