From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#20897: 25.0.50; [python] sexp-movement are confusing Date: Thu, 03 Feb 2022 22:11:04 +0100 Message-ID: <878rurlkpj.fsf@gnus.org> References: <87616blr7a.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12924"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: 20897@debbugs.gnu.org To: Rasmus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 03 22:49:31 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFjyt-0003A0-3T for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 22:49:31 +0100 Original-Received: from localhost ([::1]:38224 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFjyr-0002om-Fz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 16:49:29 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFjOc-0004pm-FT for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 16:12:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35951) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFjOc-0006ey-5C for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 16:12:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFjOb-0005Md-UN for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 16:12:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Feb 2022 21:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20897 X-GNU-PR-Package: emacs Original-Received: via spool by 20897-submit@debbugs.gnu.org id=B20897.164392267620547 (code B ref 20897); Thu, 03 Feb 2022 21:12:01 +0000 Original-Received: (at 20897) by debbugs.gnu.org; 3 Feb 2022 21:11:16 +0000 Original-Received: from localhost ([127.0.0.1]:58078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFjNr-0005LL-Ot for submit@debbugs.gnu.org; Thu, 03 Feb 2022 16:11:15 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:55304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFjNq-0005L5-7b for 20897@debbugs.gnu.org; Thu, 03 Feb 2022 16:11:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=PN0WeVS0/IleebnDtbCc/ZT60papEP6rQM/xoIeDGIY=; b=AnJQQvziFgJy9M1jxlx43fCY5Y hcdAs7LEGxbk6q7AJLOpJAuOQI+sMRN49owdpqS+lLnC5smiNmiE8qmgUjyq+1PLlre/+nd5gVqet EeFvo6pJm7Pa6LPc18OMnztDhsjXscsBq9EYlXNdFq+OXsTvXi8J56ajMpkY1f1bDuC0=; Original-Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFjNg-0004Zc-MJ; Thu, 03 Feb 2022 22:11:07 +0100 X-Now-Playing: New Fads's _Love It All_: "Every Once In A While" In-Reply-To: <87616blr7a.fsf@gmx.us> (rasmus@gmx.us's message of "Thu, 25 Jun 2015 17:53:45 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:225932 Archived-At: Rasmus writes: > Open test.py > > Insert something like this, ignoring point denoted by "{v,^} {1,...,5}". > > 4 5 6 > v v v > def foo(x): > """return x as one""" > > x = 1; > > return(x) > ^ ^ ^ > 2 3 1 > > Consider points 1,...,5. At point 2 forward-sexp will go to point 1, at > point 3 backward-sexp will go to point 2. At point 1, sexp-backward will > go to 4 rather than point 2 (as I would expect). Likewise, at point 4, > forward sexp goes to point 1 rather than 5. At point five, everything is > as I would expect, and {forward,backward}-sexp goes to 6 and 4. (I'm going through old bug reports that unfortunately weren't resolved at the time.) Point movement at 2 has been fixed -- it now goes to 3 (in Emacs 29), not 1. As for the other points here -- that C-M- at 4 shouldn't move to 1 -- I think that would be pretty surprising. That is, these commands (try to) move by semantic unit, which is ambiguous in languages like Python, so people have differing opinions. But as far as I can tell, python-mode here works as designed, so I'm therefore closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no