emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] refine org-babel-tangle-jump-to-org?


From: Eric Schulte
Subject: Re: [O] refine org-babel-tangle-jump-to-org?
Date: Thu, 30 May 2013 18:05:30 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

address@hidden (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.

* example
  :PROPERTIES:
  :tangle:   yes
  :comments: link
  :END:

The required headers.
#+name: header
#+begin_src C
  #include <stdio.h>
#+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

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]