[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode][PATCH] How do I include text between a range of line numbe
From: |
Puneeth |
Subject: |
Re: [Orgmode][PATCH] How do I include text between a range of line numbers with #INCLUDE |
Date: |
Fri, 7 Jan 2011 13:29:41 +0530 |
On Fri, Jan 7, 2011 at 10:03 AM, Venkatesh Choppella
<address@hidden> 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
Description: Text document