emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python interactive navigation around nested functions


From: Stefan Monnier
Subject: Re: Python interactive navigation around nested functions
Date: Fri, 24 Jun 2016 20:18:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux)

>   defun f1():

>     # stuff

>     defun f2():
>       # stuff

>     # stuff
>     # stuff
>     # lots and lots of stuff
>     # So much stuff that when I'm here I know I'm in f1(), but f2 isn't
>     #   something i'm thinking about at all

I guess the question is how to distinguish this case.  IOW, how much is
"lots and lots of stuff".  The current behavior is meant for cases like:

   defun f1():
     # Stuff
     defun f2():
       # More stuff
     defun f3():
       # Yet more stuff
     defun f4():
       # You get the idea
     defun f5():
       # Aha
     # Here we go

Also for interactive use, we generally prefer to move less than more,
since it's fairly easy for the user to repeat the command until she gets
where she wants to, whereas if the command moves too far, there's not
much she can do, other than try and find some other command.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]