emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Richard Lawrence <richard.lawrence@uni-tuebingen.de>
To: Stefan Huchler <stefan.huchler@mail.de>, emacs-orgmode@gnu.org
Subject: Re: Customize resheduling behaviour
Date: Wed, 30 Sep 2020 21:24:33 +0200	[thread overview]
Message-ID: <87lfgr9ifi.fsf@aquinas> (raw)
In-Reply-To: <87pn634c7c.fsf@mail.de>

Hi Stefan,

Stefan Huchler <stefan.huchler@mail.de> writes:

> I have a task sheduled like that:
>
> * TODO  Order from a delivery service
>   SCHEDULED: <2020-10-06 Di .+2w>
>
> ...
> Is there a way to reshedule it, if it fails 1 week later and if I
> complete it, reshedule 2 weeks later?

I don't think there's any way to do this automatically when you change
the TODO state of the entry.

The simplest way I can think of is to do C-c C-s +7 (i.e., call
org-schedule and give a new date a week later at the prompt). If doing
this on a different day than the scheduled day, you'll need to change
the interval you enter (e.g., if you missed it by 2 days, enter +5) or
type in the new date manually.

Another option is C-c C-x c (i.e., org-clone-subtree-with-time-shift).
Clone the tree one time, with a shift of one week, then delete the old
tree. The advantage of this option is that the time shift will be
relative to the old scheduled/deadline date, not the date on which you
run the command, so you can always say +1w.

Hope that helps!

-- 
Best,
Richard


  reply	other threads:[~2020-09-30 19:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-30 13:37 Customize resheduling behaviour Stefan Huchler
2020-09-30 19:24 ` Richard Lawrence [this message]
2020-10-01  2:45 ` David Masterson
2020-10-01  3:11 ` Ihor Radchenko

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=87lfgr9ifi.fsf@aquinas \
    --to=richard.lawrence@uni-tuebingen.de \
    --cc=emacs-orgmode@gnu.org \
    --cc=stefan.huchler@mail.de \
    /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).