From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Question about org-search-view and org-occur-in-agenda-files Date: Mon, 25 Jul 2011 21:20:26 -0400 Message-ID: <87tya94z39.fsf@norang.ca> References: <4e2db626.1451640a.13da.fffff268@mx.google.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42837) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlWJy-0004cL-NT for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 21:20:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlWJx-0005bC-GP for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 21:20:30 -0400 Received: from mho-04-ewr.mailhop.org ([204.13.248.74]:63438 helo=mho-02-ewr.mailhop.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlWJx-0005az-EX for emacs-orgmode@gnu.org; Mon, 25 Jul 2011 21:20:29 -0400 In-Reply-To: (suvayu ali's message of "Mon, 25 Jul 2011 22:07:24 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: suvayu ali Cc: org-mode mailing list suvayu ali writes: > Hi Darlan, > > On Mon, Jul 25, 2011 at 8:29 PM, Darlan Cavalcante Moreira > wrote: >> You can probably use custom agenda commands for this. See the documentation >> for the org-agenda-custom-commands and the corresponding section in the >> manual [1]. > > Custom agenda commands do not support prompting for search phrases. > >> You can set the org-agenda-files and >> org-agenda-text-search-extra-files to point to the old project for >> some custom search. >> You can also restrict agenda to a single file with C-u C-c C-x <. Subsequent agenda commands and searches will only use the current file until you remove the restriction with C-c C-x > -Bernt >> > > However the above comment gave me an idea. I could use a custom function > to wrap around the search functions and use let to bind the value of > agenda-files and org-agenda-text-search-extra-files as needed. > > Thank you very much!