From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: bug in org-icalendar--combine-files? Date: Sat, 07 Jun 2014 22:13:56 +0200 Message-ID: <874mzwxyt7.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtMzY-0008Oy-5A for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 16:13:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WtMzQ-0001ay-C8 for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 16:13:28 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:54661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WtMzQ-0001ai-5Y for emacs-orgmode@gnu.org; Sat, 07 Jun 2014 16:13:20 -0400 In-Reply-To: (Chris Poole's message of "Sat, 7 Jun 2014 20:28:53 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Chris Poole Cc: "emacs-orgmode@gnu.org" Hello, Chris Poole 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