From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eraldo Helal Subject: Handling org-file agenda dependenncies? Date: Fri, 27 Mar 2009 01:31:19 +0100 Message-ID: <938fae2d0903261731p5bbc84e5v12f63e136f868474@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0533799154==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lmzyq-0001hr-2F for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 20:31:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lmzyk-0001h3-G7 for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 20:31:26 -0400 Received: from [199.232.76.173] (port=55674 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lmzyk-0001h0-BH for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 20:31:22 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:62393) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lmzyj-0004Cz-Tz for emacs-orgmode@gnu.org; Thu, 26 Mar 2009 20:31:22 -0400 Received: by ewy4 with SMTP id 4so898944ewy.42 for ; Thu, 26 Mar 2009 17:31:19 -0700 (PDT) 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: Org-Mode --===============0533799154== Content-Type: multipart/alternative; boundary=0015174bf1f0fc19db04660ed93c --0015174bf1f0fc19db04660ed93c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I have projects with non-text files. Many of them having sub-,subsub-projects etc. (nested) Therefore I made directories for them using the project name. ///etc Each having it's own <(sub-)project name>.org file in it. My question: How can I add|remove a whole project from the agenda? e.g. If I remove project1.org file from the agenda... /project1/subprojectX.org would still be in there! Or is there a way to assign and then set a group of org.files to inactive(=remove from agenda)? Any other suggestions|methods for solving this problem? --0015174bf1f0fc19db04660ed93c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I have projects with non-text files.
Many of them having sub-,subsub-pro= jects etc. (nested)
Therefore I made directories for them using the proj= ect name. /<project name>/<subproject name>/etc
Each having = it's own <(sub-)project name>.org file in it.

My question:

How can I add|remove a whole project from the agen= da?

e.g. If I remove project1.org file from the agenda...
=C2=A0=C2=A0=C2=A0=C2=A0 /project1/subprojectX= .org would still be in there!

Or is there a way to assign and then set a group of org.files to inacti= ve(=3Dremove from agenda)?

