unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19987: Broken sexp movement in Python mode
@ 2015-03-03 10:33 Paul Pogonyshev
       [not found] ` <handler.19987.B.14253788247758.ack@debbugs.gnu.org>
  2015-04-09  4:55 ` bug#19987: Broken sexp movement in Python mode Fabián Ezequiel Gallina
  0 siblings, 2 replies; 3+ messages in thread
From: Paul Pogonyshev @ 2015-03-03 10:33 UTC (permalink / raw)
  To: 19987

[-- Attachment #1: Type: text/plain, Size: 404 bytes --]

$ 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

[-- Attachment #2: Type: text/html, Size: 536 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#19987: Acknowledgement (Broken sexp movement in Python mode)
       [not found] ` <handler.19987.B.14253788247758.ack@debbugs.gnu.org>
@ 2015-03-03 10:35   ` Paul Pogonyshev
  0 siblings, 0 replies; 3+ messages in thread
From: Paul Pogonyshev @ 2015-03-03 10:35 UTC (permalink / raw)
  To: 19987

[-- Attachment #1: Type: text/plain, Size: 980 bytes --]

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 <help-debbugs@gnu.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):
>  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
>

[-- Attachment #2: Type: text/html, Size: 1711 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#19987: Broken sexp movement in Python mode
  2015-03-03 10:33 bug#19987: Broken sexp movement in Python mode Paul Pogonyshev
       [not found] ` <handler.19987.B.14253788247758.ack@debbugs.gnu.org>
@ 2015-04-09  4:55 ` Fabián Ezequiel Gallina
  1 sibling, 0 replies; 3+ messages in thread
From: Fabián Ezequiel Gallina @ 2015-04-09  4:55 UTC (permalink / raw)
  To: 19987-done


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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-04-09  4:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-03 10:33 bug#19987: Broken sexp movement in Python mode Paul Pogonyshev
     [not found] ` <handler.19987.B.14253788247758.ack@debbugs.gnu.org>
2015-03-03 10:35   ` bug#19987: Acknowledgement (Broken sexp movement in Python mode) Paul Pogonyshev
2015-04-09  4:55 ` bug#19987: Broken sexp movement in Python mode Fabián Ezequiel Gallina

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).