emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Levin <zslevin@gmail.com>
To: emacs-orgmode@gnu.org
Subject: possible bug of display time-range appt in agenda
Date: Mon, 24 Sep 2007 14:47:59 +0800	[thread overview]
Message-ID: <200709241448.00157.zslevin@gmail.com> (raw)

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))))

             reply	other threads:[~2007-09-24  6:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-24  6:47 Levin [this message]
2007-09-25 16:12 ` possible bug of display time-range appt in agenda Carsten Dominik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200709241448.00157.zslevin@gmail.com \
    --to=zslevin@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).