emacs-orgmode
[Top][All Lists]
Advanced

[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: Carsten Dominik
Subject: Re: [Orgmode][PATCH] How do I include text between a range of line numbers with #INCLUDE
Date: Fri, 7 Jan 2011 15:32:16 +0100

The patch looks OK to me.

However, line numers are notorioously bad references....

- Carsten

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

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>_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
address@hidden
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten






reply via email to

[Prev in Thread] Current Thread [Next in Thread]