GNU bug report logs - #19987
Broken sexp movement in Python mode

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Tue, 3 Mar 2015 10:34:01 UTC

Severity: normal

Done: fgallina <at> gnu.org (Fabián Ezequiel Gallina)

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
Cc: tracker <at> debbugs.gnu.org
Subject: bug#19987: closed (Broken sexp movement in Python mode)
Date: Thu, 09 Apr 2015 04:56:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 09 Apr 2015 01:55:54 -0300
with message-id <87iod5j3xh.fsf <at> gnu.org>
and subject line Broken sexp movement in Python mode
has caused the debbugs.gnu.org bug report #19987,
regarding Broken sexp movement in Python mode
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
19987: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19987
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Broken sexp movement in Python mode
Date: Tue, 3 Mar 2015 11:33:24 +0100
[Message part 3 (text/plain, inline)]
$ 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
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: fgallina <at> gnu.org (Fabián Ezequiel Gallina)
To: 19987-done <at> debbugs.gnu.org
Subject: Broken sexp movement in Python mode
Date: Thu, 09 Apr 2015 01:55:54 -0300
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.


This bug report was last modified 10 years and 49 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.