Parcourir la source

Agenda: Have series options available when finalizing agenda.

An agenda series can have a set of global options.  Matt Lundin
reported that these options to not work completely.  There reason was
that, when calling `org-finalize-agenda' for a series, the dynamic
binding of those options was already off again.  This commit makes
sure that these bindings are available also during this final step.
Carsten Dominik il y a 16 ans
Parent
commit
52ee4c0bd2
2 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 3 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-agenda.el

+ 3 - 0
lisp/ChangeLog

@@ -1,5 +1,8 @@
 2009-01-06  Carsten Dominik  <carsten.dominik@gmail.com>
 
+	* org-agenda.el (org-run-agenda-series): Have series options set
+	when finalizing the agenda.
+
 	* org-exp.el (org-export-format-source-code-or-example): Protect
 	the converted examples.
 

+ 1 - 1
lisp/org-agenda.el

@@ -1713,7 +1713,7 @@ s   Search for keywords                 C   Configure custom agenda commands
     (widen)
     (setq org-agenda-redo-command redo)
     (goto-char (point-min)))
-  (org-finalize-agenda))
+  (org-let (nth 1 series) '(org-finalize-agenda)))
 
 ;;;###autoload
 (defmacro org-batch-agenda (cmd-key &rest parameters)