From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Is it possible to repeat tasks only a certain amount of times? Date: Wed, 13 Sep 2017 20:23:39 +0100 Message-ID: <87377qtnb8.fsf@delle7240.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsDGG-0004JP-6P for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 15:23:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsDGC-0001l0-7P for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 15:23:48 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:46372) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dsDGC-0001jr-0c for emacs-orgmode@gnu.org; Wed, 13 Sep 2017 15:23:44 -0400 Received: by mail-wm0-x22f.google.com with SMTP id i189so14468803wmf.1 for ; Wed, 13 Sep 2017 12:23:42 -0700 (PDT) In-Reply-To: (=?utf-8?B?IkfDtmt0dcSf?= Kayaalp"'s message of "Wed, 13 Sep 2017 14:01:09 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Wednesday, 13 Sep 2017 at 14:01, G=C3=B6ktu=C4=9F Kayaalp wrote: > I have tried the following: > > <2017-09-18 Pzt 14:25-18:40 +1w>-- I think this is discussed in the FAQ on the org mode web site but, in any case, no, you cannot do what you want. You may wish to look at=20 ,---- | org-clone-subtree-with-time-shift is an interactive compiled Lisp | function in =E2=80=98org.el=E2=80=99. |=20 | (org-clone-subtree-with-time-shift N &optional SHIFT) |=20 | Clone the task (subtree) at point N times. | The clones will be inserted as siblings. |=20 | 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 =E2=80=98+3d=E2=80=99. To disable th= is, | you can call the function with a universal prefix argument. |=20 | 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. |=20 | In each clone, all the CLOCK entries will be removed. This | prevents Org from considering that the clocked times overlap. |=20 | 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. |=20 | 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. `---- =2D-=20 : Eric S Fraga via Emacs 26.0.50, Org release_9.0.9-573-g09e612 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWbmFuwAKCRDIkZPY//z2 fcRUAJ9lchj+j0d+jZ8G0iRh+qW3pV8LbACfRA6ykDf3Mf6kxUCbQ/NOHaZtNzI= =ZVHb -----END PGP SIGNATURE----- --=-=-=--