From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Butz Subject: Re: Re: Including current time in agenda Date: Fri, 7 Jan 2011 20:31:38 +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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=55037 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbI2J-0006FR-50 for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 14:31:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbI2G-0000aq-Vh for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 14:31:43 -0500 Received: from mail-qy0-f176.google.com ([209.85.216.176]:36008) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbI2G-0000aV-S2 for emacs-orgmode@gnu.org; Fri, 07 Jan 2011 14:31:40 -0500 Received: by qyk10 with SMTP id 10so18259852qyk.0 for ; Fri, 07 Jan 2011 11:31:39 -0800 (PST) In-Reply-To: <87zksa3ch1.fsf@fastmail.fm> 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: Matt Lundin Cc: Carsten Dominik , org-mode mailing list Hi all, thanks for this very nice feature. It's working mostly for me, but now, whenever I try to insert a 'date, deadline,scheduled date' I get an error saying: "Symbol's value as variable is void: date" which I don't quite understand. Any ideas? Thanks, Erik On Sun, Dec 12, 2010 at 10:31 PM, Matt Lundin wrote: > Eric S Fraga writes: > >> Carsten Dominik writes: >> >> [...] >> >>> I agree that this is creative and great. >>> >>> However having the current time in the time grid is so useful that >>> I have now made it the default, no diary sexp needed. >> >> Thanks for this, Carsten. =A0I like being able to change the face easily >> (in my case, I simply set it to underline with no agenda string to keep >> a minimalist approach). >> >> However, there is one problem (?): if I change my view to another day >> (using, say, "j" in the agenda day view), I get the "current time" >> highlighted for that other day and obviously the current time makes no >> sense other than for "today", I would argue. > > The patch below fixes the issue for me. > > Best, > Matt > > --8<---------------cut here---------------start------------->8--- > diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el > index fb26ee9..67c8d89 100644 > --- a/lisp/org-agenda.el > +++ b/lisp/org-agenda.el > @@ -5353,7 +5353,7 @@ The modified list may contain inherited tags, and t= ags matched by > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0new) > =A0 =A0 =A0 =A0 =A0(put-text-property > =A0 =A0 =A0 =A0 =A0 2 (length (car new)) 'face 'org-time-grid (car new)))= ) > - =A0 =A0 =A0(when org-agenda-show-current-time-in-grid > + =A0 =A0 =A0(when (and todayp org-agenda-show-current-time-in-grid) > =A0 =A0 =A0 =A0(push (org-format-agenda-item > =A0 =A0 =A0 =A0 =A0 =A0 =A0 nil > =A0 =A0 =A0 =A0 =A0 =A0 =A0 org-agenda-current-time-string > --8<---------------cut here---------------end--------------->8--- > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >