[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] How to trigger the clockcheck in an agenda view.

From: Nicolas Girard
Subject: Re: [O] How to trigger the clockcheck in an agenda view.
Date: Tue, 10 Sep 2013 17:07:15 +0200

2013/8/5 Sebastien Vauban <address@hidden>:
> Except the above, I definitely don't understand why it wouldn't work for you.
> Can you reproduce the problem with a minimal Emacs config file (adding the
> require of `org' and `org-agenda' before)?

I think I understand why Rainer has a problem.

According to the docstring from `org-agenda-custom-commands', there
are two acceptable syntaxes for defining a command:
- the "simple" one : (key desc type match settings files)
- and the "complex" or "composite" one : (key desc (cmd1 cmd2 ...)
general-settings-for-whole-set files).

Now, the following code defines two commands, who are functionally
identical, but syntactically different. The first one uses the "simple"
syntax, and the second one, the "complex" syntax.

If you evaluate the code and trigger the agenda, you'll see that the
first command *doesn't* work as expected, while the second works.

(I just borrowed your scissors to delimit my code, hope you don't mind ;-) )

--8<---------------cut here---------------start------------->8---
  (setq org-agenda-custom-commands nil)
  (setq org-agenda-custom-commands
         org-agenda-custom-commands '(
         ("G" "Good: Clock Review"
          ((agenda ""
                   ((org-agenda-show-log 'clockcheck)
                    (org-agenda-clockreport-mode t)))))
         ("B"  "Bad: Clock Review"
          agenda ""
          ((org-agenda-show-log 'clockcheck)
           (org-agenda-clockreport-mode t))))))
--8<---------------cut here---------------end--------------->8---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]