From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: batch printing of diary/agenda without Scheduled items Date: Wed, 03 Oct 2007 16:53:52 +0100 Message-ID: <87sl4sb3e7.fsf@bzg.ath.cx> References: <20051.1191405892@lap1.smtl.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Id6Xx-0001KH-3W for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 11:54:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Id6Xv-0001JL-M0 for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 11:54:00 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id6Xv-0001JB-9v for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 11:53:59 -0400 Received: from ug-out-1314.google.com ([66.249.92.175]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Id6Xu-0006YT-Qo for emacs-orgmode@gnu.org; Wed, 03 Oct 2007 11:53:59 -0400 Received: by ug-out-1314.google.com with SMTP id m4so167354uge for ; Wed, 03 Oct 2007 08:53:57 -0700 (PDT) In-Reply-To: <20051.1191405892@lap1.smtl.co.uk> (pete phillips's message of "Wed, 03 Oct 2007 11:04:52 +0100") 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: emacs-orgmode@gnu.org pete phillips writes: > However, I don't want any Scheduled items to appear (as these are not > appointments/dates as such). > > I currently use this: > > /usr/bin/emacs-snapshot -batch -l ~/.xemacs/init.el -eval "(setq european-calendar-style nil diary-mail-days 7 diary-file > \"/home/pete/diary\")" -eval '(org-batch-agenda "a" org-agenda-files (quote ("~/TODO/HOME.org" "~/TODO/SMTL.org")))' I think the right way is to add a custom agenda command: ,---- | (org-add-agenda-custom-command | '(("X" agenda "" | ((org-agenda-skip-function | (lambda() (org-agenda-skip-entry-if 'scheduled 'deadline))))))) `---- Note that this view also skips deadlines. Then call this new "X" agenda command like this: ,---- | /usr/bin/emacs-snapshot -batch -l ~/.xemacs/init.el -eval \ "(setq european-calendar-style nil diary-mail-days 7 diary-file | \"/home/pete/diary\")" -eval '(org-batch-agenda "X" org-agenda-files (quote ("~/TODO/HOME.org" "~/TODO/SMTL.org")))' `---- -- Bastien