From mboxrd@z Thu Jan 1 00:00:00 1970 From: julien cubizolles Subject: Re: Agenda view and timestamps Date: Mon, 16 Aug 2010 21:15:01 +0200 Message-ID: <1281986101.2342.56.camel@localhost> References: <1281982529.2342.4.camel@localhost> <8762za5sd1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=60970 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ol59L-0003Y9-Bi for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 15:15:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ol59K-0006KN-Ai for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 15:15:11 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:38095) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ol59J-0006Jm-Lq for emacs-orgmode@gnu.org; Mon, 16 Aug 2010 15:15:10 -0400 In-Reply-To: <8762za5sd1.fsf@gnu.org> 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: Bastien Cc: emacs-orgmode@gnu.org Le lundi 16 ao=C3=BBt 2010 =C3=A0 20:23 +0200, Bastien a =C3=A9crit : > Hi Julien, >=20 > julien cubizolles writes: >=20 > > Is there a way to make the agenda view display only the entries with = a > > timestamp ? I would need that for a block agenda. >=20 > ,---- > | (setq org-agenda-custom-commands > | '(("d" "With timestamps" agenda "List of tasks with a timestamp= " > | ((org-agenda-skip-function > | (lambda () > | (let* ((ts (org-entry-get nil "TIMESTAMP"))) > | (if (or (not ts) (equal ts "")) > | (progn (outline-next-heading) (point)))))))))) > `---- >=20 > Not tested but it should work. Just tested, and it works perfectly. Thanks a lot, I would never have come up with such an elaborate solution : my only experience of lisp programming is parenthesis matching while adapting other people's .emacs. Julien.