emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Python mode for emacs?


From: Kévin Le Gouguec
Subject: Re: Python mode for emacs?
Date: Sat, 23 May 2020 15:58:01 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

"Mark H. David" <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]