org-gtd.el icon indicating copy to clipboard operation
org-gtd.el copied to clipboard

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

Open gusgustavsohn opened this issue 2 years ago • 1 comments

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.

gusgustavsohn avatar Jun 15 '23 23:06 gusgustavsohn

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 :)

Trevoke avatar Jul 01 '23 17:07 Trevoke