* Removing org files after opening agenda
@ 2007-11-02 12:45 Stefan Kamphausen
2007-11-02 15:22 ` Bastien
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Stefan Kamphausen @ 2007-11-02 12:45 UTC (permalink / raw)
To: emacs-orgmode
Hi,
when opening an agenda for TODO items (via M-x org-agenda t) all files
from org-agenda-files will be opened. This clutters the buffer space
and I think the buffers should be killed after reading their contents.
Probably I could do it myself using org-finalize-agenda-hook but it
may be worth thinking about a general solution. And maybe I am
missing something?
The simple approach, to close all buffers associated with files in
org-agenda-files, is obviously not what one wants, instead only those
opened transparently should be removed afterwards.
What do you think?
Kind Regards
Stefan
--
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Removing org files after opening agenda
2007-11-02 12:45 Removing org files after opening agenda Stefan Kamphausen
@ 2007-11-02 15:22 ` Bastien
2007-11-02 15:48 ` Eddward DeVilla
2007-11-03 21:26 ` Carsten Dominik
2 siblings, 0 replies; 4+ messages in thread
From: Bastien @ 2007-11-02 15:22 UTC (permalink / raw)
To: emacs-orgmode
Stefan Kamphausen <skampi@gmx.net> writes:
> The simple approach, to close all buffers associated with files in
> org-agenda-files, is obviously not what one wants, instead only those
> opened transparently should be removed afterwards.
While we may come up with an org-specific solution at some point, you
might also be interested in tempbuf.el:
http://www.emacswiki.org/cgi-bin/wiki?TempbufMode
I didn't try it with
(add-hook 'find-file-hooks 'turn-on-tempbuf-mode)
but tempbuf.el explicitely says it might be worth the try...
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Removing org files after opening agenda
2007-11-02 12:45 Removing org files after opening agenda Stefan Kamphausen
2007-11-02 15:22 ` Bastien
@ 2007-11-02 15:48 ` Eddward DeVilla
2007-11-03 21:26 ` Carsten Dominik
2 siblings, 0 replies; 4+ messages in thread
From: Eddward DeVilla @ 2007-11-02 15:48 UTC (permalink / raw)
To: Stefan Kamphausen; +Cc: emacs-orgmode
Actually, this is how I load all my org files in one shot. It did
annoy me once upon a time.
Edd
On 11/2/07, Stefan Kamphausen <skampi@gmx.net> wrote:
> Hi,
>
> when opening an agenda for TODO items (via M-x org-agenda t) all files
> from org-agenda-files will be opened. This clutters the buffer space
> and I think the buffers should be killed after reading their contents.
>
> Probably I could do it myself using org-finalize-agenda-hook but it
> may be worth thinking about a general solution. And maybe I am
> missing something?
>
> The simple approach, to close all buffers associated with files in
> org-agenda-files, is obviously not what one wants, instead only those
> opened transparently should be removed afterwards.
>
> What do you think?
>
> Kind Regards
> Stefan
> --
> Stefan Kamphausen --- http://www.skamphausen.de
> a blessed +42 regexp of confusion (weapon in hand)
> You hit. The format string crumbles and turns to dust.
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: 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: Removing org files after opening agenda
2007-11-02 12:45 Removing org files after opening agenda Stefan Kamphausen
2007-11-02 15:22 ` Bastien
2007-11-02 15:48 ` Eddward DeVilla
@ 2007-11-03 21:26 ` Carsten Dominik
2 siblings, 0 replies; 4+ messages in thread
From: Carsten Dominik @ 2007-11-03 21:26 UTC (permalink / raw)
To: Stefan Kamphausen; +Cc: emacs-orgmode
On 2Nov2007, at 1:45 PM, Stefan Kamphausen wrote:
> Hi,
>
> when opening an agenda for TODO items (via M-x org-agenda t) all files
> from org-agenda-files will be opened. This clutters the buffer space
> and I think the buffers should be killed after reading their contents.
>
> Probably I could do it myself using org-finalize-agenda-hook but it
> may be worth thinking about a general solution. And maybe I am
> missing something?
>
> The simple approach, to close all buffers associated with files in
> org-agenda-files, is obviously not what one wants, instead only those
> opened transparently should be removed afterwards.
>
> What do you think?
Org-mode does remove all those buffers when you exit the agenda
with "x" instead of "q". Then all buffers loaded for constructing
the TODO list
will be removed. Buffers that were already present before the agenda
was constructed are not removed. If buffers have been modified,
you will be asked if you want to save them.
Org-mode is not removing the buffers immediately after constructing
the list, because it assumes that while working with the list you
will still
need them for lookup purposes.
If you insist on immediately getting rid of the buffers,
you can put something like this into the org-finalize-agenda-hook:
(add-hook 'org-finalize-agenda-hook
(lambda ()
(org-release-buffers org-agenda-new-buffers)
(setq org-agenda-new-buffers nil)))
- Carsten
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-03 21:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-02 12:45 Removing org files after opening agenda Stefan Kamphausen
2007-11-02 15:22 ` Bastien
2007-11-02 15:48 ` Eddward DeVilla
2007-11-03 21:26 ` Carsten Dominik
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.