From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: iCalendar export using wrong directory? Date: Tue, 6 Apr 2010 12:01:17 +0200 Message-ID: <23BE7D79-B904-4E4C-BE24-803FB739B2A6@gmail.com> References: <20100324022727.63FD832001C@mail.dagertech.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nz5bC-0004Ka-4z for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 06:01:34 -0400 Received: from [140.186.70.92] (port=44670 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nz5b1-0004Jf-FW for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 06:01:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nz5az-0002vg-Kf for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 06:01:23 -0400 Received: from ey-out-1920.google.com ([74.125.78.148]:22115) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nz5ay-0002vX-Jn for emacs-orgmode@gnu.org; Tue, 06 Apr 2010 06:01:21 -0400 Received: by ey-out-1920.google.com with SMTP id 4so270248eyg.34 for ; Tue, 06 Apr 2010 03:01:19 -0700 (PDT) In-Reply-To: <20100324022727.63FD832001C@mail.dagertech.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "David A. Gershman" Cc: Org-Mode List Hi David, On Mar 24, 2010, at 3:27 AM, David A. Gershman wrote: > > Hello, > > My .emacs includes these lines: > '(org-agenda-files (quote ("projects.org" "calendar.org"))) > '(org-directory "~/") > '(org-combined-agenda-icalendar-file "~/webdav/org.ics") > > ~/webdav is used for my MobileOrg staging area also. In my > 'org-directory' are my source .org files including one called > 'calendar.org'. My ~/webdav directory normally also has the 'staged' > version for MobileOrg. During debugging this problem though, I > removed > it from ~/webdav so I have only the source in ~/. > > In short, directory state is: > > ~/ > projects.org > calendar.org > webdav/ > projects.org > checksum.dat > index.org > {no calendar.org} > > When I issue 'org-export-icalendar-combine-agenda-files', I get the > following error: > > non-existent agenda file calendar.org. [R]emove from list or [A]bort? > > This leads me to believe, 'org-export-icalendar-combine-agenda- > files' is > using files in the '~/webdav' directory and not my source files for > the > export. Is this how it's supposed to work?? i.e. use the "path" > included in 'org-combined-agenda-icalendar-file'? org-agenda-files should contain absolute files names, not relative ones. The best way to make this variable is to use `C-c [' in the buffers you want to add. So you should clear the list first, then add the files you want again. Or, write (setq org-agenda-files '("~/calendar.org" "~/projects.org")) but note that this will then always overwrite this variable. Even if you add files later with `C-c [', the list will be baack to the old value with the next Emacs restart. HTH - Carsten