From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Visuwesh Newsgroups: gmane.emacs.devel Subject: Re: Improving Emacs' iCalendar support Date: Wed, 23 Oct 2024 15:15:44 +0530 Message-ID: <87bjzbtanr.fsf@gmail.com> References: <87ed4dss2x.fsf@ohm.mail-host-address-is-not-set> <87a5eyug9t.fsf@gmail.com> <875xpjp4co.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="1979"; 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 Wed Oct 23 11:47:04 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 1t3XxH-0000RB-Nz for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Oct 2024 11:47:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3XwA-0008NW-KW; Wed, 23 Oct 2024 05:45:54 -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 1t3Xw8-0008NN-TZ for emacs-devel@gnu.org; Wed, 23 Oct 2024 05:45:52 -0400 Original-Received: from mail-pl1-x641.google.com ([2607:f8b0:4864:20::641]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t3Xw7-0005aa-7k for emacs-devel@gnu.org; Wed, 23 Oct 2024 05:45:52 -0400 Original-Received: by mail-pl1-x641.google.com with SMTP id d9443c01a7336-20ce65c8e13so56134185ad.1 for ; Wed, 23 Oct 2024 02:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729676747; x=1730281547; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Virvc/pT5/PCN5+mpgI+OJIlysCvtYrtHcL102rQNnM=; b=Lw6GB3ipLJMEcYRHCQcUGKaxDEuusCCm2dhWOj5uCQwExl5qmc5t7i9AAGhs07pF1Y Q+hiKsYWsgcD4jsH+WOdQGRYcyj3NnsKHKrQ6c8B5wZVV2oKN6FMFdPTtkHBdu+miKQW 9QgF/HLRYq5WCx1f50OcqF6P6OQuThWka8aL2NhMWSFt/pjdGaVztwc5PQFT27wObn4o PMLmpyuJeYDa3ZWJFmKav50jU2ygUNcP03W+WbIgpBsczvIERqKLXpwzrzGUE+Ia4tGc CAZEt2wYPSiBkhMs00zNaP73y1qVT1FOA/eHzaXs8cz6PeteUGWQa3jQSbAgEuEJwSvu jcVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729676747; x=1730281547; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=Virvc/pT5/PCN5+mpgI+OJIlysCvtYrtHcL102rQNnM=; b=L1W0a9v/HUZOe9vMJbDqpYMT0J+zOV5pwx/wcIsUqKhE7NV8kkiQXlNO87aeTNssEb qhwg1L4m9A6dR97ejJwcemeykgxw2AvYUR/pvCmhK/QWj7Btp2vnVK0qpa/Z5EDvqckO 0AbE976CNUbEQNvIhirbs0E+KqkuaWokykUl0bymwUBFbRY+cah2kfcjUbCrJEzVhJsZ xzkHuZYNOGpqZudylrZyufqrSHUgcda9bu/qni4cFymdk2z9/JH+SiEBRuXwBeQJsCiz I8ThRqOJHELBWYTvsnnTgb1i5m3RDKjBNn1P1RPKFlkNbj4BS9Lt6czoY8kYssaIp3ko ZGJQ== X-Gm-Message-State: AOJu0YwSayAj8Z3d94f3LreLMK/FBbn1LRvlzS6EINY9qpabYwZ4QHyM iVOYRxfll1VSuSBG6UIpQBwlDI93taHcT7cCzk5yKSY9P1oiovG6TAMmUfF9 X-Google-Smtp-Source: AGHT+IGrFZYP96c99cWn5p40enIyzcLMLVAcx9Z3XTCJXl3VYsQCwnRg8YW0Avr4EGzroAyF4zAmZg== X-Received: by 2002:a17:903:2341:b0:20b:c17f:9dad with SMTP id d9443c01a7336-20fa9ec370amr25684515ad.53.1729676747194; Wed, 23 Oct 2024 02:45:47 -0700 (PDT) Original-Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20e7eee8968sm54630205ad.30.2024.10.23.02.45.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2024 02:45:46 -0700 (PDT) In-Reply-To: <875xpjp4co.fsf@ohm.mail-host-address-is-not-set> (Richard Lawrence's message of "Wed, 23 Oct 2024 11:15:35 +0200") Received-SPF: pass client-ip=2607:f8b0:4864:20::641; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x641.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:324783 Archived-At: [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=85=E0=AE=95=E0=AF=8D= =E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 23, 2024] Richard Lawrence wr= ote: > 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 ;) Understood. pp is the reason why that function exists. It look a bit of trial and error to write it. >> 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?= =20 The latter. It would be nice if the former could be achieved too but that is not a hard requirement. It wouldn't be too much of a hurdle if the new library is well documented.