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:05:55 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2623ec627ab050d0886f9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50437) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKSL-0003Uw-MH for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:05:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDKSK-0002Ms-GP for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:05:57 -0500 Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:34688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDKSK-0002Mm-7o for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 17:05:56 -0500 Received: by mail-lb0-f180.google.com with SMTP id b6so4931995lbj.11 for ; Mon, 19 Jan 2015 14:05:55 -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: emacs-orgmode --001a11c2623ec627ab050d0886f9 Content-Type: text/plain; charset=UTF-8 Didn't reply from the right account last time, so sending again to make sure. I think the relevant line should be: (org-agenda nil "1" nil) hth, 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 > --001a11c2623ec627ab050d0886f9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Didn't reply from the right account last tim= e, so sending again to make sure.

I think the relevant line sh= ould be:

(org-agenda nil "1" nil)

hth,
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 cou= ld 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 sh= ow 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?

(defu= n lch-recur ()
=C2=A0 (interactive)
=C2=A0 (split-window-vertically)<= br>=C2=A0 (lch-cowsay-fortune)
=C2=A0 (other-window 1)
=C2=A0 (org= -agenda "1")
)

Thanks,

Chao

--001a11c2623ec627ab050d0886f9--