From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Adding source location information when tangling Date: Thu, 29 May 2014 15:56:29 +0200 Message-ID: <34A92892-88EC-4364-A933-E4AFA6FC5B48@gmail.com> References: <87zji5bz6s.fsf@azha.ziiuu.com> <87r43d7ey0.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]:33077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wq0os-0006jH-UK for emacs-orgmode@gnu.org; Thu, 29 May 2014 09:56:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wq0or-00072v-VV for emacs-orgmode@gnu.org; Thu, 29 May 2014 09:56:34 -0400 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:38798) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wq0or-00072d-Ok for emacs-orgmode@gnu.org; Thu, 29 May 2014 09:56:33 -0400 Received: by mail-wg0-f44.google.com with SMTP id a1so433357wgh.15 for ; Thu, 29 May 2014 06:56:32 -0700 (PDT) In-Reply-To: <87r43d7ey0.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 28 mai 2014 =C3=A0 23:48, Thomas Morgan a =C3=A9crit : >=20 > Hi, Rainer,=20 >=20 > Rainer M Krug writes: >=20 >> Envoy=C3=A9 de mon iPhone >>=20 >>> 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? >>=20 >> Yes - Check out the header option concerning tangling with comment. So >> links are inserted as comments which contain information about the >> filename And the header from which it was tangled. >=20 > Thank you; that option is certainly useful. What I was looking for, > though, is a way to replace or supplement the comments with commands > that indicate the same information directly to the compiler or > interpreter (`\sourcefilename' and `\sourcefileline' for LilyPond, > `#line' for C, etc.). Sorry - must have misread your post. Can't help you with hour question then.= =20 Cheers, Rainer >=20 > Best, >=20 > Thomas