* Global agenda views creates lots of buffers.
@ 2010-01-14 15:17 Óscar Fuentes
2010-01-15 3:57 ` Darlan Cavalcante Moreira
2010-01-15 5:50 ` Carsten Dominik
0 siblings, 2 replies; 4+ messages in thread
From: Óscar Fuentes @ 2010-01-14 15:17 UTC (permalink / raw
To: emacs-orgmode
I have quite a few org files in org-agenda-files. When a global agenda
view is displayed (the Global TODO, for instance) org-mode visits all
the files and keeps the buffer for each of them. I'll prefer this
behavior:
for each file in org-agenda-files
have we a buffer containing it?
no -> create a buffer and visit it
do our stuff (gather TODO items, etc)
if we were not visiting the file
kill the buffer that contains it.
Is there a reason for keeping all those buffers around?
--
Óscar
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Global agenda views creates lots of buffers.
2010-01-14 15:17 Global agenda views creates lots of buffers Óscar Fuentes
@ 2010-01-15 3:57 ` Darlan Cavalcante Moreira
2010-01-15 5:50 ` Carsten Dominik
1 sibling, 0 replies; 4+ messages in thread
From: Darlan Cavalcante Moreira @ 2010-01-15 3:57 UTC (permalink / raw
To: Óscar Fuentes; +Cc: emacs-orgmode
I don't know if there is a reason, but pressing "x" in the agenda will close all
org buffers that were opened by the agenda. The files that you opened yourself
won't be closed.
Maybe the reason is that if you change anything in the agenda these org files
would have to be opened in order to be modified. Therefore it is better to keep
them opened.
- Darlan
At Thu, 14 Jan 2010 16:17:43 +0100,
Óscar Fuentes <ofv@wanadoo.es> wrote:
>
> I have quite a few org files in org-agenda-files. When a global agenda
> view is displayed (the Global TODO, for instance) org-mode visits all
> the files and keeps the buffer for each of them. I'll prefer this
> behavior:
>
> for each file in org-agenda-files
> have we a buffer containing it?
> no -> create a buffer and visit it
> do our stuff (gather TODO items, etc)
> if we were not visiting the file
> kill the buffer that contains it.
>
> Is there a reason for keeping all those buffers around?
>
> --
> Óscar
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Global agenda views creates lots of buffers.
2010-01-14 15:17 Global agenda views creates lots of buffers Óscar Fuentes
2010-01-15 3:57 ` Darlan Cavalcante Moreira
@ 2010-01-15 5:50 ` Carsten Dominik
2010-01-15 10:14 ` Óscar Fuentes
1 sibling, 1 reply; 4+ messages in thread
From: Carsten Dominik @ 2010-01-15 5:50 UTC (permalink / raw
To: Óscar Fuentes; +Cc: emacs-orgmode
On Jan 14, 2010, at 4:17 PM, Óscar Fuentes wrote:
> I have quite a few org files in org-agenda-files. When a global agenda
> view is displayed (the Global TODO, for instance) org-mode visits all
> the files and keeps the buffer for each of them. I'll prefer this
> behavior:
>
> for each file in org-agenda-files
> have we a buffer containing it?
> no -> create a buffer and visit it
> do our stuff (gather TODO items, etc)
> if we were not visiting the file
> kill the buffer that contains it.
>
> Is there a reason for keeping all those buffers around?
The reason is that org makes links from the agenda to the files
using markers, and markers die when the buffer is closed.
What could be possible is throwing away all buffers that
have not produced an entry. However, I have worked with the
assumption that once you start the agenda you might run more
agenda commands, so keeping the buffers removes the overhead
of reopening many files again and again.
As Darlan has said, you can exit the agenda with "x" to get
rid of all buffers that where created to make the agenda
and have not been modified since making them.
HTH
- Carsten
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Global agenda views creates lots of buffers.
2010-01-15 5:50 ` Carsten Dominik
@ 2010-01-15 10:14 ` Óscar Fuentes
0 siblings, 0 replies; 4+ messages in thread
From: Óscar Fuentes @ 2010-01-15 10:14 UTC (permalink / raw
To: emacs-orgmode
Carsten Dominik <carsten.dominik@gmail.com> writes:
> As Darlan has said, you can exit the agenda with "x" to get
> rid of all buffers that where created to make the agenda
> and have not been modified since making them.
Thanks Darlan and Carsten. I'll resort to using `x' then.
--
Óscar
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-01-15 10:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-14 15:17 Global agenda views creates lots of buffers Óscar Fuentes
2010-01-15 3:57 ` Darlan Cavalcante Moreira
2010-01-15 5:50 ` Carsten Dominik
2010-01-15 10:14 ` Óscar Fuentes
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.