From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Including current time in agenda Date: Mon, 06 Dec 2010 11:47:09 +0000 Message-ID: <8739qbjf7m.fsf@pinto.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=52915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PPZXw-00057w-Nx for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 06:48:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PPZXJ-0001qD-P9 for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 06:47:56 -0500 Received: from vscani-e.ucl.ac.uk ([144.82.108.33]:56403) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PPZXJ-0001pq-L2 for emacs-orgmode@gnu.org; Mon, 06 Dec 2010 06:47:17 -0500 In-Reply-To: (suvayu ali's message of "Mon, 6 Dec 2010 07:49:32 +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: suvayu ali Cc: org-mode mailing list 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 6 December 2010 W49 > 8:00...... ---------------- > 10:00...... ---------------- > 12:00...... ---------------- > 14:00...... ---------------- > thoughts: 15:30-17:30 W' meeting > 16:00...... ---------------- > 18:00...... ---------------- > 20:00...... ---------------- > thoughts: Currrent time > thoughts: TODO Hostel Room Change > > > So far my attempts have been some variation of `<%%(format-time-string > "%H%M")>' or `<%%(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. They do not return a string and, more to the point, they do not take the time into account. In Emacs Diary, the time has to be part of the text outside the sexp. 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"! I have no idea how hard it would be to implement, mind you... -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.211.g6388.dirty)