From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-agenda-files variable Date: Mon, 18 Jan 2010 08:37:17 +0100 Message-ID: <447E3ED5-4D17-449C-A3C9-1F17E50DF4CF@gmail.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWmAy-0000d1-CR for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 02:37:28 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWmAs-0000bJ-Ch for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 02:37:26 -0500 Received: from [199.232.76.173] (port=34894 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWmAq-0000b8-Pu for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 02:37:21 -0500 Received: from mail-ew0-f224.google.com ([209.85.219.224]:58600) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NWmAq-0008Eu-Bl for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 02:37:20 -0500 Received: by ewy24 with SMTP id 24so3177186ewy.26 for ; Sun, 17 Jan 2010 23:37:19 -0800 (PST) In-Reply-To: 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: andrea Cc: emacs-orgmode@gnu.org Hi Andrea, On Jan 17, 2010, at 12:00 PM, andrea wrote: > > I've set up in before-hook a function to append to org-agenda-files > every org file. > Now the problem is that sometimes it adds the file in form > ~/path and sometimes in form /Users/user/path > It's annoying because on different machines I have different homes. > > What could be the reason? > I always visit those files in the "relative" way, so using the ~... This post is really incomplete, and it is impossible for anyone to give a good answer - which means that everyone has to read my answer and then your second attempt. Things that could help are: - What does your hook look like? - There is no hook called `before-hook' - Are you using a recent version of Org-mode? - Are the "different machines" different operating systems? Please, before you send an email to more than 700 people, stop for a second and check if you have supplied all the information that could possibly be useful. Thanks. - Carsten > > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode - Carsten