From mboxrd@z Thu Jan 1 00:00:00 1970 From: Niels Giesen Subject: Re: [BUG] Re: Time range end in agenda view not displayed Date: Fri, 30 Sep 2011 16:41:35 +0200 Message-ID: <87hb3u3xeo.fsf@gmail.com> References: <4E859358.8020109@gmx.at> <838vp6mgsr.fsf@yahoo.it> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([140.186.70.92]:60176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9eHU-00051w-R4 for emacs-orgmode@gnu.org; Fri, 30 Sep 2011 10:41:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R9eHT-0001Mo-E4 for emacs-orgmode@gnu.org; Fri, 30 Sep 2011 10:41:40 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:55849) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R9eHT-0001Mh-9f for emacs-orgmode@gnu.org; Fri, 30 Sep 2011 10:41:39 -0400 Received: by eye13 with SMTP id 13so1339703eye.0 for ; Fri, 30 Sep 2011 07:41:38 -0700 (PDT) In-Reply-To: <838vp6mgsr.fsf@yahoo.it> (Giovanni Ridolfi's message of "Fri, 30 Sep 2011 13:05:24 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giovanni Ridolfi Cc: michael holzer , emacs-orgmode@gnu.org Giovanni Ridolfi writes: > michael holzer writes: > >> When I have an entry that contains a time range, for example: >> >> * timerange >> <2011-09-30 Fri 14:00>--<2011-09-30 Fri 18:00> >> >> this shows up in the agenda view as: >> >> uni: 14:00...... timerange >> >> while I would expect something like: >> >> uni: 14:00-18:00 timerange >> > > |the manual says: > |Time ranges can be specified with two timestamps,=20 > |like =E2=80=98<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>=E2=80=99. > | > | 20:30-22:15 Marvin escorts the Hitchhikers to the bridge > > I confirm this bug. > > Org-mode version 7.7 0e9d401519c020af29a7e35da7acfca25e6c3be4 > GNU Emacs 23.3.1 (i386-mingw-nt5.1.2600) of 2011-03-10 on 3249CTO > > Giovanni > > Funny enough, I noticed this too last week, so I whipped up this patch. It inserts the range when start date is the same as the end date. Please test (it's still young) && include in Org if you so please. =20=20 #+begin_src diff >From dcf81753aa5cab311f2a3a0272e4691e4bc6ea38 Mon Sep 17 00:00:00 2001 From: Niels Giesen Date: Mon, 26 Sep 2011 11:43:55 +0200 Subject: [PATCH] Show timestamp ranges in agenda * lisp/org-agenda.el (org-agenda-get-blocks): Show timestamp ranges in agenda if start day is same as end day --- lisp/org-agenda.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index b1fa5f5..e8effd5 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -5396,7 +5396,9 @@ FRACTION is what fraction of the head-warning time ha= s passed." org-agenda-timerange-leaders) (1+ (- d0 d1)) (1+ (- d2 d1))) head category tags - (cond ((=3D d1 d0) + (cond ((and (=3D d1 d0) (=3D d2 d0)) + (concat "<" start-time ">--<" end-time ">")) + ((=3D d1 d0) (concat "<" start-time ">")) ((=3D d2 d0) (concat "<" end-time ">")) --=20 1.7.4.1 #+end_src Regards, Niels. --=20 http://pft.github.com/