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: Fri, 10 Jan 2025 10:42:58 +0100 Message-ID: <87sepr2ee5.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> <87seq290b6.fsf@recursewithless.net> <87msg9qej0.fsf@localhost> <871pxlhto4.fsf@recursewithless.net> <8734i1q8p1.fsf@localhost> <874j2d8u55.fsf@recursewithless.net> <87cyh1pew7.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="2103"; 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 Fri Jan 10 10:44:07 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 1tWBYj-0000OY-P6 for ged-emacs-devel@m.gmane-mx.org; Fri, 10 Jan 2025 10:44:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tWBXr-0001LT-EU; Fri, 10 Jan 2025 04:43:11 -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 1tWBXp-0001LJ-Ip for emacs-devel@gnu.org; Fri, 10 Jan 2025 04:43:09 -0500 Original-Received: from fhigh-a3-smtp.messagingengine.com ([103.168.172.154]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tWBXn-0001kU-Dy for emacs-devel@gnu.org; Fri, 10 Jan 2025 04:43:09 -0500 Original-Received: from phl-compute-03.internal (phl-compute-03.phl.internal [10.202.2.43]) by mailfhigh.phl.internal (Postfix) with ESMTP id AEAB3114018F; Fri, 10 Jan 2025 04:43:04 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-03.internal (MEProxy); Fri, 10 Jan 2025 04:43:04 -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=1736502184; x=1736588584; bh=a77CkbsX1HInAIcw4AsLQFBaCCe0SmyMF19uocFD2Cc=; b= qDpGkNWI12m0iv8cnkle3RZsbNd+TCdMoJMpHBlE76DsYYqwSvTAI4IpXmEXoOn2 0dHBjo/o4b+iWd23KdnDIyAnDYe6t3mbl3NTNqs88y0/1wRUsg4aMua0Pp2kfpOY smFjuW+gnMNi/U8cVSfkJdvkmdz/5/45T2AvgdkTQH8sSBEVLZWCO0HCWBW0lrFY dCajzJGxagAWPASeLzuOCnlS0Sm4YkXcVPIcva+XlRjru+j0PFodMuRx/x2nUHXN yCO4LXMLueCeKccE/a6h77mUcF8nb0zcwZOmkPhCcahwJroXZvqkhuaGK9IoVdHM yyzwtdM09oF5VarCDrSQDQ== 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= 1736502184; x=1736588584; bh=a77CkbsX1HInAIcw4AsLQFBaCCe0SmyMF19 uocFD2Cc=; b=hCjlVCNUOyp05CwJ/srMCb1WgNZ8zJOiLVcYM5wXswTn/YIbaRO d68BM11THZaWhje3eSlWhaKc8rnFVRki0EPNQ9Zz68QaXZ86SxX7iA31twMdiuO0 i5MEBI5Zegt1c+zlrzoFulTUsL9eQPOxfqedde7cCwkTcR6rNLv+9Mc+hwG0BTGM ROoZPig5RBfnxfqbaN1fiI3fBcabvcaBt7KdrDHyO4QKiCV2Orh746wzPf/7nNdm hRSpZmEu0wl5VDplB0349ppq1BEA/+QJ9rpLv9Qv1KstL6x504Dpl4VJhdWBsqY3 x8ZqejuZlGF7NGanuy25JKkETWE9UcXv6ig== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrudegkedgtdejucetufdoteggodetrfdotf 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; Fri, 10 Jan 2025 04:43:03 -0500 (EST) In-Reply-To: <87cyh1pew7.fsf@localhost> Received-SPF: pass client-ip=103.168.172.154; envelope-from=rwl@recursewithless.net; helo=fhigh-a3-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_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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:327837 Archived-At: Ihor Radchenko writes: > I think I can just add a special case to `org-element-create': > when CHILDREN is (nil), ignore it. > > Does it make sense? That would be enough for my purposes. I don't know if it's enough for Org's (and worry that the change might introduce hard-to-find bugs). I wonder therefore if it might be better to create a wrapper with a different argument list like (defun org-element-create* (type &optional props children) (if children (apply #'org-element-create type props children) (org-element-create type props)) But either would be fine with me. Best, Richard