From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Python interactive navigation around nested functions Date: Fri, 24 Jun 2016 20:18:52 -0400 Message-ID: References: <87lh21eq5c.fsf@secretsauce.net> <87eg7rdrj7.fsf@secretsauce.net> <87d1nbdqkn.fsf@secretsauce.net> <87twgick5w.fsf@secretsauce.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1466813996 25423 80.91.229.3 (25 Jun 2016 00:19:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jun 2016 00:19:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dima Kogan Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jun 25 02:19:48 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bGbK7-00038I-AP for ged-emacs-devel@m.gmane.org; Sat, 25 Jun 2016 02:19:47 +0200 Original-Received: from localhost ([::1]:47781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGbK6-0006ng-6U for ged-emacs-devel@m.gmane.org; Fri, 24 Jun 2016 20:19:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54864) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGbJW-0006nZ-0S for emacs-devel@gnu.org; Fri, 24 Jun 2016 20:19:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bGbJP-0002df-US for emacs-devel@gnu.org; Fri, 24 Jun 2016 20:19:09 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:33088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bGbJP-0002dP-PI for emacs-devel@gnu.org; Fri, 24 Jun 2016 20:19:03 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by pruche.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id u5P0IrUs019246; Fri, 24 Jun 2016 20:18:54 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id B00F9AE17D; Fri, 24 Jun 2016 20:18:52 -0400 (EDT) In-Reply-To: <87twgick5w.fsf@secretsauce.net> (Dima Kogan's message of "Fri, 24 Jun 2016 15:10:51 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5716=0 X-NAI-Spam-Version: 2.3.0.9418 : core <5716> : inlines <4952> : streams <1657424> : uri <2237490> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:204745 Archived-At: > 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