[O] [BUG] Re: Troubles with custom agenda commands

2013-09-11 Thread Sebastien Vauban



Hi Bastien,

Sebastien Vauban wrote:
 Bastien wrote:
 Sebastien Vauban writes:

 When getting to the agenda dispatcher (`C-c a'), I see:

S   Summary Review: set of 3 commands

   while I only have... 2 commands (`agenda' and `todo'). Why?

 This is a bug, fixed.  Thanks for spotting this!

 Tested. Confirmed OK.

The above problem is back with the following configuration (tested with
emacsĀ -Q):

--8---cut here---start-8---
(add-to-list 'org-agenda-custom-commands
 '(C Clock Review
   ((agenda 
((org-agenda-clockreport-mode t)
 (org-agenda-overriding-header Clocking Review)
 (org-agenda-show-log 'clockcheck)
 (org-agenda-span 'day))) t)))
--8---cut here---end---8---

Org writes:

--8---cut here---start-8---
C   Clock Review  : set of 2 commands
n   Agenda and all TODO's: set of 2 commands
--8---cut here---end---8---

while there is only 1 command to be run (the agenda view)!?

Note, surprisingly, 2 extra spaces before the :, while they're not in the
customized header string...

Best regards,
  Seb

-- 
Sebastien Vauban





Re: [O] [BUG] Re: Troubles with custom agenda commands

2013-09-11 Thread Sebastien Vauban
Hi Bastien,

Sebastien Vauban wrote:
 Sebastien Vauban wrote:
 Bastien wrote:
 Sebastien Vauban writes:

 When getting to the agenda dispatcher (`C-c a'), I see:

S   Summary Review: set of 3 commands

   while I only have... 2 commands (`agenda' and `todo'). Why?

 This is a bug, fixed.  Thanks for spotting this!

 Tested. Confirmed OK.

 The above problem is back with the following configuration (tested with
 emacsĀ -Q):

 (add-to-list 'org-agenda-custom-commands
  '(C Clock Review
((agenda 
 ((org-agenda-clockreport-mode t)
  (org-agenda-overriding-header Clocking Review)
  (org-agenda-show-log 'clockcheck)
  (org-agenda-span 'day))) t)))

 Org writes:

 C   Clock Review  : set of 2 commands
 n   Agenda and all TODO's: set of 2 commands

 while there is only 1 command to be run (the agenda view)!?

Please IGNORE IT!  This bug is due to a faulty placement of the parenthesis.

It should have been:

 (add-to-list 'org-agenda-custom-commands
  '(C Clock Review
((agenda 
 ((org-agenda-clockreport-mode t)
  (org-agenda-overriding-header Clocking Review)
  (org-agenda-show-log 'clockcheck)
  (org-agenda-span 'day) t)
   ^^
Sorry for this false alarm.

 Note, surprisingly, 2 extra spaces before the :, while they're not in the
 customized header string...

Best regards,
  Seb

-- 
Sebastien Vauban