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: Wed, 23 Oct 2024 11:15:35 +0200 Message-ID: <875xpjp4co.fsf@ohm.mail-host-address-is-not-set> References: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> <87a5eyug9t.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37629"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Visuwesh Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 23 11:16:35 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 1t3XTj-0009c4-Rp for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Oct 2024 11:16:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3XSx-0007Bw-Gl; Wed, 23 Oct 2024 05:15:43 -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 1t3XSw-0007Bo-8B for emacs-devel@gnu.org; Wed, 23 Oct 2024 05:15:42 -0400 Original-Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3XSu-0002GL-17 for emacs-devel@gnu.org; Wed, 23 Oct 2024 05:15:42 -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 DA2FB13801EF; Wed, 23 Oct 2024 05:15:37 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-12.internal (MEProxy); Wed, 23 Oct 2024 05:15:37 -0400 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=fm2; t=1729674937; x=1729761337; bh=loRP9MpKiU89wxnYff+q1GoocpLIb/R1lQ60J8jEDkc=; b= A47vKKn+tASbhL9J//NQjzBFGZeW+C7PQK1QVqyz3IDRC3p5C5e67Vtj1rji/v5P ifhtpsKuZyZm62n23JdIbmmfH5N8+/pqBitHxiLR192IM6pCrd9gWWSX/HyftKES k5Rh3FpViAPhY4uDVtsOnQcGgyV4oPnhDGNAyUj+fQTrhRJfRYu9JxtV7am4ePJu kfNr8wu+stFv3qIn6RmWiBg0ynWMSy8dxxbWo1YSqrOU44G54DdoqnRG5jo9txzI YmD2IM/MJjjK8Pg5sXFEeCAj3kYWHr44BgoRO1FLjhE8JbXbaAyotcBFM9TtB4x7 sQVdgfMxOL2z77cKSeOzdw== 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-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1729674937; x=1729761337; bh=loRP9MpKiU89wxnYff+q1GoocpLI b/R1lQ60J8jEDkc=; b=QHBKWYTsbq7ARkOSlq/OHx5fckZPvZM0HR4YrEQs16Ib EVJlJB1bnCwf8DOuGfkt+9VuxLiUu4LQ+QrjUtOVFW3ZtDpK21G2gePap5mHBOOK r7b7Rtku9ufaBXo1YHDRzTnBxrNwSt5+tBR+trZp40kNdVYK3T7RS7icr9X3OLS6 lvkpxoSdUdZXWUkHz+N5CQt2aB0AdtsqginGrA2ZaxDbDgNwQMqEnuNQcl3GfJti zmzaRUtyiNAaXE4YQTMsEZNjJpwU/LCpyJFCJCi8C3LuAJDXyMoeDnANagwU8PbH gGvPZPA7B5BVknk68WlAd/UwAU3ZGz3vcvQ6Ytu4xg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdeijedguddvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefhvfevuf gjfhffkfggtgesthdtredttddttdenucfhrhhomheptfhitghhrghrugcunfgrfihrvghn tggvuceorhiflhesrhgvtghurhhsvgifihhthhhlvghsshdrnhgvtheqnecuggftrfgrth htvghrnhepfeeuffdvfeeffedtuedtgfejtedtudevuddufeejtdekjefgheehvdfggfff udfhnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprh iflhesrhgvtghurhhsvgifihhthhhlvghsshdrnhgvthdpnhgspghrtghpthhtohepvddp mhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepvhhishhufigvshhhmhesghhmrghilh drtghomhdprhgtphhtthhopegvmhgrtghsqdguvghvvghlsehgnhhurdhorhhg X-ME-Proxy: Feedback-ID: if7394488:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 23 Oct 2024 05:15:37 -0400 (EDT) In-Reply-To: <87a5eyug9t.fsf@gmail.com> Received-SPF: pass client-ip=103.168.172.149; envelope-from=rwl@recursewithless.net; helo=fout-a6-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:324781 Archived-At: Hi Visuwesh, Visuwesh writes: > It has been at least a couple years since I wrote this function so I > don't remember the hurdles I faced when I wrote it very well but it > perplexed me that there were no "public" functions that were geared > towards parsing an ical file. In retrospect, it would have been less > confusing if these functions were "public" functions. AFAIR, and this > very well might not be true, the structure returned > icalendar--read-element is not really documented anywhere which further > added to the confusion. Yes, I had the same feeling. I spent a while looking through icalendar.el about six months ago, hoping I could find an appropriate point to hook into it/extend it. But the private function names and lack of documentation of the data structures eventually caused me to give up. I couldn't figure out a good way to use it or patch it to do what I wanted, and it seemed like there were a lot of things it didn't implement anyway...thus this current project ;) > That said, this function has been rock solid ever since I wrote it. > Going by the ical files I have, it is working just fine since 2021. Are you saying it would be important to you to preserve the "private" API of icalendar.el? or just that you're glad this API is still working? Best, Richard