From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Subject: Re: org-agenda-files variable Date: Mon, 18 Jan 2010 11:46:55 +0100 Message-ID: References: <447E3ED5-4D17-449C-A3C9-1F17E50DF4CF@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWp8o-00021o-25 for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 05:47:26 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWp8j-0001z8-9c for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 05:47:25 -0500 Received: from [199.232.76.173] (port=33173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWp8i-0001yw-Ss for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 05:47:21 -0500 Received: from lo.gmane.org ([80.91.229.12]:56779) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWp8i-00016P-CJ for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 05:47:20 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NWp8e-00010O-1f for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 11:47:16 +0100 Received: from 73-084.eduroam.rwth-aachen.de ([134.61.73.84]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jan 2010 11:47:16 +0100 Received: from andrea.crotti.0 by 73-084.eduroam.rwth-aachen.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jan 2010 11:47:16 +0100 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: emacs-orgmode@gnu.org Carsten Dominik writes: > Hi Andrea, > > 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 I'm really sorry you're right, I should write a sort for this kind of questions, I always forget important details... Anyway emacs-version: "23.1.50.1" org-version: "6.33trans" The code for the hook is this --8<---------------cut here---------------start------------->8--- (defun org-add-eventually() "Adding a file to org-agenda when saved" (interactive) (if (string= major-mode "org-mode") (org-agenda-file-to-front))) (add-hook 'before-save-hook 'org-add-eventually) --8<---------------cut here---------------end--------------->8--- And finally I have different operating systems, linux on the other machine and osx 10.6 on this one. I'm not sure when the filename gets added in the "wrong format", but maybe it's my fault, I visit the absolute path. Anyway if I can force somehow to only use relative to home paths in emacs somehow it would be also fine. By the way when I open the agenda all the org-files are visited and I end up with a lot of buffers, is that normal? Thanks and sorry for the incomplete post