From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sven Bretfeld" Subject: [Sticky Agenda] How to create Agenda Buffers in functions Date: 3 Apr 2012 19:10:30 +0200 Message-ID: <87fwckbv21.fsf@gmx.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:39335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SF7Ff-00026r-Rk for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 13:10:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SF7Fb-0005eO-35 for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 13:10:39 -0400 Received: from mi.ruhr-uni-bochum.de ([134.147.64.53]:33030 helo=mx4.rz.ruhr-uni-bochum.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SF7Fa-0005eA-QR for emacs-orgmode@gnu.org; Tue, 03 Apr 2012 13:10:35 -0400 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: emacs-org Hi all The Sticky Agenda is something I have been waiting for since a long time. Thank you very much! I want to write a function that creates a new frame with several windows, each displaying a different Agenda Views. I fail to find a function that creates special agenda views. Formerly I used org-batch-agenda for similar purposes. But that doesn't work in the sticky branch. This is what I have: (defun my-gtd-frame () (interactive) (save-excursion) (make-frame '( (name . "gtd") (active-alpha . 0.75) (inactive-alpha . 0.8) (top . 110) (left . 2000) (width . 80) (height . 40) (font . "-Adobe-Courier-Medium-R-Normal--18-180-75-75-M-110-ISO8859-1"))) (select-frame-by-name "gtd") (toggle-fullscreen) (org-agenda-goto-today) (delete-other-windows) (split-window-horizontally) (other-window 1) (org-batch-agenda "OFFICE/NEXT") ) Calling this function should create a fullscreen Emacs frame on my second monitor vertically split into two windows. The upper window should display the week-agenda (org-agenda-goto-today), the lower window should contain a special-agenda-view showing all items with the todo-keyword NEXT and the tag OFFICE. Everything works as expected until it comes to the last line. org-batch-agenda seems not to be the correct function to be called here. The minibuffer says: "No catch for tag: exit, nil". Can anybody help? Thanks Sven