[O] How to save the state of Agenda buffer in Emacs?

2013-04-27 Thread Sergey Pashinin

Hello org-mode guys,

Each of us has his own commands set
in org-agenda-custom-commands variable.  But how can I detect
what commands were used to create the current state of Agenda
buffer (looking only at this buffer, maybe any local varibales?).

I want to save it and recreate later without dependence on
current .emacs configuration



Re: [O] How to save the state of Agenda buffer in Emacs?

2013-04-27 Thread Bastien
Hi Sergey,

Sergey Pashinin ser...@pashinin.com writes:

 Each of us has his own commands set
 in org-agenda-custom-commands variable.  But how can I detect
 what commands were used to create the current state of Agenda
 buffer (looking only at this buffer, maybe any local varibales?).

You cannot directly access to the custom command itself, but

M-: (get-text-property (point) 'org-redo-cmd) RET

will give you the name of the internal agenda command used.
This property tells the `r' keybinding what to redo.

-- 
 Bastien