From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MN67EsB8kGNtCAEAbAwnHQ (envelope-from ) for ; Wed, 07 Dec 2022 12:45:04 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 6N6oEsB8kGNdbgEAauVa8A (envelope-from ) for ; Wed, 07 Dec 2022 12:45:04 +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 027952AFDD for ; Wed, 7 Dec 2022 12:45:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p2sqG-0006VM-9P; Wed, 07 Dec 2022 06:44:00 -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 1p2sqC-0006VE-Ru for emacs-orgmode@gnu.org; Wed, 07 Dec 2022 06:43:56 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p2sqA-0007dL-HX for emacs-orgmode@gnu.org; Wed, 07 Dec 2022 06:43:56 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id C066B240028 for ; Wed, 7 Dec 2022 12:43:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1670413432; bh=k2EV1bO17cCvQaX4SA8vLPWSwj3ym+S2VoVYflj4go0=; h=From:To:Cc:Subject:Date:From; b=qtANO85UC0kQxXwW0/sSy8O/ieJdDASznM6Semul4GKCHthMdJZGxnB2qefFEQk+o U4TkuvUSNCe2j4g+Z9chxpgAdKx2jPq12Cjin0/TCzDcLzoFI1Kiop3KJyDZEQqqsj XEXDXjSOpMByHq8B3mpwoaz2/N9D7gTtKznbXJeIp0drl89DE7ENKvsNRPfBGybQ40 o1G1Kq1HoQ45s7MrcYlRqLN4p5VwWnVPPjPOAP/p9XeTmPXP2IwPtCIBWqdjY4Wcax 2wj9E/BGXPfiL1iD8Lo2GuX0VJKK22RspbWETi6MXxrjI2B2wi3HoeTLlBg3rIy7E9 RNlu6dO4k0RZA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4NRwRC5DBCz9rxR; Wed, 7 Dec 2022 12:43:51 +0100 (CET) From: Ihor Radchenko To: Bastien Cc: Kyle Meyer , emacs-orgmode@gnu.org Subject: Re: [PATCH] Autoload `org-assert-version' and remove org-loaddefs.el In-Reply-To: <87r0xi5jx7.fsf@gnu.org> References: <874juewk4k.fsf@kyleam.com> <87r0xi5jx7.fsf@gnu.org> Date: Wed, 07 Dec 2022 11:43:47 +0000 Message-ID: <87k033h218.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670413504; 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=wc0PKEy86YHSNn80K9CKuKCPLrpZea5INVz6IczaEGU=; b=Y5b52OTq6ICd0cQq+bH8m7af5cZHokwvT2jdRNfMSXhQ57faeDf8vVPtunWo2rTAuDyVpV WC+/i5glb7R5GLtkARewE85KdIBb7TGYce+bDXhu/w59Umwso+bQ9Xpan3WqqnyxdKuN+u Rm3J51H34MPYoiHT74MFicp14qCWvOgvxBDhSgZe0Xgdj1aP6awP/LaDeaWlTclcRv5R0+ KkyGeP+x6FeY9dmPbI8+CnkK+sdRu9mqZqg2M5MQ40zkMrIMYFZM3ig7547bWK37k7DGPT lmfHM3jHvbP/qLvqlFzZmJIRgwMIywJDO3kNgVE7YN1kZUr0OBjBDTfly2HGiw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670413504; a=rsa-sha256; cv=none; b=XtdImg0c+PdqEybcY52NXkon0+9eE1Hg0VEdvqKp9UoIOGDDLpPGHPVuANICmyFDnMZ1T9 Hn0D1755EiocYvV9TXlgOzzDvDicDPQqUMXYjrPKT17Wy5AG4O9+bkfIN5csAP0k2chb3p w+QLCDCISx6W4ILKOHFweExZI+QNGqkruvV2N/PoxzYbggDvHI8TeL7r0NsioxIqi8S7us PeGEDvi0JlvYqW2c1GX5OCfRFeoJ6MZL4iPu0UFxAGEQmrR4dzW9AnpG46lnFh1DWXpo2W k76CcY+j/2OKhx0O094+Xv4rs8Or1djLnTGzi5oDphPN3Fyo+ZZym0wSaWiHJw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qtANO85U; dmarc=pass (policy=none) header.from=posteo.net; 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: -6.96 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=qtANO85U; dmarc=pass (policy=none) header.from=posteo.net; 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: 027952AFDD X-Spam-Score: -6.96 X-Migadu-Scanner: scn0.migadu.com X-TUID: vfi3p31yXBOa Bastien writes: > 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"? I just asked Emacs devs as it does not look like we do anything wrong here. It is probably Emacs package.el doing something wrong. https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59882 That said, I find David Masterson's suggestion promising: (if (and (featurep 'org) (< org-version 9.6)) (unload-feature 'org)) We may force unloading the current Org version at the beginning of all the libraries. Another possibility could be (eval-when-compile (load-file "./org-macs.el")) instead of require. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at