From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: refine org-babel-tangle-jump-to-org? Date: Thu, 30 May 2013 18:05:30 -0400 Message-ID: <87ehcoktsl.fsf@gmail.com> References: <87r4goy0uo.fsf@krugs.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiAz9-00052v-R0 for emacs-orgmode@gnu.org; Thu, 30 May 2013 18:06:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiAz8-0006pW-K0 for emacs-orgmode@gnu.org; Thu, 30 May 2013 18:06:15 -0400 Received: from mail-vb0-x234.google.com ([2607:f8b0:400c:c02::234]:54484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiAz8-0006pN-Fs for emacs-orgmode@gnu.org; Thu, 30 May 2013 18:06:14 -0400 Received: by mail-vb0-f52.google.com with SMTP id p12so558822vbe.25 for ; Thu, 30 May 2013 15:06:13 -0700 (PDT) In-Reply-To: <87r4goy0uo.fsf@krugs.de> (Rainer M. Krug's message of "Thu, 30 May 2013 16:54:39 +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 --=-=-= Content-Type: text/plain Rainer@krugs.de (Rainer M. Krug) writes: > Hi > > I am using org-babel-tangle-jump-to-org when debugging code written in > org and tangled. I have some longisch code blocks and it is always > irritating, as it only jumps to the codde block. Would it be possible to > extend the function, that it jumps to the line of the code? > That would make this funktion much more user friendly. > I've just pushed up a change which should make this change. I tested this against the example.C file tangled from the attached Org-mode file. --=-=-= Content-Type: text/x-org Content-Disposition: inline; filename=example.org * example :PROPERTIES: :tangle: yes :comments: link :END: The required headers. #+name: header #+begin_src C #include #+end_src Here is the auxiliary function. #+name: auxiliary #+begin_src C void aux(char* arg){ printf("first argument: %s\n", arg); } #+end_src Here is the main function. #+name: main #+begin_src C int main(int argc, char *argv[]) { aux(argv[1]); return 0; } #+end_src --=-=-= Content-Type: text/plain While implementing this change I did notice that this jumping functionality only appears to work with linked code blocks, which should I believe is a bug. Best, > > Thanks, > > Rainer -- Eric Schulte http://cs.unm.edu/~eschulte --=-=-=--