From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik 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: 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=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 ) 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 ) 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 ; Sat, 08 Jan 2011 10:05:32 -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: Venkatesh Choppella , 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 > 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 > 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