From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eddward DeVilla" Subject: Re: Re: Search all `org-agenda-files' Date: Thu, 17 Apr 2008 09:34:32 -0500 Message-ID: References: <87fxtkbrzi.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JmVCH-0000MG-BD for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 10:34:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JmVCF-0000Lz-4W for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 10:34:44 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JmVCE-0000Lw-SC for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 10:34:42 -0400 Received: from gv-out-0910.google.com ([216.239.58.184]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JmVCE-00028I-Kx for emacs-orgmode@gnu.org; Thu, 17 Apr 2008 10:34:42 -0400 Received: by gv-out-0910.google.com with SMTP id y18so5341gvf.17 for ; Thu, 17 Apr 2008 07:34:33 -0700 (PDT) In-Reply-To: <87fxtkbrzi.fsf@gollum.intra.norang.ca> Content-Disposition: inline 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: Bernt Hansen Cc: emacs-orgmode@gnu.org, Leo On Thu, Apr 17, 2008 at 7:12 AM, Bernt Hansen wrote: > If you do this in org-mode do you only search files in org-agenda-files > (and maybe their archives?). If you scatter files around a lot how do > you locate them all for the search? > > $ find $HOME -name '*.org' -o -name '*.org_archive' | xargs grep -n -e $REGEXP > > is probably simpler. I have org-mode store my agenda file list in a separate file instead of the .emacs. So I can do something like: grep ^foo$ `cat ~/.agenda_files` I can't say I've had the need to. Edd