From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Morgan Subject: Re: Adding source location information when tangling Date: Wed, 28 May 2014 17:48:07 -0400 Message-ID: <87r43d7ey0.fsf@azha.ziiuu.com> References: <87zji5bz6s.fsf@azha.ziiuu.com> Mime-Version: 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]:48086) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WptWN-0000mp-3u for emacs-orgmode@gnu.org; Thu, 29 May 2014 02:09:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WptWH-0002Gy-0s for emacs-orgmode@gnu.org; Thu, 29 May 2014 02:08:59 -0400 Received: from mail-qg0-f49.google.com ([209.85.192.49]:61257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WptWG-0002Gk-Sv for emacs-orgmode@gnu.org; Thu, 29 May 2014 02:08:52 -0400 Received: by mail-qg0-f49.google.com with SMTP id a108so20596059qge.8 for ; Wed, 28 May 2014 23:08:50 -0700 (PDT) In-Reply-To: (Rainer M. Krug's message of "Tue, 27 May 2014 23:08:51 +0200") 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: Rainer M Krug Cc: "emacs-orgmode@gnu.org" Hi, Rainer,=20 Rainer M Krug writes: > 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 the header from which it was tangled. 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.). Best, Thomas