GNU bug report logs - #74994
Improve Emacs iCalendar support

Previous Next

Package: emacs;

Reported by: Richard Lawrence <rwl <at> recursewithless.net>

Date: Fri, 20 Dec 2024 13:08:02 UTC

Severity: wishlist

Full log


Message #8 received at 74994 <at> debbugs.gnu.org (full text, mbox):

From: Richard Lawrence <rwl <at> recursewithless.net>
To: 74994 <at> debbugs.gnu.org
Subject: [PATCH 1/2] New parser for iCalendar (RFC5545)
Date: Fri, 20 Dec 2024 20:47:48 +0100
[Message part 1 (text/plain, inline)]
Tags: patch

Here is a draft patch implementing a new parser for iCalendar data. This
code implements the grammar of RFC5545, functions to parse this grammar
to an abstract syntax tree, functions to validate syntax trees,
functions to print syntax trees, and a test suite for the parser and
printer functions containing all the examples from RFC5545.  The code is
organized as follows:

lisp/calendar/icalendar-ast.el: defines the abstract syntax tree,
  including the validation functions
lisp/calendar/icalendar-macs.el: defines the icalendar-define-param,
  icalendar-define-property, and icalendar-define-component macros
lisp/calendar/icalendar-parser.el: defines the parsing and printing
  functions, and all of the individual parameters, properties, and
  components defined in the RFC.
test/lisp/calendar/icalendar-parser-tests.el: the test suite.
  All the tests pass on my machine with Emacs 29.1 and with Emacs master.

Looking forward to your feedback! This is a (very?) large patch, so
please let me know if it would be better to submit it another way.

Thanks,
Richard

[0001-New-parser-for-RFC5545.patch (text/patch, attachment)]

This bug report was last modified 99 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.