emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Time range end in agenda view not displayed
@ 2011-09-30 10:00 michael holzer
  2011-09-30 10:27 ` Daniel Bausch
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: michael holzer @ 2011-09-30 10:00 UTC (permalink / raw)
  To: emacs-orgmode

Hi everyone,

I'm having a problem with the agenda view, hopefully someone can tell me
what I'm doing wrong:

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

as the manual says
(http://orgmode.org/org.html#Time_002dof_002dday-specifications).

Thanks for any help,
michael

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Time range end in agenda view not displayed
  2011-09-30 10:00 Time range end in agenda view not displayed michael holzer
@ 2011-09-30 10:27 ` Daniel Bausch
  2011-09-30 10:32 ` Memnon Anon
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 9+ messages in thread
From: Daniel Bausch @ 2011-09-30 10:27 UTC (permalink / raw)
  To: emacs-orgmode

Hi Michael,

it's much easier to achieve, what you want.  Just write
<2011-09-30 Fri 14:00-18:00>
(at least as long as the times refer to the same day)

Daniel

Am Freitag 30 September 2011, 12:00:56 schrieb michael holzer:
> Hi everyone,
> 
> I'm having a problem with the agenda view, hopefully someone can tell me
> what I'm doing wrong:
> 
> 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
> 
> as the manual says
> (http://orgmode.org/org.html#Time_002dof_002dday-specifications).
> 
> Thanks for any help,
> michael

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Time range end in agenda view not displayed
  2011-09-30 10:00 Time range end in agenda view not displayed michael holzer
  2011-09-30 10:27 ` Daniel Bausch
@ 2011-09-30 10:32 ` Memnon Anon
  2011-09-30 11:05 ` [BUG] " Giovanni Ridolfi
  2011-09-30 11:58 ` michael holzer
  3 siblings, 0 replies; 9+ messages in thread
From: Memnon Anon @ 2011-09-30 10:32 UTC (permalink / raw)
  To: emacs-orgmode

michael holzer <michi_holzer_news@gmx.at> 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

* STRT Reply Holzer
  <2011-09-30 Fri 12:30-12:35>

hth
Memnon

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [BUG] Re:   Time range end in agenda view not displayed
  2011-09-30 10:00 Time range end in agenda view not displayed michael holzer
  2011-09-30 10:27 ` Daniel Bausch
  2011-09-30 10:32 ` Memnon Anon
@ 2011-09-30 11:05 ` Giovanni Ridolfi
  2011-09-30 14:41   ` Niels Giesen
  2011-09-30 11:58 ` michael holzer
  3 siblings, 1 reply; 9+ messages in thread
From: Giovanni Ridolfi @ 2011-09-30 11:05 UTC (permalink / raw)
  To: michael holzer; +Cc: emacs-orgmode

michael holzer <michi_holzer_news@gmx.at> 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, 
|like ‘<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>’.
|
| 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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Time range end in agenda view not displayed
  2011-09-30 10:00 Time range end in agenda view not displayed michael holzer
                   ` (2 preceding siblings ...)
  2011-09-30 11:05 ` [BUG] " Giovanni Ridolfi
@ 2011-09-30 11:58 ` michael holzer
  3 siblings, 0 replies; 9+ messages in thread
From: michael holzer @ 2011-09-30 11:58 UTC (permalink / raw)
  To: emacs-orgmode

Thanks to everyone for the fast answers :)

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [BUG] Re:   Time range end in agenda view not displayed
  2011-09-30 11:05 ` [BUG] " Giovanni Ridolfi
