From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Org-agenda-custom-commands, restrict Agenda to file/files? Date: Thu, 6 Oct 2011 15:45:42 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:53719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBoGz-0005kx-Eb for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 09:46:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RBoGy-00008F-3N for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 09:46:05 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:39214) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RBoGx-000088-Sw for emacs-orgmode@gnu.org; Thu, 06 Oct 2011 09:46:04 -0400 Received: by bkbzs2 with SMTP id zs2so3898659bkb.0 for ; Thu, 06 Oct 2011 06:46:02 -0700 (PDT) In-Reply-To: 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: =?ISO-8859-1?Q?Gustav_Wikstr=F6m?= Cc: emacs-orgmode@gnu.org 2011/10/6 Gustav Wikstr=F6m : > I want to simplify this with a custom-command. And here comes my problem, > what is the option to restrict the agenda to a certain file? Changing the > org-agenda-files list does not seem to make a difference when using a cus= tom > agenda. Something like this should work. The variable list below is like a let bind= ing. ("" "Some custom command" "..." ((org-agenda-files (list "file1" "file2")) ())) HTH --=20 Suvayu Open source is the future. It sets us free.