From unknown Sun Jun 22 20:56:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#19987 <19987@debbugs.gnu.org> To: bug#19987 <19987@debbugs.gnu.org> Subject: Status: Broken sexp movement in Python mode Reply-To: bug#19987 <19987@debbugs.gnu.org> Date: Mon, 23 Jun 2025 03:56:01 +0000 retitle 19987 Broken sexp movement in Python mode reassign 19987 emacs submitter 19987 Paul Pogonyshev severity 19987 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 03 05:33:44 2015 Received: (at submit) by debbugs.gnu.org; 3 Mar 2015 10:33:44 +0000 Received: from localhost ([127.0.0.1]:33520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSk91-000213-Nl for submit@debbugs.gnu.org; Tue, 03 Mar 2015 05:33:43 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43695) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSk8y-00020f-9J for submit@debbugs.gnu.org; Tue, 03 Mar 2015 05:33:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSk8s-0005Fg-30 for submit@debbugs.gnu.org; Tue, 03 Mar 2015 05:33:34 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_40,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:43629) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSk8s-0005Fb-0B for submit@debbugs.gnu.org; Tue, 03 Mar 2015 05:33:34 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45368) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSk8n-0006AD-Qp for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 05:33:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YSk8j-0005Dd-R7 for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 05:33:29 -0500 Received: from mail-ie0-x236.google.com ([2607:f8b0:4001:c03::236]:37086) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YSk8j-0005DY-M4 for bug-gnu-emacs@gnu.org; Tue, 03 Mar 2015 05:33:25 -0500 Received: by iecrl12 with SMTP id rl12so55970062iec.4 for ; Tue, 03 Mar 2015 02:33:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=2wB45HvPqBWL0hGDhIRlT7McB8jRDvcuicAYg077Ef4=; b=iL/QkQy77rC4sigL9VygpzdfGT/dDXHrYLkOZHY3z601p7G0lb+rtiBHfidFluIVb4 jvhsknnC6m189n2zQkdgeKA0ZZcGkumB5XX36krqA/5STAX4AH+fm0glRqulwUQfJYVP 1/EdNEqdRYGwungpf/NKJc0XAZ69lAX+dVrn9/NcPJhTJt0syxLu2s7G+Fi1FEUSbw/f V9V3e/2qt+23THY+LTB8fhIuw/lOHU1zOpVC0OajvdUArJdD3g4P11ZHB8/GVIY+khay NnEIfxRq/Gl2j3fSjwJuuN6bu/iuA3BHazLxWxIDXbXHeUfvaobEi3tiKQQsKb2wu4/x a/Nw== MIME-Version: 1.0 X-Received: by 10.50.143.106 with SMTP id sd10mr815371igb.17.1425378804905; Tue, 03 Mar 2015 02:33:24 -0800 (PST) Received: by 10.36.39.138 with HTTP; Tue, 3 Mar 2015 02:33:24 -0800 (PST) Date: Tue, 3 Mar 2015 11:33:24 +0100 Message-ID: Subject: Broken sexp movement in Python mode From: Paul Pogonyshev To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=001a1135fbe2563e3d05105fdd3b X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) --001a1135fbe2563e3d05105fdd3b Content-Type: text/plain; charset=UTF-8 $ emacs - q Visit a new Python buffer and type: a = b (0) C-M-f at the beginning of the buffer moves the point immediately to the end of line. Expected is point after 'a', as in other modes. As another visible and annoying effect, C-M-k kills more than expected, thus breaking editing habits. Note that C-M-b from the end of line moves point to '(', then to 'b', then to 'a', just as expected. Paul --001a1135fbe2563e3d05105fdd3b Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
$ emacs - q

Visit a new P= ython buffer and type:

a =3D b (0)

C-M-f at the b= eginning of the buffer moves the point immediately to the end of line. Expe= cted is point after 'a', as in other modes. As another visible and = annoying effect, C-M-k kills more than expected, thus breaking editing habi= ts.

Note that C-M-b from the end of line moves point to '(',= then to 'b', then to 'a', just as expected.

