From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eraldo Helal Subject: Re: Handling org-file agenda dependenncies? Date: Sat, 28 Mar 2009 11:07:00 +0000 (UTC) Message-ID: References: <938fae2d0903261731p5bbc84e5v12f63e136f868474@mail.gmail.com> <20090327214655.56888aaf@newmanfamily.me.uk> 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 1LnWNq-0005pb-Dq for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:07:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnWNi-0005lh-TY for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:07:24 -0400 Received: from [199.232.76.173] (port=51535 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnWNg-0005l8-TI for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:07:17 -0400 Received: from main.gmane.org ([80.91.229.2]:52081 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LnWNg-0001IW-1t for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:07:16 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LnWNb-0003mN-AC for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 11:07:11 +0000 Received: from cpe90-146-183-229.liwest.at ([90.146.183.229]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Mar 2009 11:07:11 +0000 Received: from admin by cpe90-146-183-229.liwest.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 28 Mar 2009 11:07:11 +0000 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 Mike Newman newmanfamily.me.uk> writes: > When you use the standard commands to add/removes files from the > agenda, it will write a definition for the variable org-agenda-files to > the custom section of your .emacs file. That would still mean removing every org-file in the tree manually when wanting to make a project "inactive". > If you want to deal with trees of files, you might be better off > removing the variable from the custom section, defining it > yourself and updating it manually. The questions here is... How could one define it? I thought of a macro that I could use while in an emacs buffer. The macro should search through the attachment directory (saved as a property) of the headline and remove from the agenda all the *.org files that it finds. Comments? Suggestions? Greetings, Eraldo