emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug in org-icalendar--combine-files?
@ 2014-06-07 19:28 Chris Poole
  2014-06-07 20:13 ` Nicolas Goaziou
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Poole @ 2014-06-07 19:28 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Hey,

I wrote a function to export scheduled, done tasks to iCalendar[1].

All works well, but I noticed that before the function is run, my agenda
views only show upcoming scheduled tasks (I globally have agendas not show
done scheduled or deadline items).

After org-icalendar--combine-files does its stuff, and works correctly, but
my agendas suddenly have items such as "Sched.11x: DONE do something",
despite it being a DONE task that I marked as complete over a week ago.

Any idea why org-agenda-skip-scheduled-if-done is seemingly being
overridden to nil?
I have tried explicitly setting this value to true for the custom agenda
view, but it doesn't help.

Any idea what's going on here?


Cheers,
Chris

[1]:
https://github.com/chrispoole643/org-gtd/blob/443d43879d944bcec47af0ddac3d542bce6b2269/org-gtd.el#L146

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

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

* Re: bug in org-icalendar--combine-files?
  2014-06-07 19:28 bug in org-icalendar--combine-files? Chris Poole
@ 2014-06-07 20:13 ` Nicolas Goaziou
  0 siblings, 0 replies; 2+ messages in thread
From: Nicolas Goaziou @ 2014-06-07 20:13 UTC (permalink / raw)
  To: Chris Poole; +Cc: emacs-orgmode@gnu.org

Hello,

Chris Poole <lists@chrispoole.com> writes:

> I wrote a function to export scheduled, done tasks to iCalendar[1].
>
> All works well, but I noticed that before the function is run, my agenda
> views only show upcoming scheduled tasks (I globally have agendas not show
> done scheduled or deadline items).
>
> After org-icalendar--combine-files does its stuff, and works correctly, but
> my agendas suddenly have items such as "Sched.11x: DONE do something",
> despite it being a DONE task that I marked as complete over a week ago.
>
> Any idea why org-agenda-skip-scheduled-if-done is seemingly being
> overridden to nil?
> I have tried explicitly setting this value to true for the custom agenda
> view, but it doesn't help.
>
> Any idea what's going on here?

"ox-icalendar" ignores "org-agenda" functions. I think a better way to
achieve what you want would be to

  1. generate an agenda view with exactly the tasks you want,
  2. call `org-icalendar-export-current-agenda' on this buffer.


Regards,

-- 
Nicolas Goaziou

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

end of thread, other threads:[~2014-06-07 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-07 19:28 bug in org-icalendar--combine-files? Chris Poole
2014-06-07 20:13 ` Nicolas Goaziou

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