Next: , Previous: Convert to variable, Up: Expression handling

3.2.3 Convert region to function

The command languide-convert-region-to-function takes the selected region, defines a new function just before the one containing the region, and replaces the original region with a call to the new function. It examines the region and the surrounding code, to find any variables referred to in the region but defined outside it, and makes those into arguments to the new function. Logo