Re: [O] Troubles with custom agenda commands

2012-09-19 Thread Sebastien Vauban
Bastien,

Bastien wrote:
> "Sebastien Vauban"
>  writes:
>
>> 1. 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.

>> 2. When firing it up (`C-c a' followed by `S'), I get the 2 blocks I was
>>expecting, but also an error:
>>
>>Buffer is read-only: #
>
> I guess this is a problem with some hooks trying to modify the buffer,
> please let me know if this happens again.

It does not anymore, and I've changed some settings as well in my .emacs. It
could have been some local customization. Cancelled!

Thanks!

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] Troubles with custom agenda commands

2012-09-18 Thread Bastien


Hi Sébastien,

"Sebastien Vauban"
 writes:

> 1. 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!

> 2. When firing it up (`C-c a' followed by `S'), I get the 2 blocks I was
>expecting, but also an error:
>
>Buffer is read-only: #

I guess this is a problem with some hooks trying to modify the buffer,
please let me know if this happens again.

-- 
 Bastien




[O] Troubles with custom agenda commands

2012-09-13 Thread Sebastien Vauban
Hello,

Trying to write my own custom agenda commands, I face a couple of weird
behaviors.

#+begin_src emacs-lisp
  (add-to-list 'org-agenda-custom-commands
   '("S" "Summary Review"
 ((agenda "")
  (todo ""))
 ((org-agenda-time-grid nil)
  (org-agenda-clockreport-mode nil)
  (org-deadline-warning-days 0
#+end_src

Having the above (which is correct, AFAICT from following the tutorial on
http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html):

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

--8<---cut here---start->8---
   S   Summary Review: set of 3 commands
--8<---cut here---end--->8---

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

2. When firing it up (`C-c a' followed by `S'), I get the 2 blocks I was
   expecting, but also an error:

--8<---cut here---start->8---
   Buffer is read-only: #
--8<---cut here---end--->8---

Can you confirm this?

Best regards,
  Seb

-- 
Sebastien Vauban