]> git.eshelyaron.com Git - emacs.git/commit
Sink python indent offset guessing to avoid test failure
authorMattias Engdegård <mattiase@acm.org>
Wed, 30 Nov 2022 12:12:38 +0000 (13:12 +0100)
committerMattias Engdegård <mattiase@acm.org>
Wed, 30 Nov 2022 12:22:04 +0000 (13:22 +0100)
commitaf1a99d53f2ac5017b7a016f1ef2bce57c28a5b0
tree824123ebbdefb61a0e74393db209a0e23b91e645
parentdc0f2ec2dbf101a7b755db106ff0e53cbca3b23c
Sink python indent offset guessing to avoid test failure

Call python-indent-guess-indent-offset late in the set-up of
python-mode and python-ts-mode to make sure that the required other
settings (of syntax-propetize-function in particular) have been
carried out.  This cures a python-test failure (bug#59477).

* lisp/progmodes/python.el (python-base-mode): Move
python-indent-guess-indent-offset call from here...
(python-mode): ...to here...
(python-ts-mode): ...and here.
lisp/progmodes/python.el