فهرست منبع

Agenda: Allow custom command options to work better

When the agenda buffer for an agenda series is created, this was so
far done without the options of the custom agenda command in  place.
This meant that some options would not take effect, because the only
place where that did would have an effect was during creation of that
buffer.

This commit makes sure that the global options of an agenda series are
in fact in place when the buffer is created.
Carsten Dominik 16 سال پیش
والد
کامیت
96989dc01e
2فایلهای تغییر یافته به همراه6 افزوده شده و 1 حذف شده
  1. 5 0
      lisp/ChangeLog
  2. 1 1
      lisp/org-agenda.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-06-04  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-agenda.el (org-run-agenda-series): Scope global options also
+	when creating the agenda buffer.
+
 2009-06-03  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org.el (org-adapt-indentation): Improve documentation.

+ 1 - 1
lisp/org-agenda.el

@@ -1862,7 +1862,7 @@ s   Search for keywords                 C   Configure custom agenda commands
 	   (t (error "Invalid key %c" c))))))))
 
 (defun org-run-agenda-series (name series)
-  (org-prepare-agenda name)
+  (org-let (nth 1 series) '(org-prepare-agenda name))
   (let* ((org-agenda-multi t)
 	 (redo (list 'org-run-agenda-series name (list 'quote series)))
 	 (cmds (car series))