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: Sun, 29 Dec 2024 21:19:15 +0100 Message-ID: <87ttamtf7g.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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30342"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, 74994@debbugs.gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Dec 29 21:20:10 2024 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 1tRzlh-0007ir-1F for ged-emacs-devel@m.gmane-mx.org; Sun, 29 Dec 2024 21:20:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRzl4-0008Hu-Mo; Sun, 29 Dec 2024 15:19:30 -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 1tRzl2-0008HQ-S8 for emacs-devel@gnu.org; Sun, 29 Dec 2024 15:19:28 -0500 Original-Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tRzl0-0007Kn-U9 for emacs-devel@gnu.org; Sun, 29 Dec 2024 15:19:28 -0500 Original-Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id D5123254011D; Sun, 29 Dec 2024 15:19:22 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Sun, 29 Dec 2024 15:19:22 -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=1735503562; x=1735589962; bh=pPi0YGHGnSmTFZ+xL9rlu4RxyGVGV9NR6+im2RnZMK0=; b= QBDLLfxGTssNYfYV6NqjVLK0Ixs+C4XMYspUSB/jecky7AIkfoqiDeDq9fadjaFo H6+TIQT3WYRCMbGo7s9ymQUCnjjcUfoBLmeDaSLVa0LVZhem6SoZIvScwqDtkoMf KRiMnDm4AIC8KVPdACchH4W86WoyoeKTTWmgpOTwtwrzTBNVyk7/2rQxxBjghz0d /m28HidV7csd+ONYkD847WzD9Ch2kNWi9sxXItjZ1lZcv6GrsqADgt5SAVgAnbbI ovHSdpUKfcjHEunDMjq0PZdyt1odPVLnM/H7f+bhEH2+tvdTGVoBw3aGFAjKGM8F sgLy83eQ5q2iGjI8CQs0Sw== 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= 1735503562; x=1735589962; bh=pPi0YGHGnSmTFZ+xL9rlu4RxyGVGV9NR6+i m2RnZMK0=; b=Xyg9azQ8bZ4urcHAMbKORsVMlbmI9HOKJo7xKX1cawzL9hw6wj9 VQvycQM9Ob7kssTt2rzcd68PVdhgV+PgBqxsWSrd0g4ytmUdN/xxAQxk1shf1cpF HT3yJ5XSghAezL/NDpujVDcl1gn33r8iMKPa/lUhby2oUWWRh7nd/jgVdtNPGR6p q07paXkAL1J0oQ+btTcr17tS0D7LsBdnyjf8Lo/u9AqIyScWHFlCQcgPXBiIl6aq fu5iuw48D+EXjfWfZNABixDgGJQHsomxQEldlxJPMASUQaYDrbiFCvh60hRw+xhC cMvQ3q3YuGICMP2cDshN7wF+V63HSUR1vxQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddvgedgudefkecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvve fujghffffkgggtsehttdertddttddtnecuhfhrohhmpeftihgthhgrrhguucfnrgifrhgv nhgtvgcuoehrfihlsehrvggtuhhrshgvfihithhhlhgvshhsrdhnvghtqeenucggtffrrg htthgvrhhnpeefueffvdeffeeftdeutdfgjeettdduveduudefjedtkeejgfehhedvgffg ffduhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrfihlsehrvggtuhhrshgvfihithhhlhgvshhsrdhnvghtpdhnsggprhgtphhtthhopeef pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopeihrghnthgrrhelvdesphhoshhtvg hordhnvghtpdhrtghpthhtohepvghmrggtshdquggvvhgvlhesghhnuhdrohhrghdprhgt phhtthhopeejgeelleegseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: if7394488:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 29 Dec 2024 15:19:22 -0500 (EST) In-Reply-To: <87cyhg0zjz.fsf@localhost> Received-SPF: pass client-ip=202.12.124.152; envelope-from=rwl@recursewithless.net; helo=fhigh-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:327370 Archived-At: Ihor Radchenko writes: > In bug#74994, Richard made a decision not to use org-element-ast and > instead implement a custom parser generator. > > Richard, is there any specific reason why you had to make things from > scratch? May org-element-ast be changed to fit your needs? > > If org-element-ast is not going to be useful outside Org mode, I see no > good reason to invest time into upstreaming it, after all. No, it was more that, as things stood, I wanted to wait and see what would happen with upstreaming org-element-ast. My idea was to make it easy to switch once that happened, but not to wait to make progress in the meantime, that's all. One thing about your question confuses me, namely: > ...instead implement a custom parser generator. As I understand org-element-ast, it basically just defines the parse tree representation and various accessors for working with it, not the parser itself. Was your suggestion that I could also use the Org parser, not just the parse tree representation? If so, then I misunderstood, and presumably more code is involved than is found in org-element-ast.el, right? Best, Richard