emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <dominik@uva.nl>
To: Jan Seeger <jan.seeger@thenybble.de>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Exporting with block agenda
Date: Tue, 22 Jul 2008 12:30:22 -0700	[thread overview]
Message-ID: <2B2D6F72-0F3A-4723-8A5B-9662E5425AB9@uva.nl> (raw)
In-Reply-To: <87y73tajw8.wl%jan.seeger@thenybble.de>

Hi Jan,

I just pushed a fix to the git repo, below I include the patch.

Could you please check if this fixed the problem and report back?

Thanks.

- Carsten


diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 7a65b62..5440cca 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -1808,7 +1808,7 @@ so the export commands can easily use it."
    (let ((cmds (org-agenda-normalize-custom-commands org-agenda- 
custom-commands))
  	(pop-up-frames nil)
  	(dir default-directory)
-	pars cmd thiscmdkey files opts)
+	pars cmd thiscmdkey files opts cmd-or-set)
      (while parameters
        (push (list (pop parameters) (if parameters (pop parameters)))  
pars))
      (setq pars (reverse pars))
@@ -1816,8 +1816,9 @@ so the export commands can easily use it."
        (while cmds
  	(setq cmd (pop cmds)
  	      thiscmdkey (car cmd)
-	      opts (nth 4 cmd)
-	      files (nth 5 cmd))
+	      cmd-or-set (nth 2 cmd)
+	      opts (nth (if (listp cmd-or-set) 3 4) cmd)
+	      files (nth (if (listp cmd-or-set) 4 5) cmd))
  	(if (stringp files) (setq files (list files)))
  	(when files
  	  (eval (list 'let (append org-agenda-exporter-settings opts pars)


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, 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

  parent reply	other threads:[~2008-07-22 19:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 17:49 Exporting with block agenda Jan Seeger
2008-07-22 18:09 ` Carsten Dominik
2008-07-22 18:53   ` Jan Seeger
2008-07-22 19:10     ` Carsten Dominik
2008-07-22 19:30 ` Carsten Dominik [this message]
2008-07-22 19:59   ` Jan Seeger
2008-07-22 20:00   ` Jan Seeger
2008-07-26 13:27   ` Jan Seeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2B2D6F72-0F3A-4723-8A5B-9662E5425AB9@uva.nl \
    --to=dominik@uva.nl \
    --cc=emacs-orgmode@gnu.org \
    --cc=jan.seeger@thenybble.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).