[julia-users] select all code inside a function in emacs

2014-09-20 Thread Mike Innes
Defining a "starting line" as a non-blank line which isn't preceded by whitespace and isn't just "end", what you want to do is to scan up from the current cursor position to the first starting line. Then scan back down to the first non-blank line before the next starting line, *or* the first end

[julia-users] select all code inside a function in emacs

2014-09-19 Thread Kuba Roth
Could someone please advise me the best strategy to select a function (block of code) in emacs? I'm trying to come up with a tool to select whole body of a function from any point within that code which belongs to that function. The problem I have at the moment is that 'end' keyword is ambiguou