Subject: bug#19987: closed (Broken sexp movement in Python mode)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 09 Apr 2015 04:56:02 +0000

Your bug report

#19987: Broken sexp movement in Python mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
19987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19987
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Broken sexp movement in Python mode
From: [email-masked] (Fabián Ezequiel Gallina)
To: [email-masked]
Date: Thu, 09 Apr 2015 01:55:54 -0300
List-Id: <debbugs-submit.debbugs.gnu.org>

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án.

Subject: Broken sexp movement in Python mode
From: Paul Pogonyshev <[email-masked]>
To: [email-masked]
Date: Tue, 3 Mar 2015 11:33:24 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

$ 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