From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Cave Subject: I just discovered the clone subtree command Date: Wed, 17 Jun 2009 00:46:49 +0000 (UTC) Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGjLw-0005OX-9g for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 20:50:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGjLq-0005NZ-7D for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 20:50:10 -0400 Received: from [199.232.76.173] (port=48515 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGjLp-0005NW-Vs for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 20:50:06 -0400 Received: from main.gmane.org ([80.91.229.2]:43815 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MGjLp-0003ne-G8 for emacs-orgmode@gnu.org; Tue, 16 Jun 2009 20:50:05 -0400 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1MGjLm-0006e7-F3 for emacs-orgmode@gnu.org; Wed, 17 Jun 2009 00:50:02 +0000 Received: from 203.166.111.206 ([203.166.111.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2009 00:50:02 +0000 Received: from charlesweb by 203.166.111.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Jun 2009 00:50:02 +0000 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I am reading the Org-mode Release 6.27a manual to learn new things. and just discovered the C-c C-x c (clone subtree) command. This makes copies of a tree and inserts them as siblings. The command prompts you for the number of copies to make. The really useful feature is to update dates according to a pattern. Here is an example of creating headings for each of the next six months: Start with this: ** First of the month *** July SCHEDULED: <2009-07-01 Wed> Position the cursor to the beginning of the line *** July then issue the C-c C-x c Answer the question "Number of clones to produce:" with 6 Next question is "Date shift per clone (e.g. +1w, empty to copy unchanged): " Answer it +1m and the tree looks like: *** July SCHEDULED: <2009-07-01 Wed> *** July SCHEDULED: <2009-08-01 Sat> *** July SCHEDULED: <2009-09-01 Tue> *** July SCHEDULED: <2009-10-01 Thu> *** July SCHEDULED: <2009-11-01 Sun> *** July SCHEDULED: <2009-12-01 Tue> *** July SCHEDULED: <2010-01-01 Fri> Now you just have to change the occurrences of July to the real month names! I don't know when this feature appeared but it is very useful. Charles