From mboxrd@z Thu Jan  1 00:00:00 1970
From: Carsten Dominik <carsten.dominik@gmail.com>
Subject: Re: [PATCH] How do I include text between a range of line numbers
 with #INCLUDE
Date: Sat, 8 Jan 2011 19:05:30 +0100
Message-ID: <8BB07121-9AD5-4919-9421-FF8E050E536F@gmail.com>
References: <AANLkTikn64EGS5z5hTto_CVoFAZAvxZBdsHzVGySDqo8@mail.gmail.com>
	<AANLkTi=G8u9raP6p3jMeTRYPB_AzGgmZVKKZjPqqCPX4@mail.gmail.com>
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: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org>
Received: from [140.186.70.92] (port=55770 helo=eggs.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43) id 1PbdAr-0001is-U9
	for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 13:06:20 -0500
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <carsten.dominik@gmail.com>) id 1PbdAT-0003E4-6K
	for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 13:05:57 -0500
Received: from mail-ey0-f169.google.com ([209.85.215.169]:53330)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <carsten.dominik@gmail.com>) id 1PbdAS-0003Dv-UK
	for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 13:05:33 -0500
Received: by eyh6 with SMTP id 6so4945947eyh.0
	for <emacs-orgmode@gnu.org>; Sat, 08 Jan 2011 10:05:32 -0800 (PST)
In-Reply-To: <AANLkTi=G8u9raP6p3jMeTRYPB_AzGgmZVKKZjPqqCPX4@mail.gmail.com>
List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/archive/html/emacs-orgmode>
List-Post: <mailto:emacs-orgmode@gnu.org>
List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-orgmode>,
	<mailto:emacs-orgmode-request@gnu.org?subject=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 <punchagan@gmail.com>
Cc: Venkatesh Choppella <venkatesh.choppella@iiit.ac.in>, emacs-orgmode@gnu.org

Hi Puneeth,

can cou please augment the patch with a propert ChangeLog-like entry,  
and with documentation for the manual, and then resubmit?

Thanks.

- Carsten

On Jan 7, 2011, at 8:59 AM, Puneeth wrote:

> On Fri, Jan 7, 2011 at 10:03 AM, Venkatesh Choppella
> <venkatesh.choppella@iiit.ac.in> wrote:
>> I would like to include a part of a file (between a given range of
>> line numbers) instead of the whole file.  Is there a way to do that  
>> in
>> org-mode?
>
> It isn't possible to include files using line numbers, as of now.
> Here's a quick patch that would add this feature.  I have tested it
> with small files and works fine. Can somebody tell me if it looks
> good?
>
> :lines "5-10"  will include the lines from 5 to 10, 10 excluded.
> :lines "-10"  will include the lines from 1 to 10, 10 excluded.
> :lines "5-"  will include the lines from 1 to the end of the file.
>
> HTH,
> Puneeth
> <patch-include- 
> lines.diff.txt>_______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode