From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Richard Lawrence Newsgroups: gmane.emacs.devel Subject: Re: Upstreaming org-element-ast (was: Improving Emacs' iCalendar support) Date: Wed, 01 Jan 2025 14:01:05 +0100 Message-ID: <87pll68z8u.fsf@recursewithless.net> References: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> <87mshq9w5c.fsf@ohm.mail-host-address-is-not-set> <86ed31j6zk.fsf@gnu.org> <87ldx9vsnb.fsf@localhost> <868qt8kj6f.fsf@gnu.org> <87ikscx5io.fsf@localhost> <867c8skhy6.fsf@gnu.org> <87frngx4fx.fsf@localhost> <864j3wkczm.fsf@gnu.org> <87cyhg0zjz.fsf@localhost> <87ttamtf7g.fsf@recursewithless.net> <87h66l2isk.fsf@localhost> <87cyh8guci.fsf@recursewithless.net> <87r05mg9ve.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5886"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 01 14:02:32 2025 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tSyMo-0001LP-Q8 for ged-emacs-devel@m.gmane-mx.org; Wed, 01 Jan 2025 14:02:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tSyLu-0000km-8E; Wed, 01 Jan 2025 08:01:34 -0500 Original-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 1tSyLf-0000hg-Kf for emacs-devel@gnu.org; Wed, 01 Jan 2025 08:01:23 -0500 Original-Received: from fout-b1-smtp.messagingengine.com ([202.12.124.144]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tSyLb-0001Dx-V1 for emacs-devel@gnu.org; Wed, 01 Jan 2025 08:01:18 -0500 Original-Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfout.stl.internal (Postfix) with ESMTP id A6236114009E; Wed, 1 Jan 2025 08:01:12 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Wed, 01 Jan 2025 08:01:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= recursewithless.net; h=cc:cc:content-type:content-type:date:date :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm1; t=1735736472; x=1735822872; bh=8ICkVMqCfLYOM356zkVbMoJKJA5j8cd4KyY5oLbJZ4U=; b= RQWEm/ODTqSzbnU0hPHBV6DBblpf+orKYiYsiLXfznwBukzMW5xa24Fzdl1wNpnK MjDD217cfpIR4AlQhkus2cDCXm5Pl+9wfPr8bNFHdYZLRVBOp/ursTvN8Tdd0DzA l1aa/x+iK5QEHZnseDb2gzL19SXcbYcmA+RZzJSn5jVfBRijAvYveZU7YkPMtfUD b2sJL0KbQQIDWOfWE6xas6pKFkUfAkVrOoP756GNwazfDlo0GFGuiotqhI6adQqi UrIH9yz173lEiRyVydCUH4rLqjyE8t6yJnJgQwkYBz78JiDtdqca6sXnAYaptgF5 B/viwlM0kNrscf9iTQ52pQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t= 1735736472; x=1735822872; bh=8ICkVMqCfLYOM356zkVbMoJKJA5j8cd4KyY 5oLbJZ4U=; b=ewC9X42b4x8vvfzLSwoxhfp0djQyyTRUfi60GK7MlQpSoVHUWKw +0D0iq4Cw+zzB/s6Jh+z54a1kJs/VuHoIpdqsgTiFIplDp1K8fcRVwWQwskVXZ+Y gKZoM/a6OwQT1fJculcbMP8i1h8cwxKvd0cjhQTGk+sCKkRy0lZYzWfMcqFdravq 2AkJhlxPlH4uABijv5ihWA7yfSuiQWAr117ic9gofnw4X5AxoDp6mayw55vKshkP mailgqTjFh04WYcpFcxdfJgg0bINPAHTXfjeFHh+ifIG2rm1V+BqVRld+vqNBEC+ 4IDojoHsSzrnynryNiI0zodAV3OSizylJNw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudeftddggeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevuf gjfhffkfggtgesthdtredttddttdenucfhrhhomheptfhitghhrghrugcunfgrfihrvghn tggvuceorhiflhesrhgvtghurhhsvgifihhthhhlvghsshdrnhgvtheqnecuggftrfgrth htvghrnhepfeeuffdvfeeffedtuedtgfejtedtudevuddufeejtdekjefgheehvdfggfff udfhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprh iflhesrhgvtghurhhsvgifihhthhhlvghsshdrnhgvthdpnhgspghrtghpthhtohepvddp mhhouggvpehsmhhtphhouhhtpdhrtghpthhtohephigrnhhtrghrledvsehpohhsthgvoh drnhgvthdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: if7394488:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 1 Jan 2025 08:01:11 -0500 (EST) In-Reply-To: <87r05mg9ve.fsf@localhost> Received-SPF: pass client-ip=202.12.124.144; envelope-from=rwl@recursewithless.net; helo=fout-b1-smtp.messagingengine.com 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:327546 Archived-At: Ihor Radchenko writes: > Richard Lawrence writes: > >> 1) Is there any way to use my own list of standard-properties? > > Currently, there is no such way. But it is one of the obvious problems > that need to be solved to make the library truly generic. > I am not 100% sure how though. > > The only thing coming to my mind is asking the libraries to use > > (let ((org-element--standard-properties )) > (defun library-x (...) > ...)) Personally I think this would be a bit much to ask...it would be fairly annoying to have to wrap all one's functions like this, even if there was a macro to do it. > Or maybe the library can somehow flag to org-element-ast during compile > time about the properties to be optimized. What about asking library users to say something like (eval-when-compile (defvar org-element-custom-standard-properties ...)) and then using a with-standard-properties macro within org-element-ast.el to make use of this value at compile time? I don't know if that would work if e.g. org-element-ast gets compiled before the user's code, but an interface like that seems preferable to me. Best, Richard