From: Carsten Dominik <carsten.dominik@gmail.com>
To: Bernt Hansen <bernt@norang.ca>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH v2] Fix agenda display for late scheduled and deadline tasks
Date: Wed, 23 Jun 2010 17:26:03 +0200 [thread overview]
Message-ID: <9AA45A0B-7767-4D82-B503-811985BF2093@gmail.com> (raw)
In-Reply-To: <1277242816-29777-1-git-send-email-bernt@norang.ca>
Hi Bernt,
can you point me to the thread which discusses this issue?
Thanks.
- Carsten
On Jun 22, 2010, at 11:40 PM, Bernt Hansen wrote:
> * lisp/org.el (org-time-string-to-absolute):
>
> Ignore the cyclic repeater when displaying items on today's agenda
> date. If you have a weekly task and miss the date the agenda view
> will show more than a week late now instead of resetting on the
> cyclic repeating date. This makes it much more obvious when you
> missed a repeating task after the repeater.
> ---
> Here's a new version of this patch which I think addresses Matt's
> issue and it's simpler
> which is always a bonus.
>
> The patch is available at git://git.norang.ca/org-mode.git fix-
> agenda-late-tasks
>
> -Bernt
>
>
> lisp/org.el | 21 +++++++++++----------
> 1 files changed, 11 insertions(+), 10 deletions(-)
>
> diff --git a/lisp/org.el b/lisp/org.el
> index 2628152..4ebf31d 100644
> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -14700,16 +14700,17 @@ If there is a specifyer for a cyclic time
> stamp, get the closest date to
> DAYNR.
> PREFER and SHOW-ALL are passed through to `org-closest-date'.
> the variable date is bound by the calendar when this is called."
> - (cond
> - ((and daynr (string-match "\\`%%\\((.*)\\)" s))
> - (if (org-diary-sexp-entry (match-string 1 s) "" date)
> - daynr
> - (+ daynr 1000)))
> - ((and daynr (string-match "\\+[0-9]+[dwmy]" s))
> - (org-closest-date s (if (and (boundp 'daynr) (integerp daynr))
> daynr
> - (time-to-days (current-time))) (match-string 0 s)
> - prefer show-all))
> - (t (time-to-days (apply 'encode-time (org-parse-time-string
> s))))))
> + (let ((today (calendar-absolute-from-gregorian (calendar-current-
> date))))
> + (cond
> + ((and daynr (string-match "\\`%%\\((.*)\\)" s))
> + (if (org-diary-sexp-entry (match-string 1 s) "" date)
> + daynr
> + (+ daynr 1000)))
> + ((and daynr (not (eq daynr today)) (string-match "\\+[0-9]+
> [dwmy]" s))
> + (org-closest-date s (if (and (boundp 'daynr) (integerp daynr))
> daynr
> + (time-to-days (current-time))) (match-string 0 s)
> + prefer show-all))
> + (t (time-to-days (apply 'encode-time (org-parse-time-string
> s)))))))
>
> (defun org-days-to-iso-week (days)
> "Return the iso week number."
> --
> 1.7.1.359.gd0b8d
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- Carsten
next prev parent reply other threads:[~2010-06-23 15:48 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-12 16:09 [PATCH] Fix agenda display for late scheduled and deadline tasks Bernt Hansen
2010-06-12 16:13 ` Bernt Hansen
2010-06-16 14:16 ` Bastien
2010-06-21 12:45 ` Matt Lundin
2010-06-21 12:51 ` Bernt Hansen
2010-06-21 13:02 ` Bernt Hansen
2010-06-21 13:06 ` Carsten Dominik
2010-06-21 13:08 ` Bernt Hansen
2010-06-21 13:21 ` Carsten Dominik
2010-06-22 21:40 ` [PATCH v2] " Bernt Hansen
2010-06-23 15:26 ` Carsten Dominik [this message]
2010-06-23 15:38 ` Bernt Hansen
2010-06-23 15:42 ` Carsten Dominik
2010-07-01 13:00 ` Carsten Dominik
2010-07-01 13:19 ` Bernt Hansen
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=9AA45A0B-7767-4D82-B503-811985BF2093@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=bernt@norang.ca \
--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).