On Sat, Feb 05 2011, Matt Lundin wrote:

> This patch breaks custom commands --- i.e., if one binds org-agenda-span
> in a custom command, it seems to be overridden by the span of whatever
> agenda command one last called (i.e., org-agenda-current-span).
>
> Steps to replicate:
>
> 1. (setq org-agenda-span 'day)
>
> 2. M-x org-agenda-list
>
> 3. Check the value of org-agenda-current-span => day
>
> 4. Call the following custom command:
>
> (setq org-agenda-custom-commands
>       '(("c" "Calendar" agenda ""
>        ((org-agenda-span 'week)
>         (org-agenda-start-on-weekday 0)       
>         (org-agenda-time-grid nil)
>         (org-agenda-entry-types '(:timestamp :sexp))
>         (org-agenda-prefix-format " %-12:t ")
>         (org-deadline-warning-days 0)
>         (org-agenda-include-all-todo nil)
>         (org-agenda-repeating-timestamp-show-all t)
>         ))))
>
> This results in only a day view because org-agenda-current-span is still
> 'day.

Yes, this has already been reported, I just did not had the time to find
a proper fix.

-- 
Julien Danjou
❱ http://julien.danjou.info

Attachment: pgppDM5P7afRW.pgp
Description: PGP signature

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to