From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Re: Including current time in agenda Date: Mon, 6 Dec 2010 16:10:26 +0100 Message-ID: References: <66E55A24-B92C-4C28-BFDD-30D9A7F38515@gmail.com> <4CFCF398.1080106@gmail.com> <87y683t09q.dlv@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54144 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPciG-0001lq-KQ for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:10:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPciF-0003HS-J7 for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:10:48 -0500 Received: from mail-gx0-f180.google.com ([209.85.161.180]:34768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPciF-0003HH-GX for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:10:47 -0500 Received: by gxk19 with SMTP id 19so6472430gxk.39 for ; Mon, 06 Dec 2010 07:10:47 -0800 (PST) In-Reply-To: <87y683t09q.dlv@debian.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: =?ISO-8859-1?Q?R=E9mi_Vanicat?= Cc: emacs-orgmode@gnu.org, Carsten Dominik Hi R=E9mi and Carsten, On Mon, Dec 6, 2010 at 3:59 PM, R=E9mi Vanicat wrote: > Suvayu Ali writes: > >>>> >>>> (defun jd:org-current-time () >>>> =A0"Return current-time if date is today." >>>> =A0(when (equal date (calendar-current-date)) >>>> =A0 =A0(format-time-string "%H:%M Current time" (current-time)))) >>>> >>>> And use %%(jd:org-current-time) in an entry. >>> >>> Wow, I overlooked this possibility. =A0Great. >> >> That is exactly the information I want to have, but this only inserts an >> entry in today's agenda without any timestamps. > > you need to put the %%(jd:org-current-time) at the beginning of line, > with no space before it whatsoever. Thank you all, everything works as expected now. :) > -- > R=E9mi Vanicat > --=20 Suvayu Open source is the future. It sets us free.