From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Sven Bretfeld" Subject: Re: [Sticky Agenda] How to create Agenda Buffers in functions Date: 4 Apr 2012 07:30:51 +0200 Message-ID: <87ty10rrlg.fsf@gmx.ch> References: <87fwckbv21.fsf@gmx.ch> <87limc73av.wl%max@openchat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFIo7-0006tX-7d for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 01:31:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFIo5-0003OR-Az for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 01:30:58 -0400 Received: from mi.ruhr-uni-bochum.de ([134.147.64.33]:58592 helo=mx5.rz.ruhr-uni-bochum.de) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SFIo5-0003OI-20 for emacs-orgmode@gnu.org; Wed, 04 Apr 2012 01:30:57 -0400 In-Reply-To: <87limc73av.wl%max@openchat.com> (Max Mikhanosha's message of "Tue, 03 Apr 2012 20:23:36 -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 , max@openchat.com Max Mikhanosha writes: > This is the same bug as Martyn Jago reported earlier, basically I > forgot that separate org agenda commands can be run individually > rather then through (org-agenda) function. > > A temporary workaround in your specific case would be to wrap > (org-batch-agenda) call like this: > > (catch 'exit > (org-batch-agenda "OFFICE/NEXT")) > > I tested it and it seems to work.. The actual fix for the bug will be > similar and will be wrapping bodies of (org-todo-list) (org-tags-list) > and friends with (catch 'exit), but it needs to be done conditionally > as to only do it its called individually and not from (org-agenda) I see. Thank you for hinting me to a workaround. Sven