From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nathan Neff Subject: Search from Agenda w/lock active Date: Wed, 28 Sep 2011 12:13:40 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8xhZ-0003tG-Fr for emacs-orgmode@gnu.org; Wed, 28 Sep 2011 13:13:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R8xhY-0000as-FJ for emacs-orgmode@gnu.org; Wed, 28 Sep 2011 13:13:45 -0400 Received: from mail-fx0-f41.google.com ([209.85.161.41]:34520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R8xhY-0000ZZ-AY for emacs-orgmode@gnu.org; Wed, 28 Sep 2011 13:13:44 -0400 Received: by fxh17 with SMTP id 17so1007007fxh.0 for ; Wed, 28 Sep 2011 10:13:41 -0700 (PDT) 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: emacs-orgmode I frequently use org-agenda-set-restriction-lock to concentrate on one of my org-files during work. I have a custom agenda-search command that I would like to use while at work. However, when I try to run the searches, the restriction-lock prevails over the org-agenda-files that are defined in my custom agenda command. For example, I have an agenda buffer restriction on foo.org so that I only see stuff from foo.org in my agenda TODO searches and SCHEDULED searches. But, I would like to run this search periodically through the day: ("n" "Notesmine search" search "" ((org-agenda-files (njn/notesmine-org-files)))) The problem is that the search will only search foo.org, unless I remove the buffer restriction lock on foo.org before doing the search. I see three ways to go about fixing this: 1) I can define special agenda views to only view "foo.org" 2) I can try to modify the "Notesmine search" to unlock the restriction lock before doing the search, and restore it after doing the search 3) I can set org-agenda-files to "foo.org" throughout my work day. Does anyone have advice on which one of the 3 solutions or a solution that I missed? I'm leaning towards #3, and I'm thinking that the restriction-lock feature is really just for on-the-fly agenda searches as opposed to being turned on all day long for a particular file/buffer. Thanks, --Nate