emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Yearly repeats on the agenda


From: SW
Subject: Re: [O] Yearly repeats on the agenda
Date: Tue, 17 Apr 2012 12:40:37 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Nick Dokos <nicholas.dokos <at> hp.com> writes:

> Indeed - I can reproduce that. It happens in org-agenda-get-timestamps,
> in the call to org-agenda-format-item: this function takes a regexp
> argument, remove-re, and removes any matches from the string it
> produces. The regexp is constructed from the *current* date though:
> 
>           (concat
>          (regexp-quote
>           (format-time-string
>            "<%Y-%m-%d"
>            (encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date))))
>          ".*?>")
> 
> so it becomes "<2012-04-17.*?>". Hence it removes the date in the third
> example above, but not in the other two.
> 
> The question is whether this is intended or not: personally, I don't see
> any reason for the difference in behavior, so it might be a good idea to
> generalize the regexp to match *any* year.
> 
> Nick

Thanks for the reply. Do I need to file this as a bug, or does this thread
constitute a bug report? I'm behind a firewall/proxy and haven't setup email in
Emacs, so I would just copy and paste the message from org-submit-bug-report and
email it? I'm not (yet) an elisp-er, so I can't fix this myself.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]