help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: how to go back to matching parenthesis in python-mode?


From: edgar
Subject: Re: how to go back to matching parenthesis in python-mode?
Date: Mon, 25 Oct 2021 16:11:04 +0000
User-agent: Roundcube Webmail/1.2.3

Hi Kévin,

On 2021-10-25 06:20, Kévin Le Gouguec wrote:
Up to version 27.2, the recommended way (explained in the opening
commentary of python.el[1]) is to set forward-sexp-function to nil in
python-mode-hook:

(add-hook 'python-mode-hook
          (lambda () (setq forward-sexp-function nil)))

In 28.1, the new user option python-forward-sexp-function will let you
do away with the hook[2].


Thank you very much. I did check python.el, but only to see the function. I am sorry; I never imagined that this situation would be explained there. Much appreciated :) .


[1]
https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/python.el?h=emacs-27.2#n59
[2]
https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=emacs-28&id=1e8be48738e1324edb9891ff6f7077bd1306cdd7#n2862

-------------------------------------------------
This free account was provided by VFEmail.net - report spam to abuse@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!


reply via email to

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