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: Fri, 25 Oct 2024 14:53:19 +0200 Message-ID: <878qucxs1s.fsf@ohm.mail-host-address-is-not-set> References: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> <0bacd69a-7941-44d2-ac5e-3ae3f256481a@alphapapa.net> <87r08cqye8.fsf@ohm.mail-host-address-is-not-set> <87zfmwyoa9.fsf@localhost> <87bjzbp509.fsf@ohm.mail-host-address-is-not-set> <87plnqpnxr.fsf@pie.tf> <87y12d8sf0.fsf@ohm.mail-host-address-is-not-set> <875xpho0nu.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="36909"; 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 Oct 25 14:54:16 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 1t4JpW-0009Ne-DX for ged-emacs-devel@m.gmane-mx.org; Fri, 25 Oct 2024 14:54:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4Jop-0005xZ-LE; Fri, 25 Oct 2024 08:53:32 -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 1t4Jok-0005xD-Ug for emacs-devel@gnu.org; Fri, 25 Oct 2024 08:53:27 -0400 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 1t4Joj-0004US-1d for emacs-devel@gnu.org; Fri, 25 Oct 2024 08:53:26 -0400 Original-Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.phl.internal (Postfix) with ESMTP id 601C311401EF; Fri, 25 Oct 2024 08:53:22 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Fri, 25 Oct 2024 08:53:22 -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=1729860802; x=1729947202; bh=mNADp0rbyMX5zCjQSB5saEbPtE3xzhiE1141XL3zxXY=; b= HDkk0IjXPHWMYiNbGFL70sCdVysgubHbnBcP4YmKDwcrkI7Jgi6IeqzHKZvyxGfK 0HzqJ8JxuTl0Xv/UM4vDrV55cdpPBSPQg3U+mPkbDwgUR3KMvdKnkbpSapJOKkCn AwNsaXmpE74PQkzBeOnteyxv4Si377vErzkOuAfHrloU3xL0+RQfkR3bfdqIvurO +cX/QSin/JEr5P5yXDmBCdHRACNgD3oCdBRWioFYj870GxUWyIYPjrHcZZhXlTdO Efd013fY0qMngR3fatqESa+TBzUhafUGfFtDJ7kUC3EVgUaYSkwy028y0jF6gUjs OzBI/aF7vL1Dt8XrMrn6hw== 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=1729860802; x=1729947202; bh=mNADp0rbyMX5zCjQSB5saEbPtE3x zhiE1141XL3zxXY=; b=mW2sQhnQlu3+Cd6bmq2t/8PloFTarxgBNj1XiuIMzxOu cVkGAjwy1G3/kgwp/mzUdfLDItQbrVHdUPFB4cLTuX7ou/rgzEK/kKSqKtVkD6Mr eR4OyE2BhPhIE5Tno3HKG0si7yPO8Lc14lazlx7F7KrEtvBbC1H41LAWyAQKIojT oo887hFQjN1XByvbrCAr3mZeHqGTKKGTUd86htoqzfeM7W8xIeOz02vOu314VAQa AROzjZTbEPKmRvk1dzdzNFKiBT5Ar47gVOrccHHRZfqrH1JY/IEYYnZy0w3GLex7 FZFAspDjE/pSoW5a3sgysl3Q2Z7HVpfLLiq5kg3iIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrvdejvddgheejucetufdoteggodetrfdotf 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, 25 Oct 2024 08:53:21 -0400 (EDT) In-Reply-To: <875xpho0nu.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:324837 Archived-At: Hi Ihor, Ihor Radchenko writes: > Richard Lawrence writes: > >>> While I started extending the gnus-icalendar-event EIEIO class to >>> support property parameters, it ended up being very cumbersome to >>> create new event objects with all parameters correctly set. > > As an alternative option, you may consider using org-element-ast API - > it is a generic data structure and API that Org mode uses to handle > parsed AST. It is servility optimized for performance and does not > really depend on other parts of Org mode. Thanks for pointing me to this! I took a look at the file commentary, and I've played around with org-element before. I do like org-element's plist-based format...it makes things simple and readable as an outside tinkerer. Can you tell me a bit more about the performance benefits? Do these mostly just stem from the use of an array for :standard-properties? (You get this for free with cl-structs, too.) Or is it more about when and how parsing happens? (This is something I feel like I've never grasped in org-element...in the past I've been confused because the properties I'd see when calling e.g. org-element-at-point would be different than the ones available in some other context.) Thanks! Best, Richard