From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Girard Subject: Re: How to trigger the clockcheck in an agenda view. Date: Tue, 10 Sep 2013 17:07:15 +0200 Message-ID: References: <51E688F4.8090601@online.de> <51F617EF.4010600@online.de> <86siyx4uqm.fsf@somewhere.org> <51F8BBF6.2020803@online.de> <8661vjhnqy.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57213) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJPXb-0007Pg-Dh for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 11:07:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJPXW-0003pD-HN for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 11:07:43 -0400 Received: from mail-lb0-x22a.google.com ([2a00:1450:4010:c04::22a]:56673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJPXW-0003p8-93 for emacs-orgmode@gnu.org; Tue, 10 Sep 2013 11:07:38 -0400 Received: by mail-lb0-f170.google.com with SMTP id w7so6367580lbi.15 for ; Tue, 10 Sep 2013 08:07:35 -0700 (PDT) In-Reply-To: <8661vjhnqy.fsf@somewhere.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode 2013/8/5 Sebastien Vauban : > > 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 (append 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---