From: Viktor Rosenfeld <listuser36@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>, emacs-orgmode@gnu.org
Subject: Re: [PATCH] ox-icalendar: fix handling of timestamps
Date: Sun, 11 Aug 2013 17:09:14 +0200 [thread overview]
Message-ID: <20130811150913.GB70709@kenny.local> (raw)
In-Reply-To: <20130811141439.GD69042@kenny.local>
Hi Nicolas,
Viktor Rosenfeld wrote:
> So I propose to append the docstring of
> `org-icalendar-export-timestamps':
>
> This variable has precedence over and overrides the behavior of
> `org-export-with-timestamps'. The setting is applied to every
> timestamp below a headline and not only to those which are isolated in
> a paragraph containing only timestamps.
>
> It can also be set with the #+OPTIONS line, e.g. "<:t".
I just realized that this is not enough. The option
`org-icalendar-with-timestamps' already changes the meaning of
`org-export-with-timestamps'. The latter only removes timestamps from
the export whereas during the iCalendar export the presence of a
timestamp determines whether the heading is exported at all. So it's
more akin to the behavior of :export: and :noexport: tags.
I would change the docstring of `org-icalendar-export-timestamps' as
such:
Non-nil means export headlines with timestamps.
It can be set to any of the following values:
t export headlines containing any kind of timestamp
`active' export headlines containing active timestamps
`inactive' export headlines containing inactive timestamps
nil do not any headlines
Note: This variable overrides the behavior of
`org-export-with-timestamps'. `org-export-with-timestamps' controls
whether a timestamp is exported or removed from the export.
`org-icalendar-export-timestamps' controls whether a headline is
exported or removed from the exported. In addition,
`org-icalendar-export-timestamps' applies to every timestamp below a
headline and not only to those which are isolated in a paragraph
containing only timestamps.
This variable can also be set with the #+OPTIONS line, e.g. "<:t".
Note that setting the variable in the OPTIONS line is useful to remove a
file from the iCalendar export even though it is displayed in the
agenda. I actually have this usecase (although right now I exclude by
tag).
Cheers,
Viktor
next prev parent reply other threads:[~2013-08-11 15:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-11 2:03 [PATCH] ox-icalendar: fix handling of timestamps Viktor Rosenfeld
2013-08-11 2:13 ` Aaron Ecay
2013-08-11 12:53 ` Viktor Rosenfeld
2013-08-15 7:55 ` Nicolas Goaziou
2013-08-11 7:30 ` Nicolas Goaziou
2013-08-11 12:42 ` Viktor Rosenfeld
2013-08-11 13:15 ` Nicolas Goaziou
2013-08-11 14:14 ` Viktor Rosenfeld
2013-08-11 15:09 ` Viktor Rosenfeld [this message]
2013-08-15 7:52 ` Nicolas Goaziou
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130811150913.GB70709@kenny.local \
--to=listuser36@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=n.goaziou@gmail.com \
/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/org-mode.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).