Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: > Rainer M Krug <rai...@krugs.de> writes: >> Rainer M Krug <rai...@krugs.de> writes: >> >>> Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: >>> >>>> Hi Andrew, >>>> >>>> Martin Yrjölä <martin.yrj...@gmail.com> 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 ## <<REF>> BEGIN ... ## <<REF>> 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 =source()= to execute it: ## DO NOT EDIT - AUTO INSERTED - BEGIN source("<<REF>>.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 when >>> debugging a source block where they are used. > > Exactly. Let's do some brainstorming how this could be solved. Cheers, Rainer > > Regards, > Andreas > > -- 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: rai...@krugs.de Skype: RMkrug PGP: 0x0F52F982
signature.asc
Description: PGP signature