Gnus development mailing list
 help / color / mirror / Atom feed
* Gnus calendar and org-mode integration
@ 2013-10-02 10:03 Adam Sjøgren
  2013-10-02 12:32 ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Adam Sjøgren @ 2013-10-02 10:03 UTC (permalink / raw)
  To: ding

I have been using the ical-event and gnus-calendar-org stuff to handle
all my calendaring needs the last couple of months.

It is really nice to finally be able to do all email and calendaring at
work in Gnus - great work!

I started using calfw which can format org-mode calendars in pretty week
(and other) views:

 * https://github.com/kiwanami/emacs-calfw

Especially with these settings:

  (setq cfw:fchar-junction ?┼
        cfw:fchar-vertical-line ?│
        cfw:fchar-horizontal-line ?─
        cfw:fchar-left-junction ?├
        cfw:fchar-right-junction ?┤
        cfw:fchar-top-junction ?┬
        cfw:fchar-top-left-corner ?╭
        cfw:fchar-top-right-corner ?╮)

There are a few minor snags, though:

 * Repetition on specific weekdays doesn't seem to work. I.e. ":RRULE:
   FREQ=MONTHLY;INTERVAL=6;BYDAY=1FR", which is supposed to be the first
   friday every 6 months (I think), or ":RRULE:
   FREQ=MONTHLY;INTERVAL=1;BYDAY=3MO" which is supposed to be the third
   Monday every month. Is this an org-mode thing or...?

 * Ought the To: and Cc: fields from invitations be transferred to the
   calendar.org file when you click "Export to Org", so you can see why
   was invited?


  Best regards,

    Adam

-- 
 "The forensic marvel has reduced my logic to shambles."       Adam Sjøgren
                                                          asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnus calendar and org-mode integration
  2013-10-02 10:03 Gnus calendar and org-mode integration Adam Sjøgren
@ 2013-10-02 12:32 ` Eric S Fraga
  2013-10-02 13:53   ` Jan Tatarik
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2013-10-02 12:32 UTC (permalink / raw)
  To: ding

Adam Sjøgren <asjo@koldfront.dk> writes:

[...]

> There are a few minor snags, though:
>
>  * Repetition on specific weekdays doesn't seem to work. I.e. ":RRULE:
>    FREQ=MONTHLY;INTERVAL=6;BYDAY=1FR", which is supposed to be the first
>    friday every 6 months (I think), or ":RRULE:
>    FREQ=MONTHLY;INTERVAL=1;BYDAY=3MO" which is supposed to be the third
>    Monday every month. Is this an org-mode thing or...?

Org doesn't support these types of repetitions directly.  These are
possible using the sexp support, making use of diary-float.  See the
(org) Timestamps section of the manual.  I don't think the gnus calendar
to org support makes any use of diary-float?  Probably asking a lot...

>  * Ought the To: and Cc: fields from invitations be transferred to the
>    calendar.org file when you click "Export to Org", so you can see why
>    was invited?

This would indeed be nice...

