From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: how to express relative path for grandparent folder? Date: Tue, 07 Apr 2009 18:33:57 -0400 Message-ID: <21092.1239143637@alphaville.usa.hp.com> References: <49DA3AF2.8000306@gmail.com> <49DBCB50.6040101@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrJtM-00066M-B8 for emacs-orgmode@gnu.org; Tue, 07 Apr 2009 18:35:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrJtH-00063r-Qj for emacs-orgmode@gnu.org; Tue, 07 Apr 2009 18:35:39 -0400 Received: from [199.232.76.173] (port=50897 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrJtH-00063m-FB for emacs-orgmode@gnu.org; Tue, 07 Apr 2009 18:35:35 -0400 Received: from g4t0014.houston.hp.com ([15.201.24.17]:31921) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrJtH-0007n2-1j for emacs-orgmode@gnu.org; Tue, 07 Apr 2009 18:35:35 -0400 In-Reply-To: Message from "goodhei8@gmail.com" of "Tue, 07 Apr 2009 17:53:20 EDT." <49DBCB50.6040101@gmail.com> 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: "goodhei8@gmail.com" Cc: emacs-orgmode@gnu.org goodhei8@gmail.com wrote: > no, it is not working. > Since my grandparent folder is out of home folder(~) > > Any one know it? > > Thanks > > Manish wrote: > > On Mon, Apr 6, 2009 at 10:55 PM, goodhei8@gmail.com wrote: > > > >> I tried ../.., does not work. ../ works for parents folder. > >> ../.. does not work, because emacs or "setq org-agenda-files (list"? how to > >> correct it. > >> (setq org-agenda-files (list "../../Plans/PhD.org" > >> "../../Plans/Others.org" > >> )) > >> > >> > > > > Does variable org-directory help? > > > > What exactly is not working? The main problem with ../../Plans/etc is that it's a relative pathname: *it depends on your current working directory (CWD)*, so whether the agenda files can be found will depend on what your CWD is - a rather undesirable state of affairs. If you want to *initialize* the agenda files list, you can do something like this in your .emacs: (setq org-agenda-files (mapcar (function expand-file-name) (list "../../Plans/PhD.org" etc))) expand-file-name will convert the relative path names to absolute path names, so they can be found later on no matter what your CWD is. Does this help? Nick