On Friday, September 19, 2014 11:42:58 PM UTC-5, Kuba Roth wrote:
>
> 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 ambiguous and 
> can be used not only to exit the function. With the nested for loops with 
> some if statements this gets pretty tricky.
> Any ideas are very welcome
>

Assuming you have a way to avoid getting tripped up by `end`-as-last-index 
keyword, could you search up for the beginning of the function, then do 
matching? In julia-mode, there's variables for block begin and end 
keywords. 

Reply via email to