From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#20897: 25.0.50; [python] sexp-movement are confusing Date: Fri, 04 Feb 2022 00:22:56 +0100 Message-ID: <877dabk01b.fsf@gmail.com> References: <87616blr7a.fsf@gmx.us> <878rurlkpj.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38243"; 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, Rasmus To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 04 00:24:39 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 1nFlSw-0009fx-2P for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Feb 2022 00:24:38 +0100 Original-Received: from localhost ([::1]:34024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFlSu-0004lE-LX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Feb 2022 18:24:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:56370) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFlSf-0004iV-C3 for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 18:24:21 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nFlSM-0005Yy-3x for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 18:24:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nFlSL-00071t-S0 for bug-gnu-emacs@gnu.org; Thu, 03 Feb 2022 18:24:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Feb 2022 23:24: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.164393058926956 (code B ref 20897); Thu, 03 Feb 2022 23:24:01 +0000 Original-Received: (at 20897) by debbugs.gnu.org; 3 Feb 2022 23:23:09 +0000 Original-Received: from localhost ([127.0.0.1]:58265 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFlRU-00070i-Mw for submit@debbugs.gnu.org; Thu, 03 Feb 2022 18:23:08 -0500 Original-Received: from mail-wm1-f41.google.com ([209.85.128.41]:56206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nFlRP-0006zw-Q9 for 20897@debbugs.gnu.org; Thu, 03 Feb 2022 18:23:07 -0500 Original-Received: by mail-wm1-f41.google.com with SMTP id r7so3248650wmq.5 for <20897@debbugs.gnu.org>; Thu, 03 Feb 2022 15:23:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=yn0y9+GEMZKMM9uTnONK+POmsO5EbrllY/x9MGeuB3w=; b=Am/M5i36tT1XYTPvR4hE7gC0fDXCZDyE0kE8E4t5WkklylOt7dBwLorNWsGLrWKF87 h7iWRYoGq+8B3YvrEFpWfHhijKf2F0nqU4mzNVU/Q2Wqv9GjnQmgfvQH7ul7aN8/Fgs9 ZGbgjPO+5w97Hch3e9cGdKbVDqYyN+FVLgJNbkClbDHOhg9M1Yk42OKQCntD2BVGUwgI ufEkBe6oampEyf97/Xi5D/S+7dO/y5pqtDZvUxqeIIedzXwE8mzXIHwgAnb2/XFds+lF c2kwmJpfUmCYbXXDpjRfCy+cya1RZZDfzoQ6JWm2X6MphcYK2Z4LcnSnKSlh8vPTuxtF +Pxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=yn0y9+GEMZKMM9uTnONK+POmsO5EbrllY/x9MGeuB3w=; b=c0zOlzoFZSU43wobTWA6IYSiOgegH2Hg6Ws8qYtv+uqzhaIEM8pVS8aQpRrsvg1g4P mL5gAQCPnVJUDli2VamR3HBVTKw5NhICWVD31P2ClqUZeq3eKnLO+UoDZkQFUCAKOeCU Q6A3a99CTgvlODUob56C5nvrV69YmxV/+yiAgt0+uxI9nr8+KotOhOi5HdJgP53L9eSW dxZhFNzinoxq0JblM2ugNImwtCMYPTZoRur+HXXUJf7qr0E9xktCG0eeM6DWB0jLe1mZ NcjvrwpdmX1URODnm3LPslVHQfD50qih5jVue9UbgPWKnJKiLGBK+u/VK1XtL/Z+RGCy rz9w== X-Gm-Message-State: AOAM531Gsmn06HJ3rYpnH/TzaaN8IX7et6ZBcKQmdE6f0Ax74eAjAFAU SGY0o9DiadWqFrMaXZsZtvgXPndRmEc= X-Google-Smtp-Source: ABdhPJzfqw1lC9PSTYoxZvazYe/PT2KM553A6EGicukob3DAbse1HXi2L8U7m3g+ZH9OWFz/V2/KKw== X-Received: by 2002:a1c:6a11:: with SMTP id f17mr9224wmc.183.1643930577798; Thu, 03 Feb 2022 15:22:57 -0800 (PST) Original-Received: from amdahl30 ([2a01:e0a:253:fe0:2ef0:5dff:fed2:7b49]) by smtp.gmail.com with ESMTPSA id c10sm183252wrq.11.2022.02.03.15.22.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Feb 2022 15:22:57 -0800 (PST) In-Reply-To: <878rurlkpj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Thu, 03 Feb 2022 22:11:04 +0100") 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:225941 Archived-At: Lars Ingebrigtsen writes: > 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. FWIW, 28.1 introduces python-forward-sexp-function, which can be set to nil to have something that is, quoting the Custom tag, more "CC-mode like". For older versions, the commentary of python.el suggests an equivalent way to tweak sexp movement. I haven't checked if this option satisfies all of the OP's expectations; still, I figured it was worth mentioning in this thread FTR.