emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Icalendar / exclude events older than 2 months
@ 2017-12-14 16:38 Jota Pin
  2018-04-26 23:34 ` Bastien
  0 siblings, 1 reply; 2+ messages in thread
From: Jota Pin @ 2017-12-14 16:38 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

Dear all,

I would like to set a hook that excludes events older than 2 months from exporting using org-icalendar-combine-agenda-files.

I do not know enough lisp for that, thanks for any help ,
Jota

[-- Attachment #2: Type: text/html, Size: 224 bytes --]

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

* Re: Icalendar / exclude events older than 2 months
  2017-12-14 16:38 Icalendar / exclude events older than 2 months Jota Pin
@ 2018-04-26 23:34 ` Bastien
  0 siblings, 0 replies; 2+ messages in thread
From: Bastien @ 2018-04-26 23:34 UTC (permalink / raw)
  To: Jota Pin; +Cc: emacs-orgmode

Hi Jota,

Jota Pin <jotapin2005@yahoo.fr> writes:

> I would like to set a hook that excludes events older than 2 months
> from exporting using org-icalendar-combine-agenda-files.
>
> I do not know enough lisp for that, thanks for any help ,

Here is an idea on how to achieve this manually.

0. Set a dedicated tag in `org-icalendar-exclude-tags'

1. Create an agenda custom command listing events olders than
   two months: ("@" tags-todo "+SCHEDULED<=\"<-2m>\"")

2. In such an agenda view, select all items in the region and
   hit ":" (org-agenda-set-tags) to add your dedicated tag

Then export the calendar should exclude these events.

I've not tested, but you get the idea.

HTH,

-- 
 Bastien

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

end of thread, other threads:[~2018-04-26 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14 16:38 Icalendar / exclude events older than 2 months Jota Pin
2018-04-26 23:34 ` Bastien

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).