From mboxrd@z Thu Jan 1 00:00:00 1970 From: Levin Subject: possible bug of display time-range appt in agenda Date: Mon, 24 Sep 2007 14:47:59 +0800 Message-ID: <200709241448.00157.zslevin@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IZhm2-0000zJ-W3 for emacs-orgmode@gnu.org; Mon, 24 Sep 2007 02:50:31 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IZhlz-0000uz-M1 for emacs-orgmode@gnu.org; Mon, 24 Sep 2007 02:50:29 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IZhlz-0000ul-FN for emacs-orgmode@gnu.org; Mon, 24 Sep 2007 02:50:27 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IZhly-0000j5-OR for emacs-orgmode@gnu.org; Mon, 24 Sep 2007 02:50:27 -0400 Received: from rv-out-0910.google.com ([209.85.198.188]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IZhlw-0005cF-JZ for emacs-orgmode@gnu.org; Mon, 24 Sep 2007 02:50:24 -0400 Received: by rv-out-0910.google.com with SMTP id c27so1262670rvf for ; Sun, 23 Sep 2007 23:50:22 -0700 (PDT) Content-Disposition: inline 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: emacs-orgmode@gnu.org 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))))