Any other suggestions|methods for solving= this problem?
--0015174bf1f0fc19db04660ed93c-- --===============0533799154== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0533799154==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Newman Subject: Re: Handling org-file agenda dependenncies? Date: Fri, 27 Mar 2009 21:46:55 +0000 Message-ID: <20090327214655.56888aaf@newmanfamily.me.uk> References: <938fae2d0903261731p5bbc84e5v12f63e136f868474@mail.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 1LnJtF-00086B-Hk for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 17:47:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnJtD-00085r-KZ for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 17:47:01 -0400 Received: from [199.232.76.173] (port=56087 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnJtD-00085o-F6 for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 17:46:59 -0400 Received: from smtp3.enta.net ([87.127.246.178]:54993) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnJtC-00067U-UG for emacs-orgmode@gnu.org; Fri, 27 Mar 2009 17:46:59 -0400 Received: from localhost.localdomain (unknown [84.45.232.14]) by smtp3.enta.net (Postfix) with ESMTP id 5A88CB58112 for ; Fri, 27 Mar 2009 21:46:56 +0000 (GMT) In-Reply-To: <938fae2d0903261731p5bbc84e5v12f63e136f868474@mail.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: emacs-orgmode@gnu.org 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. 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. I would find it useful to be able to switch to an "*Org Agenda Files Buffer*", edit this and save it to update - but I don't suppose anyone would think it worth the effort of coding. As an interesting aside - if in Dired I rename a file that I am currently visiting, the buffer's name will be changed automatically. However, org-agenda-files will not be updated in this case. On Fri, 27 Mar 2009 01:31:19 +0100 Eraldo Helal wrote: > I have projects with non-text files. > Many of them having sub-,subsub-projects etc. (nested) > Therefore I made directories for them using the project > name. / name>//etc > Each having it's own <(sub-)project name>.org file in it. > > My question: > > How can I add|remove a whole project from the agenda? > > e.g. If I remove project1.org file from the agenda... > /project1/subprojectX.org would still be in there! > > Or is there a way to assign and then set a group of org.files to > inactive(=remove from agenda)? > > Any other suggestions|methods for solving this problem? 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 From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Lundin Subject: Re: Re: Handling org-file agenda dependenncies? Date: Sat, 28 Mar 2009 06:55:53 -0500 Message-ID: References: <938fae2d0903261731p5bbc84e5v12f63e136f868474@mail.gmail.com> <20090327214655.56888aaf@newmanfamily.me.uk> 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 1LnX8s-0007hN-VF for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:56:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LnX8n-0007Y2-FM for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:56:01 -0400 Received: from [199.232.76.173] (port=38257 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LnX8n-0007Xs-8p for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:55:57 -0400 Received: from out2.smtp.messagingengine.com ([66.111.4.26]:55926) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LnX8m-0006Z9-T1 for emacs-orgmode@gnu.org; Sat, 28 Mar 2009 07:55:57 -0400 In-Reply-To: (Eraldo Helal's message of "Sat\, 28 Mar 2009 11\:07\:00 +0000 \(UTC\)") 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: Eraldo Helal Cc: emacs-orgmode@gnu.org Hi Eraldo, Eraldo Helal writes: > 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 think you could set something like the following in your .emacs file: --8<---------------cut here---------------start------------->8--- (load-library "find-lisp") (setq org-agenda-files (append (find-lisp-find-files "~/directory1" "\.org$") (find-lisp-find-files "~/directory2" "\.org$") (find-lisp-find-files "~/directory3" "\.org$"))) --8<---------------cut here---------------end--------------->8--- This will search the directories above recursively for org files. Whenever you want to remove a project from your agenda, simply delete the appropriate line and evaluate the expression. I'd imagine someone else can think of a way to do this more economically, though. Best, Matt From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Handling org-file agenda dependenncies? Date: Mon, 30 Mar 2009 09:54:30 +0200 Message-ID: <57D6D6BD-2244-4950-9AFF-0B51F3B160F6@gmail.com> References: <938fae2d0903261731p5bbc84e5v12f63e136f868474@mail.gmail.com> <20090327214655.56888aaf@newmanfamily.me.uk> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LoCKN-0000KV-1T for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 03:54:39 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LoCKI-0000KA-2h for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 03:54:38 -0400 Received: from [199.232.76.173] (port=38675 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LoCKH-0000K7-UO for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 03:54:33 -0400 Received: from mail-ew0-f160.google.com ([209.85.219.160]:65072) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LoCKH-0004kX-EJ for emacs-orgmode@gnu.org; Mon, 30 Mar 2009 03:54:33 -0400 Received: by ewy4 with SMTP id 4so2018130ewy.42 for ; Mon, 30 Mar 2009 00:54:32 -0700 (PDT) In-Reply-To: <20090327214655.56888aaf@newmanfamily.me.uk> 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: Mike Newman Cc: emacs-orgmode@gnu.org On Mar 27, 2009, at 10:46 PM, Mike Newman wrote: > 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. > > 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. > > I would find it useful to be able to switch to an "*Org Agenda Files > Buffer*", edit this and save it to update - but I don't suppose anyone > would think it worth the effort of coding. This is already possible. If org-agenda-files points to a single file instead of a list, that file should contain the list of agenda files, one per line. - Carsten > > As an interesting aside - if in Dired I rename a file that I am > currently visiting, the buffer's name will be changed automatically. > However, org-agenda-files will not be updated in this case. > > On Fri, 27 Mar 2009 01:31:19 +0100 > Eraldo Helal wrote: > >> I have projects with non-text files. >> Many of them having sub-,subsub-projects etc. (nested) >> Therefore I made directories for them using the project >> name. /> name>//etc >> Each having it's own <(sub-)project name>.org file in it. >> >> My question: >> >> How can I add|remove a whole project from the agenda? >> >> e.g. If I remove project1.org file from the agenda... >> /project1/subprojectX.org would still be in there! >> >> Or is there a way to assign and then set a group of org.files to >> inactive(=remove from agenda)? >> >> Any other suggestions|methods for solving this problem? > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode