From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Sebasti=C3=A1n_Mon=C3=ADa?= Newsgroups: gmane.emacs.devel Subject: Re: Improving Emacs' iCalendar support Date: Fri, 18 Oct 2024 08:58:28 -0400 Message-ID: <877ca5h8jv.fsf@sebasmonia.com> References: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10241"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Richard Lawrence Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 18 14:59:21 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 1t1mZc-0002V4-Fw for ged-emacs-devel@m.gmane-mx.org; Fri, 18 Oct 2024 14:59:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1mYv-0002Ne-UF; Fri, 18 Oct 2024 08:58:38 -0400 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 1t1mYr-0002NJ-DP for emacs-devel@gnu.org; Fri, 18 Oct 2024 08:58:33 -0400 Original-Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1mYp-0002Wx-D4 for emacs-devel@gnu.org; Fri, 18 Oct 2024 08:58:33 -0400 Original-Received: from phl-compute-12.internal (phl-compute-12.phl.internal [10.202.2.52]) by mailfout.phl.internal (Postfix) with ESMTP id 5908F13805E5; Fri, 18 Oct 2024 08:58:29 -0400 (EDT) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-12.internal (MEProxy); Fri, 18 Oct 2024 08:58:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sebasmonia.com; h=cc:cc:content-transfer-encoding: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=fm2; t=1729256309; x=1729342709; bh=oUQmlipuFYHKiAtJyaHU9mB/y5qpz5dE K3sLAFiroPs=; b=KvORiLatdc3Em9a56OqV+Tt5VNJJOa/E7aKiQhc+j2msJtV0 1qAJTUB0JOqX3hlNcxovz6lYZ93kyJsqp5GgeLe0Qi0yidh3+4MEcthNH+dU8u3Z /k8YLfuGcD1I4WPoUFp5VsXsdzc1yNqFk/kbMr+wowrK/AZIDZHEt5LIVDPDPmkO iigEgKkrztBFBqvhM9Xla736qsJQ1lhw0R2BZ5ern74PFJy4ju56vJaBXNy3snAR Er2V2hvCNj30WwzawOtCpG8TvioD6LVVHLMxFQPyOBv2truhRuV3lrLYORwo0aTu J6LMbvsNFWZo0UNhnCJRji9YjJgBnQamEPRfOg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :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-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; t=1729256309; x= 1729342709; bh=oUQmlipuFYHKiAtJyaHU9mB/y5qpz5dEK3sLAFiroPs=; b=a BgrIr46AXSZGCu8LdAvR0vWx69TyymaLsgCPHlmvFMbMfUFGPR1FACsadr5JitoO HpWF4GVYL9XKaAse5e1+N3/wPp3LuZTYKmTWDQ47nvD9yXPHmxUdEjO0nuOi384G SIF1Um4z6ofIDne8q9rcRSr7YJkUZzGpvany5vkD4iC/957oVU0BEsRCfWTKhJcQ +GP+82RJ5e3Px4RlWh5aSzP6oCB/khhYta7Rsg6rwAOZWubUdYfAM+Q7QGNAzcVr Oy4/QhLMLhcqNKtIjo4ppypMjH72yAGcWMRmMNg/9kVpQc2xEDxA2GTD4MIxPCu7 4R6qxu9aenK/Lb/BelbRQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdehfedgheeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevuf gjfhffkfgfgggtgfesthhqredttderjeenucfhrhhomhepufgvsggrshhtihojnhcuofho nhovrgcuoehsvggsrghsthhirghnsehsvggsrghsmhhonhhirgdrtghomheqnecuggftrf grthhtvghrnhepveevvdehfeevkeejtdfgvdetuddtfeejteejffegkeehgfefteegteeu hffhhedtnecuffhomhgrihhnpehrvggtuhhrshgvfihithhhlhgvshhsrdhnvghtpdhitg grlhgvnhgurghrqdhprghrshgvrhdqrghnugdqmhhouggvrdhorhhgpdhsrhdrhhhtpdhs vggsrghsmhhonhhirgdrtghomhenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh epmhgrihhlfhhrohhmpehsvggsrghsthhirghnsehsvggsrghsmhhonhhirgdrtghomhdp nhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvghmrg gtshdquggvvhgvlhesghhnuhdrohhrghdprhgtphhtthhopehrfihlsehrvggtuhhrshgv fihithhhlhgvshhsrd X-ME-Proxy: Feedback-ID: iab2c46da:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Oct 2024 08:58:28 -0400 (EDT) In-Reply-To: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> (Richard Lawrence's message of "Fri, 18 Oct 2024 11:01:10 +0200") Received-SPF: pass client-ip=103.168.172.150; envelope-from=sebastian@sebasmonia.com; helo=fout-a7-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:324655 Archived-At: Hello Richard! Richard Lawrence writes: > Dear emacs-devel, > > This is an itch that's been bugging me for a while, and so for the past > couple of weeks I've been working on scratching it, and I now have a > reasonable chunk of work to share: I've drafted a new implementation of > the iCalendar grammar, and a major mode which uses this grammar to > provide syntax highlighting. I wrote up what I've done and why here: > > https://recursewithless.net/emacs/icalendar-parser-and-mode.org > > That's a literate Org mode file containing the code and my commentary. > If you just want to read the code itself, see: > > https://recursewithless.net/emacs/icalendar/icalendar-parser.el > https://recursewithless.net/emacs/icalendar/icalendar-mode.el Will take a look, thank you for sharing! > I could release this work as a package, but as I describe in more > detail in the write-up, I think there's a good case that an improved > iCalendar library belongs in Emacs' core. There are currently at least > *three* partial iCalendar implementations in Emacs (icalendar.el, > gnus-icalendar.el, and ox-icalendar.el), which are each focused on a > particular major mode (diary, Gnus, and Org). I think it would be good > to consolidate this work in one place and generalize it so that all > three of these applications, as well as third party packages, can > benefit. I am only familiar with icalendar.el, which I consumed in this CalDAV sync package: https://git.sr.ht/~sebasmonia/cdsync.el I haven't used it much lately, but while testing it I found a few cases not supported by icalendar.el At some point I wanted to try my hand at fixing some bugs reported in the ical -> diary conversion. > So, some questions for the list: > 2) Would anyone here be willing to mentor me/collaborate with me on > it? I would be happy to help. > 3) What should the library's API look like? What would be most useful? Like Eli said in another reply, you are probably the best person to define this now - until the library is merged, the API can change, so don't stress too much over that _yet_ :) Regards, Seb --=20 Sebasti=C3=A1n Mon=C3=ADa https://site.sebasmonia.com/