From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: How you ORGanize yourself? (aka: Why not one file to rule'em all?) Date: Mon, 19 Apr 2010 18:08:52 +0200 Message-ID: <56459EC5-E302-472B-BFEF-A8FFA1CB6FD4@gmail.com> References: <87k4s6ur0i.fsf@fastmail.fm> <87r5mbpjkl.fsf@fastmail.fm> Mime-Version: 1.0 (Apple Message framework v936) 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 1O4AzJ-0002yl-Vw for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 06:47:30 -0400 Received: from [140.186.70.92] (port=55779 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4AzH-0002yc-Vc for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 06:47:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4AzG-0001sm-Vt for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 06:47:27 -0400 Received: from mail-ew0-f214.google.com ([209.85.219.214]:56937) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4AzG-0001sN-Q9 for emacs-orgmode@gnu.org; Tue, 20 Apr 2010 06:47:26 -0400 Received: by ewy6 with SMTP id 6so1876869ewy.32 for ; Tue, 20 Apr 2010 03:47:25 -0700 (PDT) In-Reply-To: <87r5mbpjkl.fsf@fastmail.fm> 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: Matthew Lundin Cc: Org Mode On Apr 19, 2010, at 5:07 PM, Matthew Lundin wrote: > Hi Carsten, > > Carsten Dominik writes: > >> On Apr 17, 2010, at 3:50 PM, Matt Lundin wrote: >> >>> FWIW, I've found it quite convenient to rely on filetags to organize >>> my notes. I've written a few functions that allow me to limit my >>> agenda to a subset of agenda files that share a filetag (e.g., >>> "emacs" or "writing"). This is a bit quicker than calling agenda >>> commands on all agenda files and then filtering afterward. It also >>> allows for greater focus on a particular area of work. Here are the >>> functions: >>> http://orgmode.org/worg/org-hacks.php#set-agenda-files-by-filetag >>> > > >> Hi Matt, >> >> this is very interesting! >> >> One idea: Instead of setting the value of org-agenda-files, >> you can also restrict in the following way: >> >> (org-agenda-remove-restriction-lock) >> (put 'org-agenda-files 'org-restrict my-file-list) >> (setq org-agenda-overriding-restriction 'files) >> >> The restriction sticks until you remove it with `C-c C_x >' >> >> I am not sure this will work better for your case - but maybe it >> will. > > Thanks for the tip! That's much more elegant. > > I find that (org-agenda-restriction-lock) makes subsequent calls to > my-org-agenda-files-by-filetag slow, since it refreshes the current > agenda. > > > Are there any potential pitfalls if I use (setq org-agenda-restrict > nil) > instead? I think you might mean org-agenda-remove-restriction-lock? That function does some cleanup which I think you should keep, so maybe just call it like this: (org-agenda-remove-restriction-lock 'noupdate) Otherwise, while you are inside your system, (setq org-agenda-restrict nil) is enough - only when you mix the normal subtree/file restriction with you system, you may get funny effects. - Carsten