emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matt Lundin <mdl@imapmail.org>
To: cesar mena <cmena@pobox.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-agenda-scheduled-leaders and repeating tasks
Date: Wed, 21 Oct 2015 09:20:01 -0500	[thread overview]
Message-ID: <87d1w82tim.fsf@fastmail.fm> (raw)
In-Reply-To: <87eggueq64.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 16 Oct 2015 18:25:39 +0200")

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> cesar mena <cmena@pobox.com> writes:
>
>> i tracked this down to the function org-time-string-to-absolute.  when
>> rendering the agenda it gets called with today as its DAYNR argument,
>> which causes "org-closest-date" to return "today" for the case of
>> repeating timestamps.
>>
>> i can understand why it is done this way, and i find it useful.
>> however for some tasks, i'd rather the counter not reset lest i miss
>> something for longer than i should have (the smoke alarm case for
>> example).
>
> I fixed the issue with a rather opinionated change.
> `org-agenda-repeating-timestamp-show-all' no longer applies on ".+" and
> "++" repeaters.
>

While I agree in principe with this change, I wonder if we could make an
exception for habits. Habits (org-habit.el) customarily use a notation
like this:

--8<---------------cut here---------------start------------->8---
* Go for a run
  :PROPERTIES:
  :STYLE:    habit
  :END:
  <2015-10-16 Fri 16:00 .+1d/2d>
--8<---------------cut here---------------end--------------->8---

This will appear in the agenda with a consistency graph indicating the
last n days of completion (depending on org-habit-preceding-days).
Before the change in commit a427098b57c747ecc76feb0593f32922a1e12f67,
these would appear in my daily agenda at their scheduled time,
regardless of whether I had missed a day or two. Now, if I miss a day,
the habit drops to the bottom of the agenda (it no longer appears at the
scheduled time). IMO, this is undesired behavior; I want to be reminded
of the habit at the same time each day regardless of whether I have done
it on previous days, especially since the consistency graph gives me all
the information I need about past completions.

Changing the timestamp to +1d/2d will is not an option, since the
timestamp only advances one day upon completion. This leads to an
incoherent consistency graph. The graph color remains red, which
indicates incompletion, and the habit stays on the daily agenda, even
though I have just completed it.

In short, org-habit seems to want a + notation for the purposes of the
agenda display and a .+ notation for the purposes of resetting the
timestamp. What is the best solution?

Thanks,
Matt

  parent reply	other threads:[~2015-10-21 14:20 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-13 22:01 org-agenda-scheduled-leaders and repeating tasks cesar mena
2015-10-16 16:25 ` Nicolas Goaziou
2015-10-16 22:24   ` cesar mena
2015-10-17  7:25     ` Nicolas Goaziou
2015-10-21 14:20   ` Matt Lundin [this message]
2015-10-25 16:19     ` Nicolas Goaziou
2015-10-25 17:24       ` Nicolas Goaziou
2015-10-26 13:13         ` cesar mena
2015-10-26 19:56           ` cesar mena
2015-10-26 20:23             ` Samuel Wales
2015-10-26 20:31               ` cesar mena
2015-10-26 20:49                 ` Nicolas Goaziou
2015-10-26 20:31             ` Nicolas Goaziou
2015-10-26 20:43               ` cesar mena
2015-10-27  4:25                 ` Samuel Wales
2015-10-28  1:32                 ` Matt Lundin
2015-10-28 13:52                 ` Nicolas Goaziou
2015-10-29 16:46                   ` cesar mena

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=87d1w82tim.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=cmena@pobox.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).