From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Adding source location information when tangling Date: Tue, 27 May 2014 23:08:51 +0200 Message-ID: References: <87zji5bz6s.fsf@azha.ziiuu.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54322) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpOcB-0004d1-5v for emacs-orgmode@gnu.org; Tue, 27 May 2014 17:08:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpOcA-00023h-BU for emacs-orgmode@gnu.org; Tue, 27 May 2014 17:08:55 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:49462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpOcA-00023P-5H for emacs-orgmode@gnu.org; Tue, 27 May 2014 17:08:54 -0400 Received: by mail-wi0-f182.google.com with SMTP id r20so2553161wiv.9 for ; Tue, 27 May 2014 14:08:53 -0700 (PDT) In-Reply-To: <87zji5bz6s.fsf@azha.ziiuu.com> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Thomas Morgan Cc: "emacs-orgmode@gnu.org" Envoy=C3=A9 de mon iPhone > Le 25 mai 2014 =C3=A0 18:28, Thomas Morgan a =C3=A9crit : >=20 > Dear Org hackers, >=20 > I have a question about tangling LilyPond code blocks. >=20 > Is there a way to put the commands `\sourcefilename' and > `\sourcefileline' in the tangled file before each block, > perhaps in place of the comment that includes the same information? Yes - Check out the header option concerning tangling with comment. So links= are inserted as comments which contain information about the filename And t= he header from which it was tangled.=20 Cheers, Rainer=20 > (These commands are equivalent to the `#line LINENUM "FILE"' > directive in C.) If possible I'd like to let LilyPond know how > to give error messages that refer to the originating Org file. >=20 > Thanks, > Thomas >=20