From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: tags/search on specific files Date: Sun, 09 Jan 2011 06:25:26 -0500 Message-ID: <874o9i9v4p.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=35953 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbtOt-0000aC-U4 for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 06:25:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbtOs-0003Vy-7u for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 06:25:31 -0500 Received: from mho-01-ewr.mailhop.org ([204.13.248.71]:41574) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbtOs-0003Vj-3Q for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 06:25:30 -0500 In-Reply-To: (knubee@gmail.com's message of "Sun, 9 Jan 2011 05:58:41 +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: knubee Cc: emacs-orgmode@gnu.org knubee writes: > i would like to use some org-mode functionality for linking, > tagging, and searching files that are not specified in the > org-mode variables of .emacs file. > > i thought that i would be able to create a file, work on it in > org-mode to create links and tags, and then be able to follow > those links and search on those tags. after working on such a > file, linking works fine. but although running "C-c \" [tag] > does "highlight" lines that have the tag, it also displays all > the other items. (by contrast, "C-c a m" [tag] will display only > the specific tagged items for the agenda file(s) specified in > .emacs) > > is there a way to do this that i am missing? either by providing > a file name as an argument or some other command that will return > such a view for the active buffer. (one reason i don't want to > add the specific file to the list of files that org-mode > automatically tracks is that i want to restrict my searching of > tags to specific files. but maybe i am not thinking about this > the right way.) > > thanks. Hi knubee, As long as your file is in org-mode that should work fine. You can run an agenda just on the current file in multiple ways: C-c a 1 m will run the tags match command on the current file only If you want to use multiple agenda commands you can enable the agenda restriction lock as follows - on the first line of an org-mode file (before the first heading) do C-c C-x < You do this on a #+STARTUP: line or on a blank line before the first heading All subsequent agenda commands will only consider this one file until you remove the restriction lock with C-c C-x > HTH, Bernt