From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Morgan Subject: Adding source location information when tangling Date: Sun, 25 May 2014 18:28:11 +0200 Message-ID: <87zji5bz6s.fsf@azha.ziiuu.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53177) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WodEy-0002X0-Bx for emacs-orgmode@gnu.org; Sun, 25 May 2014 14:33:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WodEq-000126-Cd for emacs-orgmode@gnu.org; Sun, 25 May 2014 14:33:48 -0400 Received: from mail-qg0-f48.google.com ([209.85.192.48]:38063) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WodEq-000120-7f for emacs-orgmode@gnu.org; Sun, 25 May 2014 14:33:40 -0400 Received: by mail-qg0-f48.google.com with SMTP id i50so10786264qgf.21 for ; Sun, 25 May 2014 11:33:39 -0700 (PDT) Received: from azha.ziiuu.com (cpe-68-173-37-126.nyc.res.rr.com. [68.173.37.126]) by mx.google.com with ESMTPSA id g74sm6382047qge.26.2014.05.25.11.33.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 25 May 2014 11:33:39 -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: emacs-orgmode@gnu.org Dear Org hackers, I have a question about tangling LilyPond code blocks. 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? (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. Thanks, Thomas