From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: include an .org file and lower the level of all its headers Date: Mon, 15 Nov 2010 11:18:08 +0100 Message-ID: References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=38316 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PHw8e-0001IV-GX for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 05:18:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PHw8a-0002N9-In for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 05:18:16 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:33071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PHw8a-0002My-EL for emacs-orgmode@gnu.org; Mon, 15 Nov 2010 05:18:12 -0500 Received: by eydd26 with SMTP id d26so2725195eyd.0 for ; Mon, 15 Nov 2010 02:18:11 -0800 (PST) In-Reply-To: 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: Puneeth Cc: emacs-orgmode@gnu.org, Jianshi Huang Accepted. I added the proper ChangeLog entries and documented the change in the manual. Thanks - Carsten On Nov 14, 2010, at 8:01 AM, Puneeth wrote: > On Sat, Nov 13, 2010 at 1:12 AM, Carsten Dominik > wrote: >> >> On Nov 10, 2010, at 3:46 AM, Jianshi Huang wrote: >> >>> Hi, >>> >>> I know I can include any file using #+INCLUDE. >>> >>> I need to include several org files, but they were edited >>> independently as a complete document. >>> >>> Now I want to lower the levels of headers in these org files >>> automatically during inclusion. Is there a way to do that? >> >> No. But since #+include accepts arguments, it could be implemented, >> something like >> >> #+include "aaa.org" :minlevel 4 >> >> or so. I would accept a good patch to this effect. > > Here's a patch. I tested it with a simple document and works fine. > > Thanks, > Puneeth > - Carsten