From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joseph Le Roux Subject: Re: org-class and headers Date: Wed, 22 Oct 2014 22:34:34 +0200 Message-ID: References: <87wq7tbmwi.fsf@gmx.us> <871tq0npm7.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46435) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh2cD-0004KL-W7 for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 16:34:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xh2c9-0008Mt-Lj for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 16:34:41 -0400 Received: from mail-wi0-x22b.google.com ([2a00:1450:400c:c05::22b]:45268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xh2c9-0008MZ-DO for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 16:34:37 -0400 Received: by mail-wi0-f171.google.com with SMTP id em10so2437602wid.10 for ; Wed, 22 Oct 2014 13:34:36 -0700 (PDT) Received: from lapis.home ([92.141.127.51]) by mx.google.com with ESMTPSA id b6sm272252wiy.22.2014.10.22.13.34.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 Oct 2014 13:34:35 -0700 (PDT) In-Reply-To: <871tq0npm7.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Wed, 22 Oct 2014 15:30:40 +0100") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Eric S Fraga writes: > On Tuesday, 21 Oct 2014 at 16:47, Joseph Le Roux wrote: >> Rasmus writes: > > [...] > >>> Will `org-clone-subtree-with-time-shift' do what you want? >>> >> >> Thanks for the pointer, it could be very handy in my use-case, but this >> function copies the org-class as is for all clones. I would like to > > The idea is to use the clone function and not the org-class > expression. Combining the two simply confuses things! > > What I do every start of term is define an entry for each lecture slot > in a week including the actual time information, lecture theatre, > etc. I then clone each individual entry using +1w for the number of > weeks in the term. I remove any subtrees generated that correspond to > lectures that do not actually exist, e.g. they fall on a holiday or > during our study week. > > Later, if an individual lecture gets cancelled, I simply remove the > corresponding subtree as I do for holidays etc. Thank you Eric, I'll follow the advice. As Rasmus showed, 'org-clone-subtree-with-time-shift' works with a timestamp, but it does not with (the result of) an org-class call. Ideally, what I would like to do is to specify a set of classes using org-class syntax and, as a result, get a set of headers. 'org-class' is a powerful tool, but just not powerful enough yet... -- Joseph Le Roux RCLN, LIPN, Universit=C3=A9 Paris 13 Tel: +33 (0) 1 49 40 40 81 Fax: +33 (0) 1 48 26 51 12 URL: http://lipn.univ-paris13.fr/~leroux