From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer@krugs.de (Rainer M. Krug) Subject: Re: refine org-babel-tangle-jump-to-org? Date: Fri, 31 May 2013 09:35:42 +0200 Message-ID: <87fvx3bnzl.fsf@krugs.de> References: <87r4goy0uo.fsf@krugs.de> <87ehcoktsl.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiJsW-0005qF-6w for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:36:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UiJsU-000783-UQ for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:36:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:37683) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UiJsU-00077v-EW for emacs-orgmode@gnu.org; Fri, 31 May 2013 03:35:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UiJsT-0006LL-CG for emacs-orgmode@gnu.org; Fri, 31 May 2013 09:35:57 +0200 Received: from arn78-1-88-186-171-7.fbx.proxad.net ([88.186.171.7]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 May 2013 09:35:57 +0200 Received: from Rainer by arn78-1-88-186-171-7.fbx.proxad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 May 2013 09:35:57 +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: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric Schulte writes: > 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. Thanks - works much better now. Very nice - it jumps even to the location in an indirect buffer - perfect. Without trying to be a perfectionist, it is in most cases between one and three lines off. Is this only in y case? If yes, please let me know and I can send you an org file privately. It would be really nice, if it would be possible to put the cursor on the same line, preferably same character? But it is definitely usable like this for debugging. > > * 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 > > > While implementing this change I did notice that this jumping > functionality only appears to work with linked code blocks,=20 linked code blocks? Do you mean the header argument :comments link or, as I use :comments yes? If I remember correctly, when you announced this function, you explicitly mentioned that :comments yes is required for it to work? Thanks a lot, Rainer >which should > I believe is a bug. > > Best, > >> >> Thanks, >> >> Rainer =2D-=20 Rainer M. Krug --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iQEcBAEBAgAGBQJRqFLOAAoJENvXNx4PUvmCM7UIAM7b793rFezH20Vkw2rxaJCD T3U5bWGF3WmLn9I5L7+ragFcNjqBjhbXjdyuoawtVd7O+tPxu70U8KFtRFg+bGHM K3hey5IZzR159YVAZPYSZfjRJOliAvm0RG0m7FBiXQGlu7HrJZtG56VCaHNwdM+Y NmCu7bym957M2nzjdGJ6PY2jbo9XwrLlU9BMAus54wMgQrhzSnH6cGf2yLR8ZQHt EixSFzXJUk67i1FxFYq3UFMGKbPge9i2ROBSoHHRQsQwOLs9D2cfoh6iDVqslx93 /bEQC3T6Y5ijt+mvb5l34YeKwrwHfnOcDDe0gpavKaJZDtWgILK73JgMVIKnS1s= =QV1X -----END PGP SIGNATURE----- --=-=-=--