P= aul
--001a1135fbe2563e3d05105fdd3b-- From debbugs-submit-bounces@debbugs.gnu.org Tue Mar 03 05:35:37 2015 Received: (at 19987) by debbugs.gnu.org; 3 Mar 2015 10:35:37 +0000 Received: from localhost ([127.0.0.1]:33532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSkAq-00024c-OF for submit@debbugs.gnu.org; Tue, 03 Mar 2015 05:35:37 -0500 Received: from mail-ig0-f169.google.com ([209.85.213.169]:38286) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YSkAo-00024E-Cu for 19987@debbugs.gnu.org; Tue, 03 Mar 2015 05:35:34 -0500 Received: by igbhl2 with SMTP id hl2so25482554igb.3 for <19987@debbugs.gnu.org>; Tue, 03 Mar 2015 02:35:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=9m79KSffZ9qCBXbyIkBCxYg5plbi/2Z0MgLYMP24Dis=; b=HdFGJ/9dTLsMIusVhkMzDp8fIZGN7KY+k0C2ihCotQT6wv1lT1ZbVw+QPaVTOe9pto aBvUrLQNqgJAiCM+TzauNQQq8e0XnJbuAn44BVFDLLrhlLMO2wGDLtORdEjKP/m/2hDa 9Yriyaqeevfiszt+cwk56ww9KFtcInb7dJJlEunmFaBaWDrJb9nIUhZ3qsjIknGqwL0v RER6iN8lqloykdqTSY9A5Gy4khna8hnw1ghOjiWLOF+e65ydOPhQocGeOf7t+Aitoau3 CQlVIkLCSGO3LRQv+eFU/LrDZIPuEA8ZBSav7O9LV8HkuWyr+JaO6r6bG66eluQaXiQR Zm2Q== MIME-Version: 1.0 X-Received: by 10.107.10.74 with SMTP id u71mr921476ioi.0.1425378928579; Tue, 03 Mar 2015 02:35:28 -0800 (PST) Received: by 10.36.39.138 with HTTP; Tue, 3 Mar 2015 02:35:28 -0800 (PST) In-Reply-To: References: Date: Tue, 3 Mar 2015 11:35:28 +0100 Message-ID: Subject: Re: bug#19987: Acknowledgement (Broken sexp movement in Python mode) From: Paul Pogonyshev To: 19987@debbugs.gnu.org Content-Type: multipart/alternative; boundary=001a113f8dacb55a2705105fe4ff X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 19987 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) --001a113f8dacb55a2705105fe4ff Content-Type: text/plain; charset=UTF-8 Forgot to mention: this is on a just-compiled master branch: GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 2015-03-03 On 3 March 2015 at 11:34, GNU bug Tracking System wrote: > Thank you for filing a new bug report with debbugs.gnu.org. > > This is an automatically generated reply to let you know your message > has been received. > > Your message is being forwarded to the package maintainers and other > interested parties for their attention; they will reply in due course. > > Your message has been sent to the package maintainer(s): > bug-gnu-emacs@gnu.org > > If you wish to submit further information on this problem, please > send it to 19987@debbugs.gnu.org. > > Please do not send mail to help-debbugs@gnu.org unless you wish > to report a problem with the Bug-tracking system. > > -- > 19987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19987 > GNU Bug Tracking System > Contact help-debbugs@gnu.org with problems > --001a113f8dacb55a2705105fe4ff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Forgot to mention: this is on a just-compiled master branc= h:
GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) o= f 2015-03-03

On 3 March 2015 at 11:34, GNU bug Tracking System &l= t;help-debbugs@gn= u.org> wrote:
Thank you for= filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
=C2=A0bug-gnu-emacs@gnu.org
If you wish to submit further information on this problem, please
send it to 19987@debbugs.gnu.org.

Please do not send mail to
help-deb= bugs@gnu.org unless you wish
to report a problem with the Bug-tracking system.

--
19987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D19987
GNU Bug Tracking System
Contact help-debbugs@gnu.org wi= th problems

--001a113f8dacb55a2705105fe4ff-- From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 09 00:55:58 2015 Received: (at 19987-done) by debbugs.gnu.org; 9 Apr 2015 04:55:59 +0000 Received: from localhost ([127.0.0.1]:49873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yg4VS-00021d-Jp for submit@debbugs.gnu.org; Thu, 09 Apr 2015 00:55:58 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:56432 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Yg4VQ-00021W-SB for 19987-done@debbugs.gnu.org; Thu, 09 Apr 2015 00:55:57 -0400 Received: from [190.246.172.180] (port=47799 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Yg4VQ-00070H-82 for 19987-done@debbugs.gnu.org; Thu, 09 Apr 2015 00:55:56 -0400 From: fgallina@gnu.org (=?utf-8?Q?Fabi=C3=A1n?= Ezequiel Gallina) To: 19987-done@debbugs.gnu.org Subject: Broken sexp movement in Python mode Date: Thu, 09 Apr 2015 01:55:54 -0300 Message-ID: <87iod5j3xh.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 19987-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Adding the following to your .emacs will disable python.el's default forward-sexp behavior (which works in a ~lispy way): (add-hook 'python-mode-hook (lambda () (setq forward-sexp-function nil))) The parentheses behavior is a special case I'll document better as a follow up of #19954. Cheers, Fabi=C3=A1n. From unknown Sun Jun 22 20:56:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 May 2015 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator