From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephan Schmitt Subject: Re: Re: org-agenda-files variable Date: Mon, 18 Jan 2010 12:45:57 +0100 Message-ID: <4B5449F5.1090504@cs.tu-berlin.de> References: <447E3ED5-4D17-449C-A3C9-1F17E50DF4CF@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NWq4E-0000Gm-3y for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 06:46:46 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NWq48-0000BX-FE for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 06:46:45 -0500 Received: from [199.232.76.173] (port=36765 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NWq48-0000BK-0D for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 06:46:40 -0500 Received: from mail.cs.tu-berlin.de ([130.149.17.13]:44511) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NWq47-0007Ex-G9 for emacs-orgmode@gnu.org; Mon, 18 Jan 2010 06:46:39 -0500 Received: from localhost (localhost [127.0.0.1]) by localhost-12225.cs.tu-berlin.de (Postfix) with ESMTP id D27A03301A for ; Mon, 18 Jan 2010 12:46:36 +0100 (MET) 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: Org Mode Mailing List Hi Andrea, Also sprach andrea: > Carsten Dominik writes: > ... >> - 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. I think the function 'abbreviate-file-name' can help you. Find more information about file names in this info node: (Elisp) Top > Files > File Names > > 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? > If you mean all the org files listed in 'org-agenda-files': That's normal and necessary for all the possible interaction in the agenda buffer. But you can type 'x' in the agenda: --8<---------------cut here---------------start------------->8--- x runs the command org-agenda-exit, which is an interactive compiled Lisp function in `org-agenda.el'. It is bound to x, . (org-agenda-exit) Exit agenda by removing the window or the buffer. Also kill all Org-mode buffers which have been loaded by `org-agenda'. Org-mode buffers visited directly by the user will not be touched. --8<---------------cut here---------------end--------------->8--- hth, Stephan > Thanks and sorry for the incomplete post > > > > _______________________________________________ > 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