From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Exporting with block agenda Date: Tue, 22 Jul 2008 11:09:22 -0700 Message-ID: References: <87y73tajw8.wl%jan.seeger@thenybble.de> Mime-Version: 1.0 (Apple Message framework v926) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KLMIn-0002NU-8y for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 14:09:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KLMIm-0002Lh-3n for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 14:09:32 -0400 Received: from [199.232.76.173] (port=44420 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KLMIl-0002LY-Jy for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 14:09:31 -0400 Received: from korteweg.uva.nl ([146.50.98.70]:1393) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KLMIl-0002IJ-Li for emacs-orgmode@gnu.org; Tue, 22 Jul 2008 14:09:31 -0400 In-Reply-To: <87y73tajw8.wl%jan.seeger@thenybble.de> 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: Jan Seeger Cc: emacs-orgmode On Jul 22, 2008, at 10:49 AM, Jan Seeger wrote: > Greetings, > > I almost went crazy today trying to export my block agenda. I had my > agenda set up like this: > > (setq org-agenda-custom-commands '( > ("c" "" > ((todo "NEXT|TODO") (agenda)) > ((org-agenda-with-colors nil) > (ps-font-size '(8 . 8)) > (org-agenda-compact-blocks t) > (ps-landscape-mode t) > (ps-number-of-columns 2) > ) > ("/tmp/todo-list.ps") > ) > )) > > , which seemed correct (show todos and an agenda together and export > it to the /tmp/todo-list.ps file. However, orgmode refused to export > the agenda. Looking at org-agenda.el, I edebugged > org-batch-store-agenda-views, and saw that in line 1774, block agendas > are (seemingly) not parsed correctly. With the syntax from the > documentation and! customize-variable, file and settings are the third > and fourth elements respectively. > > So I inserted a nil between the commands and the settings, and my > block agenda miraculously exported. > > Is the above setting wrong The setting is wrong. Parameters in org-agenda-custom-commands are identified by position, and your file list is seen as an attempt to set options (variables) for the command set. You need nil there. Can you identify a point in the documentation that made you assume you could write things a you did? Thanks. - Carsten > or is that a bug in org-mode? (I'm using > 6.04c with emacs 22.2-r2). > > Regards, > Jan Seeger > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode