From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Jumping between source blocks in a file Date: Wed, 02 Dec 2015 11:33:30 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36838) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a44jH-0003Ha-SA for emacs-orgmode@gnu.org; Wed, 02 Dec 2015 05:33:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a44jD-0004cJ-RB for emacs-orgmode@gnu.org; Wed, 02 Dec 2015 05:33:43 -0500 Received: from mail-wm0-f41.google.com ([74.125.82.41]:33973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a44jD-0004cD-LI for emacs-orgmode@gnu.org; Wed, 02 Dec 2015 05:33:39 -0500 Received: by wmvv187 with SMTP id v187so247870609wmv.1 for ; Wed, 02 Dec 2015 02:33:39 -0800 (PST) In-Reply-To: (Andreas Leha's message of "Wed, 02 Dec 2015 09:49:18 +0000") 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: Andreas Leha Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Andreas Leha writes: > Rainer M Krug writes: >> Rainer M Krug writes: >> >>> Andreas Leha writes: >>> >>>> Hi Andrew, >>>> >>>> Martin Yrj=C3=B6l=C3=A4 writes: >>>>> Hi Andrew! >>>>> >>>>> Andrew Kirkpatrick writes: >>>>> >>>>>> If this is deemed useful, I'm happy to make changes suitable for >>>>>> inclusion in the project. >>>>> >>>>> Thanks for sharing! I would certainly want these functions included in >>>>> org-mode by default. They streamline at least my literate programming >>>>> workflow substantially. >>>>> >>>> >>>> Sorry for joining late. I too find these useful. >>> >>> Absolutely - very useful. Please include! >>>> >>>> (Also useful would be the possibility to jump to noweb references >>>> directly from the src buffer...) >>> >>> Very nice idea indeed - or possibly even expand them when executing? But >>> I think this would be a job for the mode in the source buffer... >> >> Actually, expand them when opening the Source Buffer (C-c ') and >> possibly update them when closing? >> > > This might conflict with open Source Buffers for the referenced code > block. True - than simply deliminate them with something like ## <> BEGIN ... ## <> END and *don't* update them at the end? Probably better: language specific - for R one could write the block to a temporary file and then insert a =3Dsource()=3D to execute it: ## DO NOT EDIT - AUTO INSERTED - BEGIN source("<>.R") ## DO NOT EDIT - AUTO INSERTED - END Would make debugging much easier, if they would be in the source block where they are used. And if no language specific behavior is supplied, use the present behavior. > >>> >>> At the moment, these noweb references are very nice, but not so nice wh= en >>> debugging a source block where they are used. > > Exactly. Let's do some brainstorming how this could be solved. Cheers, Rainer > > Regards, > Andreas > > =2D-=20 Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology,= UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJWXsj+AAoJENvXNx4PUvmCzj0IAJKhSu+5noHNZ6YRw0Sj8UP/ l+BdqgAKV6TMLQSHbkPDLfAUnV58W8WhNmixPKLUr4G59q5tg/Cgou7tW50IpLZL 44isPbMSsNU+jdXka9DU2/l8KWJeoVGzVj4QnfLJeVhBLce0PTi/o1cvjYARWIzK BiuOY3E9pFajEPi6K6WuuUDyKRMlF54iou5htQbwj/nWQ7XVTiN18Am7O9anm8kp fp0KL4AxcyrWoIcQcaX0LeIXIvP0iYbku0DJeM2Ql9+zclqLSZXAD6UZdCh0jrS2 CCl0ktifATgeBJFOuMFonMlDheoQcGfvvBuvRL1lVW+FjINNd4rBIN7x597e8xU= =LqjO -----END PGP SIGNATURE----- --=-=-=--