-- 
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.3.50.1 + Ma Gnus v0.8 + evil 1.0-dev
: BBDB version 3.02 (2013-07-28 21:43:26 -0500)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnus calendar and org-mode integration
  2013-10-02 12:32 ` Eric S Fraga
@ 2013-10-02 13:53   ` Jan Tatarik
  2013-10-03  6:03     ` Eric S Fraga
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Tatarik @ 2013-10-02 13:53 UTC (permalink / raw)
  To: ding

On Wed, Oct 02 2013, Eric S Fraga wrote:

> Adam Sjøgren <asjo@koldfront.dk> writes:

> [...]

>> There are a few minor snags, though:

>>  * Repetition on specific weekdays doesn't seem to work. I.e. ":RRULE:
>>    FREQ=MONTHLY;INTERVAL=6;BYDAY=1FR", which is supposed to be the first
>>    friday every 6 months (I think), or ":RRULE:
>>    FREQ=MONTHLY;INTERVAL=1;BYDAY=3MO" which is supposed to be the third
>>    Monday every month. Is this an org-mode thing or...?

> Org doesn't support these types of repetitions directly.  These are
> possible using the sexp support, making use of diary-float.  See the
> (org) Timestamps section of the manual.  I don't think the gnus calendar
> to org support makes any use of diary-float?  Probably asking a lot...

The ical->org export only uses the native org timestamps, so only the
simplest recurring events will work. E.g. 'every Friday between 2pm and
3pm', or 'every other Monday'.

Things as 'third Monday every month' are indeed doable using the diary
sexp timestamps. I've been looking into this some months ago, and I
couldn't find any way to specify a time with such a timestamp. Couldn't
do 'third Monday every month, at 10am', I was only able to generate
all-day events this way. Could be I was doing it wrong, if anybody knows
how to do it, I'll be happy to hear about it.

The sheer amount of possibilities/combinations supported by the ical
format kept me from even trying to generate the diary sexps. Looked like
a lot of work with uncertain results...


>>  * Ought the To: and Cc: fields from invitations be transferred to the
>>    calendar.org file when you click "Export to Org", so you can see why
>>    was invited?

The ical event contains a list of attendees, so that should be possible.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnus calendar and org-mode integration
  2013-10-02 13:53   ` Jan Tatarik
@ 2013-10-03  6:03     ` Eric S Fraga
  2013-10-03 10:59       ` Adam Sjøgren
  0 siblings, 1 reply; 5+ messages in thread
From: Eric S Fraga @ 2013-10-03  6:03 UTC (permalink / raw)
  To: ding

Jan Tatarik <jan.tatarik@gmail.com> writes:

[...]

> Things as 'third Monday every month' are indeed doable using the diary
> sexp timestamps. I've been looking into this some months ago, and I
> couldn't find any way to specify a time with such a timestamp. Couldn't

You cannot, as far as I know.  However, you can put the time in the
headline with the date in the sexp (not in the headline), as the example
in the info manual shows.  Not ideal but it does work.

> The sheer amount of possibilities/combinations supported by the ical
> format kept me from even trying to generate the diary sexps. Looked like
> a lot of work with uncertain results...

Yes, I agree.  I don't think I have ever received an email with a
calendar event that is not of the /simple/ variety...  but maybe that's
me!

-- 
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.3.50.1 + Ma Gnus v0.8 + evil 1.0-dev
: BBDB version 3.02 ($Date: 2013/05/15 13:17:58 $)




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Gnus calendar and org-mode integration
  2013-10-03  6:03     ` Eric S Fraga
@ 2013-10-03 10:59       ` Adam Sjøgren
  0 siblings, 0 replies; 5+ messages in thread
From: Adam Sjøgren @ 2013-10-03 10:59 UTC (permalink / raw)
  To: ding

Eric S Fraga <e.fraga@ucl.ac.uk> writes:

> Jan Tatarik <jan.tatarik@gmail.com> writes:

>> The sheer amount of possibilities/combinations supported by the ical
>> format kept me from even trying to generate the diary sexps. Looked like
>> a lot of work with uncertain results...

> Yes, I agree.  I don't think I have ever received an email with a
> calendar event that is not of the /simple/ variety...  but maybe that's
> me!

At my workplace the examples I gave (3rd Monday of every month, 1st
Friday every 6 months) aren't common, but they do exist.

It seems kind of silly to have the calendar show a meeting with your
boss on a Saturday. I, for one, am _not_ going to show up :-)

Basically I don't need the full flexibility (I think), but a larger
subset than today. And perhaps a warning or something that "this is too
complex", so you know when you look at an entry that it might be wrong.

Anyway, the code is a huge step forward :-)


  Best regards,

    Adam

-- 
 "Bara russin, ingen kaka"                                    Adam Sjøgren
                                                         asjo@koldfront.dk




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-03 10:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-02 10:03 Gnus calendar and org-mode integration Adam Sjøgren
2013-10-02 12:32 ` Eric S Fraga
2013-10-02 13:53   ` Jan Tatarik
2013-10-03  6:03     ` Eric S Fraga
2013-10-03 10:59       ` Adam Sjøgren

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 NNTP newsgroup(s).