From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: manipulating the agenda from elisp? Date: Fri, 08 Apr 2011 18:36:36 +0200 Message-ID: <871v1c8zu3.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=36651 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8Efs-0000xx-5r for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 12:36:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8Efr-0003t2-4F for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 12:36:44 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:38045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8Efq-0003sy-Vr for emacs-orgmode@gnu.org; Fri, 08 Apr 2011 12:36:43 -0400 Received: by wyf19 with SMTP id 19so3848693wyf.0 for ; Fri, 08 Apr 2011 09:36:42 -0700 (PDT) In-Reply-To: (Filippo A. Salustri's message of "Thu, 7 Apr 2011 22:05:22 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Filippo A. Salustri" Cc: emacs-orgmode@gnu.org Hi Filippo, "Filippo A. Salustri" writes: > I'm thinking I might like to try some programming to do things to the > agenda from an elisp function. > I tried 'apropos agenda' but I didn't really see the kind of thing > I'm looking for. > What I'm hoping is for some way to iterate over each item in the > agenda, and be able to access the content of the item in some > structured way. > I think I've seen functions that can pull info like TODO state and > priority from the item under the cursor, so it's the iteration part > that I'm really interested in. In an agenda, try `C-u C-x =' to see all the text properties at point. You can grab a lot of information from these properties. HTH, -- Bastien