unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Lawrence <rwl@recursewithless.net>
To: Jean Louis <bugs@gnu.support>
Cc: 74994@debbugs.gnu.org
Subject: bug#74994: Improve Emacs iCalendar support
Date: Tue, 24 Dec 2024 09:08:18 +0100	[thread overview]
Message-ID: <87bjx1fqq5.fsf@recursewithless.net> (raw)
In-Reply-To: <Z2l4cENHlenfcpSI@lco2>

Jean Louis <bugs@gnu.support> 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





      reply	other threads:[~2024-12-24  8:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-20 13:07 bug#74994: Improve Emacs iCalendar support Richard Lawrence
2024-12-20 19:47 ` bug#74994: [PATCH 1/2] New parser for iCalendar (RFC5545) Richard Lawrence
2024-12-20 19:53 ` bug#74994: [PATCH 2/2] New major mode icalendar-mode Richard Lawrence
2024-12-23  6:33 ` bug#74994: Improve Emacs iCalendar support Jean Louis
     [not found]   ` <87ttaun617.fsf@recursewithless.net>
2024-12-23 14:49     ` Jean Louis
2024-12-24  8:08       ` Richard Lawrence [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bjx1fqq5.fsf@recursewithless.net \
    --to=rwl@recursewithless.net \
    --cc=74994@debbugs.gnu.org \
    --cc=bugs@gnu.support \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).