From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: org-class and headers Date: Wed, 22 Oct 2014 15:30:40 +0100 Message-ID: <871tq0npm7.fsf@ucl.ac.uk> References: <87wq7tbmwi.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53857) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgww9-0003tv-87 for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 10:30:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgww0-0006CX-VY for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 10:30:53 -0400 Received: from mail-db3on0135.outbound.protection.outlook.com ([157.55.234.135]:65161 helo=emea01-db3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgww0-0006C5-NG for emacs-orgmode@gnu.org; Wed, 22 Oct 2014 10:30:44 -0400 In-Reply-To: (Joseph Le Roux's message of "Tue, 21 Oct 2014 16:47:00 +0200") 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: Joseph Le Roux Cc: emacs-orgmode@gnu.org 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. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.1, Org release_8.3beta-475-g25d50e