Trevoke / org-gtd.el

A package for using GTD with org-mode
GNU General Public License v3.0
367 stars 45 forks source link

How to exit org-gtd-engage (agenda view) and remove all buffers loaded by it? #182

Open gusgustavsohn opened 1 year ago

gusgustavsohn commented 1 year ago

When leaving the standard org-agenda view, the user can choose to just quit (org-agenda-quit) or to exit (org-agenda-exit). See, for instance, this doc page. The difference between the two is that the second will not only remove the agenda buffer but also all buffers loaded by Emacs for the compilation of the agenda.

I tried invoking org-agenda-exit and it fails to close the buffers loaded by the org-gtd-engage. What would be the way (if there's any) to close the org-gtd-engage view so that those buffers are automatically removed?

Thanks in advance for your help.

Trevoke commented 1 year ago

Hi! org-agenda-exit is not supported at the moment, I think, because of the extra work we do to go around org-mode and org-agenda being particularly stateful. This means I have to open the buffers separately.

This is probably something we can try to fix, but it requires going deeper into org-mode's code, so the issue is likely to remain open for a while if we don't get help with it :)