Implement proper handling of agenda markers when using sticky agendas
commit820a36f66cdf5db4a5a5567e89e89c11ca23d1af
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 9 Mar 2012 08:25:20 +0000 (9 09:25 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 9 Mar 2012 08:33:46 +0000 (9 09:33 +0100)
tree9bbd0cf5284df0e7fc930598d1283777be10f8aa
parentd4cd88bfe530378bc0ca407cab3be7b4a58ffeda
Implement proper handling of agenda markers when using sticky agendas

* lisp/org-agenda.el (org-toggle-sticky-agenda): Kill all agenda buffers
when toggling sticky-agendas.
(org-agenda-get-restriction-and-command): Add `C-c a C-k' as a key to
explicitly kill all agenda buffers.
(org-agenda-run-series): Remove any old agenda markers in the buffer
that is going to take the new block agenda.
(org-prepare-agenda): Reset markers before erasing the buffer anc
running `org-agenda-mode', because after that hte local variable
`org-agenda-markers' will have gone away.
(org-agenda-Quit):
(org-finalize-agenda): Install the marker resetter into
the `kill-buffer-hook'.
(org-agenda-save-markers-for-cut-and-paste): Look for markers in all
agenda buffers.
(org-agenda-kill-all-agenda-buffers): New function.
lisp/org-agenda.el