From mboxrd@z Thu Jan 1 00:00:00 1970 From: aditya siram Subject: Re: Line numbers in tangled source Date: Sat, 4 Sep 2010 14:51:22 -0500 Message-ID: References: <87y6bhczxj.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=48284 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Orylp-00067h-TX for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 15:51:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Orylo-00012Q-9e for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 15:51:25 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:46864) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Orylo-000126-0N for emacs-orgmode@gnu.org; Sat, 04 Sep 2010 15:51:24 -0400 Received: by wyb36 with SMTP id 36so3746031wyb.0 for ; Sat, 04 Sep 2010 12:51:23 -0700 (PDT) In-Reply-To: <87y6bhczxj.fsf@gmail.com> 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: Eric Schulte Cc: emacs-orgmode@gnu.org Yes I am aware of the comments argument but it is not what I was referring to. What I want is, if I had the following in a file called "Haskell.org" : * Root Root comment #+begin_src haskell :tangle Main.hs =A0 test =3D length =A0 main =3D print $ test [1,2,3] #+end_src I would like the following output in the tangled file Main.hs: {-# LINE 4 "Haskell.org" #-} test =3D length main =3D print $ test [1,2,3] The line that starts with {-# LINE ... #-} is a pragma that tells the compiler that this line corresponds to line 4 in Haskell.org and if there is an error it will point to that file and not to Main.hs. Can I take it that this functionality doesn't yet exist? -deech On Sat, Sep 4, 2010 at 8:21 AM, Eric Schulte wrote= : > > Hi, > > You can use the :comments header argument to include comments around > tangled code blocks indicating where the code block lives in the > original Org file. > > See [1] for information on the :comment header argument, and see [2] for > information on using header arguments in general. > > Best -- Eric > > aditya siram writes: > > > Hi all, > > How do I get the org file line numbers in the tangled source? This way = error > > messages point to the org file. > > > > thanks ... > > -deech > > Footnotes: > [1] =A0http://orgmode.org/manual/comments.html#comments > > [2] =A0http://orgmode.org/manual/Using-header-arguments.html#Using-header= -arguments >