Re: [O] automagically add/remove org mode buffers to agenda files list (was: Re: collect info from org files in agenda when open?)

2013-07-23 Thread Gregor Zattler
Hi Drew, org-mode-community, * Drew Adams drew.ad...@oracle.com [14. Jul. 2013]: (add-hook 'kill-buffer-hook 'org-remove-file) But the last hook does not work as espected. Instead it says Current buffer does not visit a file. But according to the documentation kill-buffer-hook is run

[O] automagically add/remove org mode buffers to agenda files list (was: Re: collect info from org files in agenda when open?)

2013-07-14 Thread Gregor Zattler
Hi Eric, org-mod users and developers, * Eric Abrahamsen e...@ericabrahamsen.net [13. Jul. 2013]: Gregor Zattler telegr...@gmx.net writes: But I wished there was also the ability to define a list of files which do only contribute to the agenda if already open (preferably with some pattern

Re: [O] automagically add/remove org mode buffers to agenda files list (was: Re: collect info from org files in agenda when open?)

2013-07-14 Thread Drew Adams
(add-hook 'kill-buffer-hook 'org-remove-file) But the last hook does not work as espected. Instead it says Current buffer does not visit a file. But according to the documentation kill-buffer-hook is run before the buffer is actually killed and the buffer is current when calling the hook.