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.bugs Subject: bug#74994: Improve Emacs iCalendar support Date: Tue, 24 Dec 2024 09:08:18 +0100 Message-ID: <87bjx1fqq5.fsf@recursewithless.net> References: <87bjx6mrjp.fsf@recursewithless.net> <87ttaun617.fsf@recursewithless.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39702"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74994@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 24 09:09:34 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tPzyv-000A6q-Ag for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Dec 2024 09:09:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPzyT-0003bD-UH; Tue, 24 Dec 2024 03:09:05 -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 1tPzyR-0003af-8i for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 03:09:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tPzyQ-0006Y4-WC for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 03:09:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=P78Z6oczkGcWnhgI7RoN3e19UrRKBVK7gkSrTI1NFvw=; b=sPIFP7mce2RfCAZINv/gk0CZHhMwkuHLTXctolum9OqKF3L/6LkA41b51mAcbpvIrmPtcbetJ3Z792vCdMdj8T1tsdCur5bPZMUh6JKddIrOrIEUybm8/03lWs0IA8hS5/OF0WxMiZYgob7yHoMZuX7k/8SVKJrqG9nEWaYXgXHR5REX48JbPSXWXcjXOOrVRxpN7hk3IZgl/QamBe7drT19JX7VT40JBouawWhiNBz6kuv+3QRa0CVpG65Opk0GtE0Wcq+Qd+E96f6q5p987hUEGHt/zUl3gPSxrGJmMpFDC0tGjLMlIQ3maSdj8JTjGz/Ov2XNuwQvZRBJDP7/vg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPzyP-0000x8-Sc for bug-gnu-emacs@gnu.org; Tue, 24 Dec 2024 03:09:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Lawrence Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Dec 2024 08:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74994 X-GNU-PR-Package: emacs Original-Received: via spool by 74994-submit@debbugs.gnu.org id=B74994.17350277203628 (code B ref 74994); Tue, 24 Dec 2024 08:09:01 +0000 Original-Received: (at 74994) by debbugs.gnu.org; 24 Dec 2024 08:08:40 +0000 Original-Received: from localhost ([127.0.0.1]:59222 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPzy3-0000wS-Ih for submit@debbugs.gnu.org; Tue, 24 Dec 2024 03:08:39 -0500 Original-Received: from fhigh-b8-smtp.messagingengine.com ([202.12.124.159]:53865) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPzy0-0000wB-Lc for 74994@debbugs.gnu.org; Tue, 24 Dec 2024 03:08:37 -0500 Original-Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfhigh.stl.internal (Postfix) with ESMTP id 47F0F25401D4; Tue, 24 Dec 2024 03:08:30 -0500 (EST) Original-Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-05.internal (MEProxy); Tue, 24 Dec 2024 03:08:30 -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=fm1; t=1735027710; x=1735114110; bh=P78Z6oczkGcWnhgI7RoN3e19UrRKBVK7gkSrTI1NFvw=; b= 2QzqRPNo9wssz/o8X3e1n3GpcrJ3eZfTxuwusKeVYn4EsypWW4qqwsBt+xgHL6VT LjncqcP1S+ZvqiKJ3RgyKE3AjWi/v3+A7HnalpjUZliXllQJS+DNymGh/mGhYz0Y oHLX0QHDRsu//2sOOvp1eOBgeaeHsxOpKx3WnmwjcL7+GCQTtrN6eM4w4QDbWQMl uQoDNFK3vC3iKKYI0i4K2S8yiT7NQKrwF3S3Ks74PpRGbHg5KQX8QDn47Lo1bBjA BIfQrLiT2pMnDwcn939+J4VoczxAfvtBJQFPTUHsJvxc/djgWeSDEbSoqHntkOHT gUf4xc0t1Ltt3LcejdbA8A== 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=fm2; t= 1735027710; x=1735114110; bh=P78Z6oczkGcWnhgI7RoN3e19UrRKBVK7gkS rTI1NFvw=; b=ZoFqBf6OFpYo4GSADzjgevVuASRsQ0SCWXmH441d9bLIJqh7zhk /a7Z/omPoDMQsQmZhdgDtc7QMFfGWiW5s3ITYK+YvebeuGDCRaTeTkyfrGnjzbEQ l2740v68hWMbMV9uUSMV9zhv9YwY9ufIX2lZT1j4RmrODsGAS+s9aPznGwD6mbz3 wVRKcftvad7F9UcMD7hocwyz25dR2q4SBTP9FMNAZTTYLiBxTTT1rSP5qGujolgv ghtRATBhpsocu8Nt4FitGodSB8+I7aFJSFjGBBegZqLSyXGMybzWglGFxehdOGBp /+U3R5pxUwWLhWYwCKEQaXimZIxD16iJ1fA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefuddruddufedguddugecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvve fujghffffkgggtsehttdertddttddtnecuhfhrohhmpeftihgthhgrrhguucfnrgifrhgv nhgtvgcuoehrfihlsehrvggtuhhrshgvfihithhhlhgvshhsrdhnvghtqeenucggtffrrg htthgvrhhnpeefueffvdeffeeftdeutdfgjeettdduveduudefjedtkeejgfehhedvgffg ffduhfenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe hrfihlsehrvggtuhhrshgvfihithhhlhgvshhsrdhnvghtpdhnsggprhgtphhtthhopedv pdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegsuhhgshesghhnuhdrshhuphhpoh hrthdprhgtphhtthhopeejgeelleegseguvggssghughhsrdhgnhhurdhorhhg X-ME-Proxy: Feedback-ID: if7394488:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 24 Dec 2024 03:08:26 -0500 (EST) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297687 Archived-At: Jean Louis writes: > I am using development Emacs version, is patch for it? Yes, it was generated against Emacs master (commit 07cc8abca75 at the time I generated the patches). > I don't know how to apply your patch. Can you tell me step by step? To be honest I'm new to the patch workflow myself but it should be: git apply path/to/the/patch run from the repository root, on the master branch. If you want to try out icalendar-mode, do this for both patches in succession (the second patch, which provides icalendar-mode, requires the code introduced in the first). To run the test suite and verify that it works: make check (Please let me know here if you see any errors in test/lisp/calendar/icalendar-parser-tests.log) There aren't many user-facing functions yet, but if you want to test the code with some iCalendar data you have in file, do M-x find-file path/to/file; activate icalendar-mode if it doesn't activate automatically; say "y" to unfold lines if asked (Note: there is currently a bug where you may get asked multiple times; if you've already got the data in an unfolded buffer and get asked again, you can say "n"; I still need to look into this); and then, in the unfolded buffer, try calling functions like this (e.g. with M-:): (icalendar-parse-component (point-max)), with point at the start of a "BEGIN:..." line, e.g. at the start of BEGIN:VCALENDAR if you want to parse a whole calendar. (icalendar-parse-property (line-end-position)), with point at the start of a property line If you get any parse errors, please let me know here! Best, Richard