From: Carsten Dominik <carsten.dominik@gmail.com>
To: Puneeth <punchagan@gmail.com>
Cc: Venkatesh Choppella <venkatesh.choppella@iiit.ac.in>,
emacs-orgmode@gnu.org
Subject: Re: [PATCH] How do I include text between a range of line numbers with #INCLUDE
Date: Fri, 7 Jan 2011 15:32:16 +0100 [thread overview]
Message-ID: <4DA1DC4D-3E99-4E39-8875-F379386D8CF9@gmail.com> (raw)
In-Reply-To: <AANLkTi=G8u9raP6p3jMeTRYPB_AzGgmZVKKZjPqqCPX4@mail.gmail.com>
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
> <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
- Carsten
next prev parent reply other threads:[~2011-01-07 14:32 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-07 4:33 How do I include text between a range of line numbers with #INCLUDE Venkatesh Choppella
2011-01-07 7:59 ` [PATCH] " Puneeth
2011-01-07 14:32 ` Carsten Dominik [this message]
2011-01-08 18:05 ` Carsten Dominik
2011-01-08 19:28 ` Puneeth
2011-01-18 0:26 ` [Accepted] " Bastien Guerry
2011-01-18 0:48 ` [PATCH] " Bastien
2011-01-18 3:24 ` Puneeth Chaganti
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DA1DC4D-3E99-4E39-8875-F379386D8CF9@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=punchagan@gmail.com \
--cc=venkatesh.choppella@iiit.ac.in \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).