From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Mark H. David" Newsgroups: gmane.emacs.devel Subject: Re: Python mode for emacs? Date: Sat, 23 May 2020 17:45:49 -0700 Message-ID: <2906e170-ad93-42de-9a7e-ad31648ecc38@www.fastmail.com> References: <1e7730c8-ddbe-410a-8804-e780e796c6f2@www.fastmail.com> <877dx2ah3q.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="126951"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.3.0-dev0-488-g9249dd4-fm-20200522.001-g9249dd48 Cc: Emacs Development To: =?UTF-8?Q?K=C3=A9vin_Le_Gouguec?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun May 24 02:46:42 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jcemo-000WvP-L5 for ged-emacs-devel@m.gmane-mx.org; Sun, 24 May 2020 02:46:42 +0200 Original-Received: from localhost ([::1]:39506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcemn-0002XV-KF for ged-emacs-devel@m.gmane-mx.org; Sat, 23 May 2020 20:46:41 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50452) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcemK-00027R-NL for emacs-devel@gnu.org; Sat, 23 May 2020 20:46:12 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:45729) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcemJ-00051B-QD for emacs-devel@gnu.org; Sat, 23 May 2020 20:46:12 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 3A7C65C0071; Sat, 23 May 2020 20:46:10 -0400 (EDT) Original-Received: from imap21 ([10.202.2.71]) by compute4.internal (MEProxy); Sat, 23 May 2020 20:46:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=q2/ggaNdgRriwNUujYTvUeHaK2ZxzlEV2Tn0skjdB UQ=; b=taq7I/EgpfrI+8CGWuK6ONsXJootkKGm2956NZGECqqLI2JJpp9bVoNlL Zz5xXb5AKRRMjP8QzwjN+iC2pgWMp74UesHgqBzm7FWiUwiFvW3DAEzVMHLQaxqr y223aeCguAp8+UPx1dCdsxUtmDpF5nC3LBpanNxeWk1Z/EwEjLqvn+3TBC0meH4t DF4knuXDhLK2fvPQ6WSQf3abRjBIHE2DqehiHZvuVxr6Ew72kg1TEXqdyirOwCiS 3o6f8dt0j9vdHFg6vz2K01q1TGxOhlAJ3kHcOsemSGgMXbzbzsbjXP3WbBs/i4NZ DFczv5+zqEB3wA3XqZwMS4xbov+BA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudduiedgfeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvffutgfgsehtqhertderreejnecuhfhrohhmpedfofgr rhhkucfjrdcuffgrvhhiugdfuceomhhhugeshihvrdhorhhgqeenucggtffrrghtthgvrh hnpeffffehvefhieelkefgheevhfejiefhtefhjeeliedvieevffffkeetledtfeduueen ucffohhmrghinhepghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedtnecurfgrrh grmhepmhgrihhlfhhrohhmpehmhhguseihvhdrohhrgh X-ME-Proxy: Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id F0A66660069; Sat, 23 May 2020 20:46:09 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <877dx2ah3q.fsf@gmail.com> Received-SPF: none client-ip=66.111.4.25; envelope-from=mhd@yv.org; helo=out1-smtp.messagingengine.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/23 20:46:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251294 Archived-At: Wow, apropos... Thanks! ----- Original message ----- From: "K=C3=A9vin Le Gouguec" To: "Mark H. David" Cc: Emacs Development Subject: Re: Python mode for emacs? Date: Saturday, May 23, 2020 6:58 AM "Mark H. David" writes: > Like I > want to know if there's a way to go forward/backword over > parenthesized expressions. In Python mode currently, if you do C-M-B > at the end of the following, it goes back to the beginning of the > 'if', rather than to the matching (. > > if verbose: > print("blah blah") I think you'll find this recent bug report of interest: https://debbugs.gnu.org/41361 tl;dr the current way to change the default behaviour is to add this to your init file: (add-hook 'python-mode-hook (lambda () (setq-local forward-sexp-function nil))) (See also "Movement"-related comments in python.el.) The discussion in the bug report is still ongoing, so don't hesitate to weigh in, e.g. if you think that the default behaviour should be changed.