@ 2011-09-30 14:41   ` Niels Giesen
  2011-09-30 16:42     ` Michael Brand
  2011-10-05 14:53     ` Carsten Dominik
  0 siblings, 2 replies; 9+ messages in thread
From: Niels Giesen @ 2011-09-30 14:41 UTC (permalink / raw)
  To: Giovanni Ridolfi; +Cc: michael holzer, emacs-orgmode

Giovanni Ridolfi <giovanni.ridolfi@yahoo.it> writes:

> michael holzer <michi_holzer_news@gmx.at> 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, 
> |like ‘<2005-05-10 Tue 20:30>--<2005-05-10 Tue 22:15>’.
> |
> | 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.
  
#+begin_src diff
From dcf81753aa5cab311f2a3a0272e4691e4bc6ea38 Mon Sep 17 00:00:00 2001
From: Niels Giesen <niels.giesen@gmail.com>
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 has passed."
 				     org-agenda-timerange-leaders)
 				(1+ (- d0 d1)) (1+ (- d2 d1)))
 			       head category tags
-			       (cond ((= d1 d0)
+			       (cond ((and (= d1 d0) (= d2 d0))
+				      (concat "<" start-time ">--<" end-time ">"))
+                                     ((= d1 d0)
 				      (concat "<" start-time ">"))
 				     ((= d2 d0)
 				      (concat "<" end-time ">"))
-- 
1.7.4.1
#+end_src

Regards, Niels.
-- 
http://pft.github.com/

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [BUG] Re: Time range end in agenda view not displayed
  2011-09-30 14:41   ` Niels Giesen
@ 2011-09-30 16:42     ` Michael Brand
  2011-10-05 14:53     ` Carsten Dominik
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Brand @ 2011-09-30 16:42 UTC (permalink / raw)
  To: Niels Giesen; +Cc: michael holzer, emacs-orgmode

Hi Niels

On Fri, Sep 30, 2011 at 16:41, Niels Giesen <niels.giesen@gmail.com> wrote:
> [...] I whipped up this patch. [...] Please test (it's still young) [...]

This is a nice water proofing as I like it. The patch passes my tests.

(The patch can be found here:)
http://patchwork.newartisans.com/patch/970

Michael

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [BUG] Re:   Time range end in agenda view not displayed
  2011-09-30 14:41   ` Niels Giesen
  2011-09-30 16:42     ` Michael Brand
@ 2011-10-05 14:53     ` Carsten Dominik
  2011-10-05 15:53       ` Niels Giesen
  1 sibling, 1 reply; 9+ messages in thread
From: Carsten Dominik @ 2011-10-05 14:53 UTC (permalink / raw)
  To: emacs-orgmode


Niels Giesen <niels.giesen <at> gmail.com> writes:

passed."
>  				     org-agenda-timerange-leaders)
>  				(1+ (- d0 d1)) (1+ (- d2 d1)))
>  			       head category tags
> -			       (cond ((= d1 d0)
> +			       (cond ((and (= d1 d0) (= d2 d0))
> +				      (concat "<" start-time ">--<" end-time ">"))
> +                                     ((= d1 d0)
>  				      (concat "<" start-time ">"))
>  				     ((= d2 d0)
>  				      (concat "<" end-time ">"))


Thanks, this patch has been accepted.

- Carsten

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [BUG] Re: Time range end in agenda view not displayed
  2011-10-05 14:53     ` Carsten Dominik
@ 2011-10-05 15:53       ` Niels Giesen
  0 siblings, 0 replies; 9+ messages in thread
From: Niels Giesen @ 2011-10-05 15:53 UTC (permalink / raw)
  To: Carsten Dominik; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 103 bytes --]

>
> Thanks, this patch has been accepted.
>
> - Carsten
>

Thank you.

niels
-- 
http://pft.github.com

[-- Attachment #2: Type: text/html, Size: 403 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-10-05 15:53 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-30 10:00 Time range end in agenda view not displayed michael holzer
2011-09-30 10:27 ` Daniel Bausch
2011-09-30 10:32 ` Memnon Anon
2011-09-30 11:05 ` [BUG] " Giovanni Ridolfi
2011-09-30 14:41   ` Niels Giesen
2011-09-30 16:42     ` Michael Brand
2011-10-05 14:53     ` Carsten Dominik
2011-10-05 15:53       ` Niels Giesen
2011-09-30 11:58 ` michael holzer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).