From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Rettke Subject: How to specify the tangled comment to be the location of the noweb ref definition instead of where it was tangled? Date: Tue, 10 Jun 2014 11:31:47 -0500 Message-ID: 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]:37851) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuOxh-0004OH-Du for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 12:31:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuOxg-0000pc-9Q for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 12:31:49 -0400 Received: from mail-ob0-x22c.google.com ([2607:f8b0:4003:c01::22c]:62979) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuOxg-0000ov-4w for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 12:31:48 -0400 Received: by mail-ob0-f172.google.com with SMTP id uy5so5890135obc.3 for ; Tue, 10 Jun 2014 09:31:47 -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" Good morning, This is a test. I am confused about the line numbers specified in the tangl= ed comments versus their actual location in the source org file. I can't get t= hem to line up. System: #+begin_src emacs-lisp (concat "Emacs version: " (emacs-version) "\n" "Org version: " (org-version)) #+end_src #+RESULTS: : Emacs version: GNU Emacs 24.3.1 (x86_64-apple-darwin13.1.0, NS apple-appkit-1265.19) : of 2014-04-24 on orion : Org version: 8.2.6 The destination is: #+begin_src emacs-lisp :tangle test.el :noweb tangle ;; begin <> ;; end #+end_src The default header args are: #+begin_src emacs-lisp org-babel-default-header-args #+end_src #+RESULTS: | (:comments . noweb) | (:padline . yes) | (:session . none) | (:results . replace) | (:exports . code) | (:cache . no) | (:noweb . no) | (:hlines . no) | (:tangle . no) | The comment formats are: #+begin_src emacs-lisp (concat "Beg: " org-babel-tangle-comment-format-beg "\nEnd: " org-babel-tangle-comment-format-end) #+end_src #+RESULTS: : Beg: line %start-line in %file : [[%link][%start-line, %file]] : End: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D The source block is here: #+begin_src emacs-lisp (setq message "This is a test.") (message message) #+end_src Should the comment in file:./test.el specify the same line number that the source block shows up in? For me it looks like 44 in the block and 20 the comment. So, it is looking at where the noweb ref was expanded? How do I make the code comment specify the actual location of the source bl= ock ref, not just where it was expanded and tangled? Kind regards, Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi gcr@wisdomandwonder.com | http://www.wisdomandwonder.com/ =E2=80=9CWisdom begins in wonder.=E2=80=9D --Socrates ((=CE=BB (x) (x x)) (=CE=BB (x) (x x))) =E2=80=9CLife has become immeasurably better since I have been forced to st= op taking it seriously.=E2=80=9D --Thompson