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: Improving Emacs' iCalendar support Date: Mon, 25 Nov 2024 10:09:15 +0100 Message-ID: <87jzcraddw.fsf@ohm.mail-host-address-is-not-set> References: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> <87mshq9w5c.fsf@ohm.mail-host-address-is-not-set> <86ed31j6zk.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="9057"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Ihor Radchenko To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Nov 25 10:10:15 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 1tFV6j-0002BD-Bl for ged-emacs-devel@m.gmane-mx.org; Mon, 25 Nov 2024 10:10:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFV62-0006se-B6; Mon, 25 Nov 2024 04:09: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 1tFV61-0006sU-0T for emacs-devel@gnu.org; Mon, 25 Nov 2024 04:09:29 -0500 Original-Received: from fhigh-b4-smtp.messagingengine.com ([202.12.124.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFV5z-0000IM-7Z; Mon, 25 Nov 2024 04:09:28 -0500 Original-Received: from phl-compute-08.internal (phl-compute-08.phl.internal [10.202.2.48]) by mailfhigh.stl.internal (Postfix) with ESMTP id 17AA82540123; Mon, 25 Nov 2024 04:09:24 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-08.internal (MEProxy); Mon, 25 Nov 2024 04:09:24 -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=fm3; t=1732525763; x=1732612163; bh=xGQeI7LieNgRYrJVPvzXEGeNJu7ByIVLlEQ1JkZhmSU=; b= IFS5QNbphl5BjaTYeIbNLeXeJTGCkoPtuwippFH7jHwCvRGf4eUKVwuma4fqskUO TXchhWSHPYDUEx+ybZVbZiC1UJ3G4FEiiSMm+5cWO9yUu1wvXTSH7nHAvvTjqZ0a UYyVRIm0p+UXEPm2GBpOUodgr7fa7lkuSc494injCB2EGRptFEEupgAKw8MZWu22 /LNod7rbMiKurjdnRfEpoSNmW2SxFNjkCVmrTgOouWAG4i913BsjfehMXDYPnf7j ADEIlMJXbJAtO5NNdVJMaYtciiFGyzQouKP8TaBSF2TRgcO+USLoh0LmnJj71FZe CTxoB+p9ayZcDTo3EoXQnA== 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=fm1; t= 1732525763; x=1732612163; bh=xGQeI7LieNgRYrJVPvzXEGeNJu7ByIVLlEQ 1JkZhmSU=; b=FZhGvfrkAb1GmPcQH4ooaIJC9SAahReEq2WKf7ybvIrsmw657WB eBD5Oi2phTcKbHOxO5EWS0Pp/S87atB0sy+ZQOQuiOosfFfRs3SKSm7wnf/eKet2 tV0y5PWH6vrd1e9GiC/NeyaD1iRN4yDNtHPTurWh4An9YZZJDnNSN4gZ2eBerCIm nCxw167niqtLlZkZrQBfiSnkbDR6pLTWMe4uauf4Lb5Bi7Ov4rqMSpqQKPiB8MiD 53vgFOHQMZhByCQVjQj2UFoVvLEH8Ni7i+9RMxUZsTO1QF9vlhU0/FuMk43Ljm6k Ul1LJxXihCoTgJ1ecDmnIS4qZWcf+g+2Row== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddrgeehucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfurfetoffk rfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculd dquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhm peftihgthhgrrhguucfnrgifrhgvnhgtvgcuoehrfihlsehrvggtuhhrshgvfihithhhlh gvshhsrdhnvghtqeenucggtffrrghtthgvrhhnpeefueffvdeffeeftdeutdfgjeettddu veduudefjedtkeejgfehhedvgffgffduhfenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehrfihlsehrvggtuhhrshgvfihithhhlhgvshhsrdhn vghtpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpohhuthdprhgtphhtthhope gvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhu rdhorhhgpdhrtghpthhtohephigrnhhtrghrledvsehpohhsthgvohdrnhgvth X-ME-Proxy: Feedback-ID: if7394488:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 25 Nov 2024 04:09:23 -0500 (EST) In-Reply-To: <86ed31j6zk.fsf@gnu.org> Received-SPF: pass client-ip=202.12.124.155; envelope-from=rwl@recursewithless.net; helo=fhigh-b4-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:325686 Archived-At: Eli Zaretskii writes: >> 1) The basic form of the syntax tree is based on the format of the Org >> parse tree in org-element-ast.el (though for now I have not implemented >> any of the performance optimizations). Syntax nodes are a four-element >> list of a type symbol, a metadata structure, a value, and a list of >> children. Type symbols are used to store metadata about all the >> iCalendar grammar categories and to do type-based dispatch in the >> parser. > > Since iCalendar is not tightly coupled to Org, it would be best not to > load Org for supporting iCalendar features. Sorry if I was unclear: I'm not loading org-element-ast.el or using it directly; I have just adopted the same basic format for iCalendar syntax nodes. This should make it easier to switch to org-element-ast.el if/when it eventually becomes a more generalized library. But at the moment, there are enough feature differences that I don't think that makes sense. > Is it possible to use peg.el instead? I was not aware of peg.el, and it doesn't seem to be installed in my (Debian-built) Emacs -- find-library does not find it. Is it new? Where can I take a look at it? Best, Richard