From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: PATCH: ox: Starting source code export at non-zero (-n value) Date: Thu, 26 May 2016 08:52:25 +0200 Message-ID: <87eg8pb9au.fsf@saiph.selenimh> References: <573A9100.3020503@abutilize.com> <87k2iobglr.fsf@saiph.selenimh> <57428051.4000103@abutilize.com> <87zirf9r5w.fsf@saiph.selenimh> <87bn3v9oxp.fsf@saiph.selenimh> <57466847.3010507@abutilize.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5p9q-0008I1-Ce for emacs-orgmode@gnu.org; Thu, 26 May 2016 02:52:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5p9n-0000Hn-1O for emacs-orgmode@gnu.org; Thu, 26 May 2016 02:52:38 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:38729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5p9m-0000HR-Qh for emacs-orgmode@gnu.org; Thu, 26 May 2016 02:52:34 -0400 In-Reply-To: <57466847.3010507@abutilize.com> (Brian Carlson's message of "Wed, 25 May 2016 23:06:47 -0400") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Brian Carlson Cc: emacs-orgmode@gnu.org Hello, Brian Carlson writes: > I put the signed paperwork into the mail this evening. Great. > Sure. I'll use previous entries as a starting point. > I was thinking that the entry should go under: Version 9.0/New Features/Export/ > unless there's a more appropriate place in the Document. I also think this is the correct location. > Here's what I thought about putting. I can make a patch if that is preferred > means of submission. If what I've written doesn't make sense let me know. > > **** Line Numbering in SRC/EXAMPLE blocks support arbitrary start number > The -n option to SRC and EXAMPLE blocks can now take an numeric argument to specify "a numeric argument" > the staring line number for the source or example block. The +n option can now > take a numeric argument that will be added to the last line number from the > previous block as the starting point for the SRC/EXAMPLE block. > #+BEGIN_SRC emacs-lisp -n 20 > ;; this will export with line number 20 > (message "This is line 21") > #+END_SRC > > #+BEGIN_SRC emacs-lisp +n 10 > ;; This will be listed as line 31 > (message "This is line 32") > #+END_SRC > > I realize that the org texinfo manual probably needs to be updated, as well. I'll take a stab at updating that unless > someone else wants to take that on. You're right. You can merge ORG-NEWS modifications into the documentation patch. Thank you ! Regards, -- Nicolas Goaziou