From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: possible bug of display time-range appt in agenda Date: Tue, 25 Sep 2007 09:12:00 -0700 Message-ID: <7e38df2c1ba5a0f1c700373c32c36d0a@science.uva.nl> References: <200709241448.00157.zslevin@gmail.com> Mime-Version: 1.0 (Apple Message framework v624) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IaD17-0004Oq-GG for emacs-orgmode@gnu.org; Tue, 25 Sep 2007 12:12:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IaD15-0004NT-Tj for emacs-orgmode@gnu.org; Tue, 25 Sep 2007 12:12:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IaD15-0004NO-PD for emacs-orgmode@gnu.org; Tue, 25 Sep 2007 12:12:07 -0400 Received: from wr-out-0506.google.com ([64.233.184.236]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IaD15-0003Gs-Ep for emacs-orgmode@gnu.org; Tue, 25 Sep 2007 12:12:07 -0400 Received: by wr-out-0506.google.com with SMTP id 50so684424wra for ; Tue, 25 Sep 2007 09:12:04 -0700 (PDT) In-Reply-To: <200709241448.00157.zslevin@gmail.com> 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: Levin Cc: emacs-orgmode@gnu.org What version of org-mode are you using? (org-get-time-of-day "<2007-10-01 11:30-12:20>") does return 11:30 for me. - Carsten On Sep 23, 2007, at 23:47, Levin wrote: > Put something in the org buffer: > ** Do something <2007-10-01 11:30-12:20> > > then in the agenda, only "Do something" is displayed, without showing > the appt > time. > > I trace the code and find out that: > (org-get-time-of-day "<2007-10-01 11:30-12:20>") > which return nil cause this probem. > > I do not know if this bug has been mentioned or resolved. I'm posting > here in > case that it is not :) > > -Levin > > PS. I did a patch, which solves the problem. Yet it is a bit ugly :) > > (It is the diff of org-get-time-of-day function. line number may be > wrong.) > --- a/lisp/org/org.el > +++ b/lisp/org/org.el > @@ -19113,9 +19113,9 @@ HH:MM." > (when > (or > (string-match > - > "\\<\\([012]?[0-9]\\)\\(:\\([0-5][0-9]\\)\\)\\([AaPp][Mm]\\)?\\> *" s) > + "\\<\\([012]?[0-9]\\)\\(:\\([0-5][0-9]\\)\\)\\([AaPp][Mm]\\)? > *" s) > (string-match > - > "\\<\\([012]?[0-9]\\)\\(:\\([0-5][0-9]\\)\\)?\\([AaPp][Mm]\\)\\> *" > s)) > + "\\<\\([012]?[0-9]\\)\\(:\\([0-5][0-9]\\)\\)?\\([AaPp][Mm]\\) > *" s)) > (let* ((h (string-to-number (match-string 1 s))) > (m (if (match-end 3) (string-to-number (match-string 3 s)) 0)) > (ampm (if (match-end 4) (downcase (match-string 4 s)))) > > > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > -- Carsten Dominik Sterrenkundig Instituut "Anton Pannekoek" Universiteit van Amsterdam Kruislaan 403 NL-1098SJ Amsterdam phone: +31 20 525 7477