From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Adding source location information when tangling Date: Fri, 06 Jun 2014 12:24:07 -0400 Message-ID: <87d2emezan.fsf@gmail.com> References: <87zji5bz6s.fsf@azha.ziiuu.com> <87r43d7ey0.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]:38804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsxij-0007oD-Ft for emacs-orgmode@gnu.org; Fri, 06 Jun 2014 13:14:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wsxif-0002Qd-5f for emacs-orgmode@gnu.org; Fri, 06 Jun 2014 13:14:25 -0400 Received: from mail-qg0-x22c.google.com ([2607:f8b0:400d:c04::22c]:46587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wsxif-0002QZ-20 for emacs-orgmode@gnu.org; Fri, 06 Jun 2014 13:14:21 -0400 Received: by mail-qg0-f44.google.com with SMTP id i50so5067882qgf.3 for ; Fri, 06 Jun 2014 10:14:20 -0700 (PDT) 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" , Rainer M Krug Thomas Morgan writes: > 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.). > Hi Thomas, I believe the `org-babel-tangle-comment-format-beg' and `org-babel-tangle-comment-format-end' variable should provide the functionality you desire. Best, > > Best, > > Thomas > --=20 Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D (see https://u.fsf.org/yw)