From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: buffer-local org-agenda-files & embedded agenda-view Date: Tue, 03 Apr 2012 07:55:23 +0200 Message-ID: <871uo5s6k4.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:60830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEwh2-0003L4-95 for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 01:54:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SEwh0-0003kc-HE for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 01:54:11 -0400 Received: from mail-we0-f169.google.com ([74.125.82.169]:51507) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SEwh0-0003kY-7u for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 01:54:10 -0400 Received: by werj55 with SMTP id j55so2791948wer.0 for ; Mon, 02 Apr 2012 22:54:08 -0700 (PDT) In-Reply-To: (Mirko Vukovic's message of "Mon, 2 Apr 2012 17:50:44 +0000 (UTC)") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Mirko Vukovic Cc: emacs-orgmode@gnu.org Hi Mirko, Mirko Vukovic writes: > I would like to have a buffer (and the associated file) that contain the agenda > view for a few select files. Is that possible? > > They way it might work (in pseudo-code & using babel) > > ****< begin org file > #+org-agenda-files: file-1.org file-2.org file-3.org ;; these are full files > > > #+begin local-agenda-view > TODO: file-1 > IN-PROGRESS: file-2 > COMPLETE: file-3 > #+end local-agenda-view > > ****< end org file Agenda views rely on two things: a list of selected items, a display mechanism for these items in a dedicated buffer (either one single buffer, or several buffers when using sticky agenda views.) What you're asking for would be possible if the list of items were stored somewhere else than in a dedicated buffer -- which is not the case right now (see also my recent reply to Manuel.) > So, when visiting the above file, or executing C-c C-c, the org-agenda-files > would be refreshed, as would be the local-agenda-view block. In this example, > the agenda-view is non-standard. > > So, is the following possible > - buffer local agenda-files that are set in the declarations > - embedded agenda view > - view customized as shown above > > If that is not possible, what variables & functions would I need to > look at? You can try to digg the idea of `org-agenda-listing' further. Good luck! -- Bastien