From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chao Lu Subject: Re: How to call org-agenda with the parameter Date: Mon, 19 Jan 2015 19:34:27 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=e89a8f3ba343f7a3ed050d0a9911 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDMm5-0005k6-5J for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 19:34:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDMm4-0001Dg-BR for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 19:34:29 -0500 Received: from mail-wg0-x229.google.com ([2a00:1450:400c:c00::229]:34768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDMm4-0001DV-3f for emacs-orgmode@gnu.org; Mon, 19 Jan 2015 19:34:28 -0500 Received: by mail-wg0-f41.google.com with SMTP id a1so12381330wgh.0 for ; Mon, 19 Jan 2015 16:34:27 -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: Dan Griswold , rasmus@gmx.us Cc: emacs-orgmode --e89a8f3ba343f7a3ed050d0a9911 Content-Type: text/plain; charset=UTF-8 Thanks, it works. Best, Chao On Mon, Jan 19, 2015 at 5:03 PM, Dan Griswold wrote: > 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 >> > > --e89a8f3ba343f7a3ed050d0a9911 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks, it works.

Best,

Chao
<= /div>

On Mon, Jan = 19, 2015 at 5:03 PM, Dan Griswold <dgriswol@rochester.rr.com&g= t; wrote:
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 cust= om set, where I could M-x org-agenda RET then press "1" to list a= ll 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&= quot;), 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


--e89a8f3ba343f7a3ed050d0a9911--