From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: "Samuel W. Flint" <swflint@flintfam.org>
Cc: Org-Mode <emacs-orgmode@gnu.org>
Subject: Re: Repeat only a certain number of times
Date: Thu, 27 Aug 2015 17:17:43 +0100 [thread overview]
Message-ID: <87bndsln88.fsf@ucl.ac.uk> (raw)
In-Reply-To: <87wpwgzpna.fsf@turing.flintfam.org> (Samuel W. Flint's message of "Thu, 27 Aug 2015 12:01:45 -0400")
On Thursday, 27 Aug 2015 at 12:01, Samuel W. Flint wrote:
> I was wondering, is there a way to set a date-stamp so that it only
> repeats a certain number of times? If not, what would it take to add
> it?
http://orgmode.org/worg/org-faq.html#org-class
However, my usual approach (for timetabling lectures, say) is to use:
,----[ C-h f org-clone-subtree-with-time-shift RET ]
| org-clone-subtree-with-time-shift is an interactive compiled Lisp
| function in ‘org.el’.
|
| (org-clone-subtree-with-time-shift N &optional SHIFT)
|
| Clone the task (subtree) at point N times.
| The clones will be inserted as siblings.
|
| In interactive use, the user will be prompted for the number of
| clones to be produced. If the entry has a timestamp, the user
| will also be prompted for a time shift, which may be a repeater
| as used in time stamps, for example ‘+3d’. To disable this,
| you can call the function with a universal prefix argument.
|
| When a valid repeater is given and the entry contains any time
| stamps, the clones will become a sequence in time, with time
| stamps in the subtree shifted for each clone produced. If SHIFT
| is nil or the empty string, time stamps will be left alone. The
| ID property of the original subtree is removed.
|
| If the original subtree did contain time stamps with a repeater,
| the following will happen:
| - the repeater will be removed in each clone
| - an additional clone will be produced, with the current, unshifted
| date(s) in the entry.
| - the original entry will be placed *after* all the clones, with
| repeater intact.
| - the start days in the repeater in the original entry will be shifted
| to past the last clone.
| In this way you can spell out a number of instances of a repeating task,
| and still retain the repeater to cover future instances of the task.
|
| As described above, N+1 clones are produced when the original
| subtree has a repeater. Setting N to 0, then, can be used to
| remove the repeater from a subtree and create a shifted clone
| with the original repeater.
|
| [back]
`----
--
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.1-176-g45abec
prev parent reply other threads:[~2015-08-27 16:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 16:01 Repeat only a certain number of times Samuel W. Flint
2015-08-27 16:17 ` Eric S Fraga [this message]
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=87bndsln88.fsf@ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
--cc=swflint@flintfam.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).