From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dan Griswold Subject: Re: How to call org-agenda with the parameter Date: Mon, 19 Jan 2015 17:03:11 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2623efd5e2c050d087c93 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKPi-0007Ox-Hh for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:03:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDKPh-0001Go-P3 for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:03:14 -0500 Received: from mail-la0-x22d.google.com ([2a00:1450:4010:c03::22d]:63465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKPh-0001Ep-8v for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:03:13 -0500 Received: by mail-la0-f45.google.com with SMTP id gd6so7494740lab.4 for ; Mon, 19 Jan 2015 14:03:11 -0800 (PST) In-Reply-To: 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: Chao Lu Cc: emacs-orgmode --001a11c2623efd5e2c050d087c93 Content-Type: text/plain; charset=UTF-8 Probably this instead: (org-agenda nil "1" nil) Dan On Mon, Jan 19, 2015 at 4:50 PM, Chao Lu wrote: > Hi all, > > 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? > > (defun lch-recur () > (interactive) > (split-window-vertically) > (lch-cowsay-fortune) > (other-window 1) > *(org-agenda "1")* > ) > > Thanks, > > Chao > --001a11c2623efd5e2c050d087c93 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Probably this instead:

(org-agenda = nil "1" nil)

Dan

On Mon, Jan 19, 2015 at 4:50 PM, Chao Lu <loochao.list@gmail.com> wrote:
Hi all,

I defined a few org= -agenda custom set, where I could M-x org-agenda RET then press "1&quo= t; 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-age= nda "1"), and it does not work, then what should be the right way= to do that?

(defun lch-recur ()
=C2=A0 (interactive)
= =C2=A0 (split-window-vertically)
=C2=A0 (lch-cowsay-fortune)
=C2=A0 (= other-window 1)
=C2=A0 (org-agenda "1")
)

Thanks,

Chao

--001a11c2623efd5e2c050d087c93--