From mboxrd@z Thu Jan 1 00:00:00 1970 From: suvayu ali Subject: Re: Including current time in agenda Date: Mon, 6 Dec 2010 12:55:48 +0100 Message-ID: References: <8739qbjf7m.fsf@pinto.chemeng.ucl.ac.uk> 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=33235 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPZgb-0006ko-JQ for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 06:57:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPZfu-00061e-1S for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 06:56:13 -0500 Received: from mail-gy0-f169.google.com ([209.85.160.169]:44200) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPZft-00061P-Qj for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 06:56:09 -0500 Received: by gyg10 with SMTP id 10so20844399gyg.0 for ; Mon, 06 Dec 2010 03:56:09 -0800 (PST) In-Reply-To: <8739qbjf7m.fsf@pinto.chemeng.ucl.ac.uk> 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: Eric S Fraga Cc: org-mode mailing list Hi Eric, On Mon, Dec 6, 2010 at 12:47 PM, Eric S Fraga wrote: > suvayu ali writes: > >> Hi, >> >> I have been attempting this for a few days now. I want to have an >> entry for the current time in today's agenda. That way I can keep >> track of how much time I have left until my next appointment. >> >> So far what ever I try, it shows up as an entry without a timestamp as >> shown below. >> >> Monday =A0 =A0 =A06 December 2010 W49 >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A08:00...... ---------------- >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 10:00...... ---------------- >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 12:00...... ---------------- >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 14:00...... ---------------- >> =A0 thoughts: =A0 15:30-17:30 W' meeting >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 16:00...... ---------------- >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 18:00...... ---------------- >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 20:00...... ---------------- >> =A0 thoughts: =A0 Currrent time >> =A0 thoughts: =A0 TODO Hostel Room Change >> >> >> So far my attempts have been some variation of `<%%(format-time-string >> "%H%M")>' =A0or `<%%(diary-entry-time ...)>'. Am I approaching this the >> wrong way? Is this not supported by the diary library? >> >> Thanks for any thoughts/suggestions. > > If I understand things correctly, Emacs Diary expressions simply return > t or nil to indicate whether an entry should be displayed for the > particular date. =A0They do not return a string and, more to the point, > they do not take the time into account. =A0In Emacs Diary, the time has t= o > be part of the text outside the sexp. > Thank you for clarifying that. I was incorrectly expecting it returns a text. Should have checked more closely. > However, it would be nice if the agenda view could highlight the current > time, much as it is possible to highlight the current day in a week > view, for instance... so this could be a good "feature request"! =A0I hav= e > no idea how hard it would be to implement, mind you... > Would you have any idea where I could look to get started with implementing something like this? > -- > : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 > : using Org-mode version 7.3 (release_7.3.211.g6388.dirty) > Thanks a lot for your response. --=20 Suvayu Open source is the future. It sets us free.