From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: How to specify the tangled comment to be the location of the noweb ref definition instead of where it was tangled? Date: Thu, 12 Jun 2014 15:46:22 -0400 Message-ID: <87oaxxx4tv.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvBPn-0005An-Hq for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 16:16:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WvBPi-0008W9-QT for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 16:16:03 -0400 Received: from mail-ob0-x22b.google.com ([2607:f8b0:4003:c01::22b]:44565) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WvBPi-0008W5-MB for emacs-orgmode@gnu.org; Thu, 12 Jun 2014 16:15:58 -0400 Received: by mail-ob0-f171.google.com with SMTP id nu7so1906106obb.16 for ; Thu, 12 Jun 2014 13:15:58 -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: Grant Rettke Cc: "emacs-orgmode@gnu.org" > > How do I make the code comment specify the actual location of the source block > ref, not just where it was expanded and tangled? > Currently inserting comments around snippets of code expanded with noweb is not supported. You may be able to fake this through the clever use of variables along the lines of the following, #+begin_src sh :var start=(line-number-at-pos (point)) :results scalar cat <