From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: How to call org-agenda with the parameter Date: Mon, 19 Jan 2015 23:00:26 +0100 Message-ID: <87y4oya0sl.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKRa-0002Ue-GY for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:05:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDKRU-0001ke-Um for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:05:09 -0500 Received: from plane.gmane.org ([80.91.229.3]:46252) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKRU-0001iz-On for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:05:04 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YDKRT-0002aH-NF for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 23:05:03 +0100 Received: from 46.166.186.243 ([46.166.186.243]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jan 2015 23:05:03 +0100 Received: from rasmus by 46.166.186.243 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Jan 2015 23:05:03 +0100 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-orgmode@gnu.org Hi Chao, Chao Lu writes: > I defined a few org-agenda custom set, where I could M-x org-agenda RET > then press "1" to list all my active TODOs. And I'm trying to write a > function when I could pop-up a buffer and show me all the active TODOs. I > tried (org-agenda "1"), and it does not work, then what should be the > right > way to do that? Did you check the docstring of org-agenda? I.e.: C-h f org-agenda RET If I read your message correctly, the docstring suggests two ways to solve your problem: 1. call (org-todo-list) directly 2. or (org-agenda nil "t") Hope it helps, Rasmus -- This space is left intentionally blank