From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Butz Subject: Re: Re: Including current time in agenda Date: Sat, 8 Jan 2011 15:46:49 +0100 Message-ID: References: <87mxoi52sp.fsf@fastmail.fm> <9DA94FAE-E0CA-46CE-9F74-C1F462825A71@gmail.com> <871v5m27y4.fsf@ucl.ac.uk> <87zksa3ch1.fsf@fastmail.fm> 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=42629 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pba4P-0000R6-6T for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 09:47:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pba4A-0008Pm-W7 for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 09:47:05 -0500 Received: from mail-qw0-f41.google.com ([209.85.216.41]:40656) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pba4A-0008Pc-SC for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 09:46:50 -0500 Received: by qwa26 with SMTP id 26so18195186qwa.0 for ; Sat, 08 Jan 2011 06:46:50 -0800 (PST) In-Reply-To: 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: suvayu ali Cc: Matt Lundin , org-mode mailing list , Carsten Dominik Hi, ok, sorry I made a copy-paste error into the mail for the function and the call. But indeed I wasn't aware that this had become standard. Indeed after pulling the latest version and removing those statements everything (including the current time!) is working. Sorry for the noise. Thanks, Erik On Sat, Jan 8, 2011 at 1:04 AM, suvayu ali wr= ote: > Hi Erik, > > On Fri, Jan 7, 2011 at 3:46 PM, Erik Butz wrot= e: >> I have >> >> >> (defun jd:org-current-time () >> =C2=A0"Return current-time if date is today." >> =C2=A0(when (equal date (calendar-current-date)) >> =C2=A0 (format-time-string "%H:%M =E2=97=84=E2=80=94=E2=80=94=E2=80=94= =E2=80=94=E2=80=94=E2=80=94" (current-time)))) >> >> in the .emacs file and and entry >> >> * Current Time >> =C2=A0:PROPERTIES: >> =C2=A0:CATEGORY: NOW =E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80= =94=E2=96=BA >> =C2=A0:END: >> >> %%(org-current-time) >> >> in one of my .org files. That's about all I did. >> > > To get the current time, you don't need to do that any more. After > Carsten's change org shows that by default. Just remove that entry from > your agenda file and if you have any entries for today, the current time > shows up as NOW by default. You can even customise the face by > customising the face `org-agenda-current-time'. > > As for your problem with your current setup, I think the problem is you > call the incorrect sexp. The entry should be, > > %%(jd:org-current-time) > >> Any clues from this? >> >> Thanks, >> >> Erik > > Hope this helps > > -- > Suvayu > > Open source is the future. It sets us free. >