From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?R=C3=A9mi_Vanicat?= Subject: Re: Including current time in agenda Date: Mon, 06 Dec 2010 15:59:45 +0100 Message-ID: <87y683t09q.dlv@debian.org> References: <66E55A24-B92C-4C28-BFDD-30D9A7F38515@gmail.com> <4CFCF398.1080106@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from [140.186.70.92] (port=33022 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPcXp-0004XD-Dx for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:00:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPcXn-0001Ao-6b for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 10:00:00 -0500 Received: from lo.gmane.org ([80.91.229.12]:36271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPcXn-0001Ab-16 for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 09:59:59 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PPcXm-00044D-34 for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 15:59:58 +0100 Received: from 88-139-240-219.adslgp.cegetel.net ([88.139.240.219]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 15:59:58 +0100 Received: from vanicat by 88-139-240-219.adslgp.cegetel.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 06 Dec 2010 15:59:58 +0100 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: emacs-orgmode@gnu.org Suvayu Ali writes: >>> >>> (defun jd:org-current-time () >>> "Return current-time if date is today." >>> (when (equal date (calendar-current-date)) >>> (format-time-string "%H:%M Current time" (current-time)))) >>> >>> And use %%(jd:org-current-time) in an entry. >> >> Wow, I overlooked this possibility. Great. > > 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. -- RĂ©mi Vanicat