GNU logs - #71293, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71293: 29.3; indentation issue for Python mode
Resent-From: Fabrice Salvaire <fabrice.salvaire@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 31 May 2024 14:53:01 +0000
Resent-Message-ID: <handler.71293.B.17171671764425 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 71293
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 71293 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17171671764425
          (code B ref -1); Fri, 31 May 2024 14:53:01 +0000
Received: (at submit) by debbugs.gnu.org; 31 May 2024 14:52:56 +0000
Received: from localhost ([127.0.0.1]:55164 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sD3cl-00019H-6x
	for submit <at> debbugs.gnu.org; Fri, 31 May 2024 10:52:56 -0400
Received: from lists.gnu.org ([209.51.188.17]:54050)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <fabrice.salvaire@HIDDEN>) id 1sD3ch-000198-Bw
 for submit <at> debbugs.gnu.org; Fri, 31 May 2024 10:52:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <fabrice.salvaire@HIDDEN>)
 id 1sD3cV-0003kM-3a
 for bug-gnu-emacs@HIDDEN; Fri, 31 May 2024 10:52:39 -0400
Received: from smtp-18.smtpout.orange.fr ([80.12.242.18]
 helo=smtp.smtpout.orange.fr)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <fabrice.salvaire@HIDDEN>)
 id 1sD3cN-0002TR-1r
 for bug-gnu-emacs@HIDDEN; Fri, 31 May 2024 10:52:38 -0400
Received: from [192.168.1.2] ([82.124.140.120]) by smtp.orange.fr with ESMTPA
 id D3cIsaAuBuGjeD3cIsAqjk; Fri, 31 May 2024 16:52:27 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr;
 s=t20230301; t=1717167147;
 bh=17R6vw/0p/qgj8J+b/BATjRmWqplmx5HzJ4dkmbAmfk=;
 h=Message-ID:Date:MIME-Version:To:Subject:From;
 b=tbdZlarE7zxZs1ppslVmz9SpvEFWIoPxwq5xqxYriWiJmo2UslNU+vFBtEhW8JCoy
 xROLfdtr/ldJFvHGaZ0EYBtwc0ta7zLuW4olStnkrgRlmgmtitAbfVTqo3RJ3IZ912
 1dzgS8/M3wrQGp0yjO93isO7kgCeHLoi3cvr2jnbJgDGzINEDeioWen/JcPVZ6K0lj
 BrmWEhDvsxEIZBD1G5BwyvAmSPf8Tf8904sxjA3nqT2ffRvfpsHr97VugqpaxkR7LD
 r9O0k+EBneDvv6qLLh38ZrboN5yIbUrQ5rWJO542k6EtB1vPrvpDbT4UNuKq2Zwm7+
 tUe24x73gSH+Q==
X-ME-Helo: [192.168.1.2]
X-ME-Auth: ZmFicmljZS5zYWx2YWlyZUB3YW5hZG9vLmZy
X-ME-Date: Fri, 31 May 2024 16:52:27 +0200
X-ME-IP: 82.124.140.120
Content-Type: multipart/alternative;
 boundary="------------KFv7biMFF80Ly1oTOuQwf0cT"
Message-ID: <f79e67f1-967d-48fe-a437-ea3e9e9235f2@HIDDEN>
Date: Fri, 31 May 2024 16:52:26 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: fr-FR, en-GB
From: Fabrice Salvaire <fabrice.salvaire@HIDDEN>
Received-SPF: pass client-ip=80.12.242.18;
 envelope-from=fabrice.salvaire@HIDDEN; helo=smtp.smtpout.orange.fr
X-Spam_score_int: -8
X-Spam_score: -0.9
X-Spam_bar: /
X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 HEXHASH_WORD=1.159, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001,
 RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01,
 T_SPF_HELO_TEMPERROR=0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

This is a multi-part message in MIME format.
--------------KFv7biMFF80Ly1oTOuQwf0cT
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

I observed many times indentation issues for modern Python 3.

For examples:
```
class Foo:
def __init__(self, ...):
self.foo = ... # TAB won't indent to pos+4
```

A workaround is sometimes to close and reopen the file.
Thus I suspect a wrong state.
But I don't found any explanation.

I am using Python mode with treesitter enabled but I think it is not yet 
used for indentation ???

---
In GNU Emacs 29.3 (build 1, x86_64-redhat-linux-gnu, GTK+ Version 
3.24.41, cairo version 1.18.0) of
2024-03-25 built on 8d1efaa99cf549ff83f11657c3f4678a
Windowing system distributor 'The X.Org Foundation', version 11.0.12302006
System Description: Fedora Linux 39 (Workstation Edition)

Configured using:
'configure --build=x86_64-redhat-linux-gnu 
--host=x86_64-redhat-linux-gnu --program-prefix=
--disable-dependency-tracking --prefix=/usr --exec-prefix=/usr 
--bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share 
--includedir=/usr/include
--libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var 
--runstatedir=/run
--sharedstatedir=/var/lib --mandir=/usr/share/man 
--infodir=/usr/share/info --with-dbus --with-gif
--with-jpeg --with-png --with-rsvg --with-tiff --with-xpm 
--with-x-toolkit=gtk3 --with-gpm=no
--with-xwidgets --with-modules --with-harfbuzz --with-cairo --with-json
--with-native-compilation=aot --with-tree-sitter --with-sqlite3 
--with-webp --with-xinput2
build_alias=x86_64-redhat-linux-gnu host_alias=x86_64-redhat-linux-gnu 
CC=gcc
'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects -fexceptions 
-g -grecord-gcc-switches
-pipe -Wall -Werror=format-security 
-Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
-Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic 
-fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer '
LDFLAGS=-Wl,-z,relro 
PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++
'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g 
-grecord-gcc-switches -pipe -Wall
-Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 
-Wp,-D_GLIBCXX_ASSERTIONS
-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic 
-fasynchronous-unwind-tables
-fstack-clash-protection -fcf-protection -fno-omit-frame-pointer 
-mno-omit-leaf-frame-pointer ''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON 
LIBOTF LIBSELINUX
LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER 
PNG RSVG SECCOMP SOUND
SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM 
XINPUT2 XPM XWIDGETS GTK3
ZLIB

Important settings:
value of $LC_ALL: fr_FR.utf8
value of $LANG: fr_FR.utf8
locale-coding-system: utf-8-unix

Major mode: Python

Minor modes in effect:
global-flycheck-eglot-mode: t
flycheck-eglot-mode: t
eglot--managed-mode: t
treemacs-icons-dired-mode: t
treemacs-filewatch-mode: t
treemacs-follow-mode: t
treemacs-hide-gitignored-files-mode: t
treemacs-git-mode: t
treemacs-fringe-indicator-mode: always
shell-dirtrack-mode: t
flycheck-color-mode-line-mode: t
whitespace-mode: t
highlight-indent-guides-mode: t
doom-modeline-mode: t
server-mode: t
global-git-gutter-mode: t
git-gutter-mode: t
flycheck-pos-tip-mode: t
yas-global-mode: t
yas-minor-mode: t
global-corfu-mode: t
corfu-mode: t
global-treesit-auto-mode: t
global-flycheck-mode: t
flycheck-mode: t
flyspell-lazy-mode: t
undo-fu-session-global-mode: t
undo-fu-session-mode: t
which-key-mode: t
ivy-mode: t
recentf-mode: t
override-global-mode: t
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-mode: t
electric-indent-mode: t
mouse-wheel-mode: t
menu-bar-mode: t
file-name-shadow-mode: t
global-font-lock-mode: t
font-lock-mode: t
blink-cursor-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
/home/.../.config/emacs/checkout/highlight-indent-guides/highlight-indent-guides 
hides 
/home/.../.config/emacs/elpa/highlight-indent-guides-20200820.2328/highlight-indent-guides
/home/.../.config/emacs/emacs.d/tree-sitter hides 
/home/.../.config/emacs/elpa/tree-sitter-20220212.1632/tree-sitter
/home/.../.config/emacs/elpa/auctex-14.0.4/tex-site hides 
/usr/share/emacs/site-lisp/tex-site
/home/.../.config/emacs/elpa/cmake-mode-20240412.1329/cmake-mode hides 
/usr/share/emacs/site-lisp/cmake/cmake-mode
/home/.../.config/emacs/elpa/auctex-14.0.4/auctex hides 
/usr/share/emacs/site-lisp/site-start.d/auctex
/home/.../.config/emacs/elpa/transient-20240415.1548/transient hides 
/usr/share/emacs/29.3/lisp/transient
/home/.../.config/emacs/elpa/jsonrpc-1.0.25/jsonrpc hides 
/usr/share/emacs/29.3/lisp/jsonrpc
/home/.../.config/emacs/emacs.d/frame hides 
/usr/share/emacs/29.3/lisp/frame
/home/.../.config/emacs/emacs.d/completion hides 
/usr/share/emacs/29.3/lisp/completion
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package hides 
/usr/share/emacs/29.3/lisp/use-package/use-package
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-ensure 
hides /usr/share/emacs/29.3/lisp/use-package/use-package-ensure
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-lint 
hides /usr/share/emacs/29.3/lisp/use-package/use-package-lint
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-delight 
hides /usr/share/emacs/29.3/lisp/use-package/use-package-delight
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-diminish 
hides /usr/share/emacs/29.3/lisp/use-package/use-package-diminish
/home/.../.config/emacs/elpa/bind-key-20230203.2004/bind-key hides 
/usr/share/emacs/29.3/lisp/use-package/bind-key
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-bind-key 
hides /usr/share/emacs/29.3/lisp/use-package/use-package-bind-key
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-core 
hides /usr/share/emacs/29.3/lisp/use-package/use-package-core
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-jump 
hides /usr/share/emacs/29.3/lisp/use-package/use-package-jump
/home/.../.config/emacs/elpa/csharp-mode-20221126.2005/csharp-mode hides 
/usr/share/emacs/29.3/lisp/progmodes/csharp-mode
/home/.../.config/emacs/elpa/eglot-1.17/eglot hides 
/usr/share/emacs/29.3/lisp/progmodes/eglot
/home/.../.config/emacs/elpa/eldoc-1.15.0/eldoc hides 
/usr/share/emacs/29.3/lisp/emacs-lisp/eldoc

Features:
(shadow sort mail-extr emacsbug message rfc822 mml mml-sec epa epg 
rfc6068 epg-config mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader 
sendmail rfc2047 rfc2045
ietf-drums view treemacs-bookmarks treemacs-tags bookmark shortdoc 
smerge-mode help-fns radix-tree
smex ido mule-util dabbrev yank-media markdown-mode edit-indirect 
noutline outline jka-compr vc-git
vc-dispatcher flycheck-eglot eglot external-completion jsonrpc 
flymake-proc flymake diff ert pp ewoc
debug backtrace dired-aux diredfl treemacs-icons-dired treemacs 
treemacs-header-line
treemacs-compatibility treemacs-mode treemacs-interface 
treemacs-persistence treemacs-filewatch-mode
filenotify treemacs-follow-mode treemacs-rendering treemacs-annotations 
treemacs-async
treemacs-workspaces treemacs-dom treemacs-visuals 
treemacs-fringe-indicator treemacs-faces
treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils 
pfuture inline hl-line ht
treemacs-logging treemacs-customization treemacs-macros ffap tramp 
tramp-loaddefs trampver
tramp-integration tramp-compat shell pcomplete parse-time iso8601 
counsel dired-x dired
dired-loaddefs compile swiper pulse flycheck-color-mode-line face-remap 
whitespace
highlight-indent-guides doom-modeline doom-modeline-segments 
doom-modeline-env doom-modeline-core
shrink-path f s dash nerd-icons nerd-icons-faces nerd-icons-data 
nerd-icons-data-mdicon
nerd-icons-data-flicon nerd-icons-data-codicon nerd-icons-data-devicon 
nerd-icons-data-sucicon
nerd-icons-data-wicon nerd-icons-data-faicon nerd-icons-data-powerline 
nerd-icons-data-octicon
nerd-icons-data-pomicon nerd-icons-data-ipsicon server two-column 
git-gutter flycheck-pos-tip
pos-tip astro-ts-mode css-mode smie eww xdg url-queue shr pixel-fill 
kinsoku url-file svg puny
mm-url gnus nnheader gnus-util text-property-search time-date mail-utils 
range mm-util mail-prsvr
typescript-ts-mode rjsx-mode js2-mode etags fileloop js c-ts-common 
cc-mode cc-fonts cc-guess
cc-menus cc-cmds imenu finder-inf pyvenv eshell esh-cmd esh-ext esh-opt 
esh-proc esh-io esh-arg
esh-module esh-groups esh-util cc-styles cc-align cc-engine cc-vars 
cc-defs qmake-mode yasnippet
corfu combobulate combobulate-json combobulate-yaml combobulate-css 
combobulate-js-ts
combobulate-python combobulate-html combobulate-query derived savehist 
xref files-x scheme
combobulate-ui transient format-spec combobulate-display 
combobulate-ztree combobulate-contrib
combobulate-envelope combobulate-manipulation python project compat 
comint ansi-osc
combobulate-navigation combobulate-misc combobulate-interface generator 
combobulate-rules
combobulate-settings diff-mode tempo treesit-auto treesit 
flycheck-languagetool flycheck ansi-color
find-func edmacro kmacro flyspell-lazy flyspell ispell undo-fu 
undo-fu-session column-marker
multiple-cursors mc-separate-operations rectangular-region-mode 
mc-mark-pop mc-edit-lines
mc-hide-unmatched-lines-mode mc-mark-more sgml-mode facemenu dom 
thingatpt mc-cycle-cursors
multiple-cursors-core advice comp comp-cstr warnings icons rect 
which-key ivy delsel ring ivy-faces
ivy-overlay colir color recentf tree-widget wid-edit all-the-icons 
all-the-icons-faces data-material
data-weathericons data-octicons data-fileicons data-faicons 
data-alltheicons fabrice-dark-theme
cl-extra help-mode use-package use-package-ensure use-package-delight 
use-package-diminish
use-package-bind-key bind-key easy-mmode use-package-core preview-latex 
clang-rename
clang-include-fixer let-alist clang-format xml auctex 
astro-ts-mode-autoloads async-autoloads
auto-complete-autoloads cmake-mode-autoloads auctex-autoloads tex-site 
company-box-autoloads
company-autoloads corfu-autoloads counsel-autoloads csv-mode-autoloads 
dap-mode-autoloads
diredfl-autoloads dockerfile-mode-autoloads doom-modeline-autoloads 
anaphora-autoloads
exec-path-from-shell-autoloads flycheck-eglot-autoloads eglot-autoloads 
flycheck-autoloads
gcmh-autoloads ghub-autoloads git-gutter-autoloads 
graphql-mode-autoloads haskell-mode-autoloads
helpful-autoloads elisp-refs-autoloads impatient-showdown-autoloads 
impatient-mode-autoloads
htmlize-autoloads json-mode-autoloads jsonrpc-autoloads 
live-py-mode-autoloads lsp-docker-autoloads
lsp-latex-autoloads consult-autoloads lsp-treemacs-autoloads 
lsp-ui-autoloads lsp-mode-autoloads
eldoc-autoloads multiple-cursors-autoloads nerd-icons-autoloads 
nginx-mode-autoloads
numpydoc-autoloads php-mode-autoloads poly-markdown-autoloads 
markdown-mode-autoloads
pos-tip-autoloads protobuf-mode-autoloads pyimport-autoloads 
python-docstring-autoloads
python-insert-docstring-autoloads f-autoloads smartparens-autoloads 
sphinx-doc-autoloads
swift-mode-autoloads swiper-autoloads ivy-autoloads rx tempel-autoloads 
tree-sitter-langs-autoloads
treemacs-all-the-icons-autoloads treemacs-evil-autoloads evil-autoloads 
goto-chg-autoloads
treemacs-icons-dired-autoloads treemacs-magit-autoloads magit-autoloads 
pcase
magit-section-autoloads git-commit-autoloads transient-autoloads 
treemacs-persp-autoloads
treemacs-projectile-autoloads projectile-autoloads 
treemacs-tab-bar-autoloads treemacs-autoloads
posframe-autoloads dash-autoloads treesit-auto-autoloads 
typescript-mode-autoloads undo-fu-autoloads
undo-fu-session-autoloads edit-indirect-autoloads mmm-mode-autoloads 
web-mode-autoloads
which-key-autoloads with-editor-autoloads info compat-autoloads 
ws-butler-autoloads
xterm-color-autoloads yaml-mode-autoloads yasnippet-autoloads 
zettelkasten-autoloads package
browse-url url url-proxy url-privacy url-expand url-methods url-history 
url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse 
auth-source cl-seq eieio
eieio-core cl-macs password-cache json subr-x map byte-opt gv bytecomp 
byte-compile url-vars
cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric 
uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd 
tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode 
prog-mode register page
tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar 
mouse jit-lock font-lock
syntax font-core term/tty-colors frame minibuffer nadvice seq simple 
cl-generic indonesian
philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai 
tai-viet lao korean japanese
eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic 
indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook 
jka-cmpr-hook help abbrev obarray
oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face 
macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule 
custom widget keymap
hashtable-print-readable backquote threads xwidget-internal dbusbind 
inotify dynamic-setting
system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit 
xinput2 x multi-tty
make-network-process native-compile emacs)

Memory information:
((conses 16 1147620 125902)
(symbols 48 41533 3)
(strings 32 191964 10621)
(string-bytes 1 6293942)
(vectors 16 80207)
(vector-slots 8 2129282 168825)
(floats 8 1126 738)
(intervals 56 51981 11176)
(buffers 984 34))

--------------KFv7biMFF80Ly1oTOuQwf0cT
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit

<!DOCTYPE html>
<html data-lt-installed="true">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    I observed many times indentation issues for modern Python 3.
    <br>
    <br>
    For examples:
    <br>
    ```
    <br>
    class Foo:
    <br>
    def __init__(self, ...):
    <br>
    self.foo = ... # TAB won't indent to pos+4
    <br>
    ```
    <br>
    <br>
    A workaround is sometimes to close and reopen the file.
    <br>
    Thus I suspect a wrong state.
    <br>
    But I don't found any explanation.
    <br>
    <br>
    I am using Python mode with treesitter enabled but I think it is not
    yet used for indentation ???
    <br>
    <br>
    ---
    <br>
    In GNU Emacs 29.3 (build 1, x86_64-redhat-linux-gnu, GTK+ Version
    3.24.41, cairo version 1.18.0) of
    <br>
    2024-03-25 built on 8d1efaa99cf549ff83f11657c3f4678a
    <br>
    Windowing system distributor 'The X.Org Foundation', version
    11.0.12302006
    <br>
    System Description: Fedora Linux 39 (Workstation Edition)
    <br>
    <br>
    Configured using:
    <br>
    'configure --build=x86_64-redhat-linux-gnu
    --host=x86_64-redhat-linux-gnu --program-prefix=
    <br>
    --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
    --bindir=/usr/bin
    <br>
    --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
    --includedir=/usr/include
    <br>
    --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var
    --runstatedir=/run
    <br>
    --sharedstatedir=/var/lib --mandir=/usr/share/man
    --infodir=/usr/share/info --with-dbus --with-gif
    <br>
    --with-jpeg --with-png --with-rsvg --with-tiff --with-xpm
    --with-x-toolkit=gtk3 --with-gpm=no
    <br>
    --with-xwidgets --with-modules --with-harfbuzz --with-cairo
    --with-json
    <br>
    --with-native-compilation=aot --with-tree-sitter --with-sqlite3
    --with-webp --with-xinput2
    <br>
    build_alias=x86_64-redhat-linux-gnu
    host_alias=x86_64-redhat-linux-gnu CC=gcc
    <br>
    'CFLAGS=-DMAIL_USE_LOCKF -O2 -flto=auto -ffat-lto-objects
    -fexceptions -g -grecord-gcc-switches
    <br>
    -pipe -Wall -Werror=format-security
    -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
    <br>
    -Wp,-D_GLIBCXX_ASSERTIONS
    -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
    -fstack-protector-strong
    <br>
    -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
    -fasynchronous-unwind-tables
    <br>
    -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
    -mno-omit-leaf-frame-pointer '
    <br>
    LDFLAGS=-Wl,-z,relro
    PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig CXX=g++
    <br>
    'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g
    -grecord-gcc-switches -pipe -Wall
    <br>
    -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3
    -Wp,-D_GLIBCXX_ASSERTIONS
    <br>
    -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
    -fstack-protector-strong
    <br>
    -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic
    -fasynchronous-unwind-tables
    <br>
    -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer
    -mno-omit-leaf-frame-pointer ''
    <br>
    <br>
    Configured features:
    <br>
    ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG
    JSON LIBOTF LIBSELINUX
    <br>
    LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY INOTIFY
    PDUMPER PNG RSVG SECCOMP SOUND
    <br>
    SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE
    XIM XINPUT2 XPM XWIDGETS GTK3
    <br>
    ZLIB
    <br>
    <br>
    Important settings:
    <br>
    value of $LC_ALL: fr_FR.utf8
    <br>
    value of $LANG: fr_FR.utf8
    <br>
    locale-coding-system: utf-8-unix
    <br>
    <br>
    Major mode: Python
    <br>
    <br>
    Minor modes in effect:
    <br>
    global-flycheck-eglot-mode: t
    <br>
    flycheck-eglot-mode: t
    <br>
    eglot--managed-mode: t
    <br>
    treemacs-icons-dired-mode: t
    <br>
    treemacs-filewatch-mode: t
    <br>
    treemacs-follow-mode: t
    <br>
    treemacs-hide-gitignored-files-mode: t
    <br>
    treemacs-git-mode: t
    <br>
    treemacs-fringe-indicator-mode: always
    <br>
    shell-dirtrack-mode: t
    <br>
    flycheck-color-mode-line-mode: t
    <br>
    whitespace-mode: t
    <br>
    highlight-indent-guides-mode: t
    <br>
    doom-modeline-mode: t
    <br>
    server-mode: t
    <br>
    global-git-gutter-mode: t
    <br>
    git-gutter-mode: t
    <br>
    flycheck-pos-tip-mode: t
    <br>
    yas-global-mode: t
    <br>
    yas-minor-mode: t
    <br>
    global-corfu-mode: t
    <br>
    corfu-mode: t
    <br>
    global-treesit-auto-mode: t
    <br>
    global-flycheck-mode: t
    <br>
    flycheck-mode: t
    <br>
    flyspell-lazy-mode: t
    <br>
    undo-fu-session-global-mode: t
    <br>
    undo-fu-session-mode: t
    <br>
    which-key-mode: t
    <br>
    ivy-mode: t
    <br>
    recentf-mode: t
    <br>
    override-global-mode: t
    <br>
    tooltip-mode: t
    <br>
    global-eldoc-mode: t
    <br>
    eldoc-mode: t
    <br>
    show-paren-mode: t
    <br>
    electric-indent-mode: t
    <br>
    mouse-wheel-mode: t
    <br>
    menu-bar-mode: t
    <br>
    file-name-shadow-mode: t
    <br>
    global-font-lock-mode: t
    <br>
    font-lock-mode: t
    <br>
    blink-cursor-mode: t
    <br>
    column-number-mode: t
    <br>
    line-number-mode: t
    <br>
    transient-mark-mode: t
    <br>
    auto-composition-mode: t
    <br>
    auto-encryption-mode: t
    <br>
    auto-compression-mode: t
    <br>
    <br>
    Load-path shadows:
    <br>
/home/.../.config/emacs/checkout/highlight-indent-guides/highlight-indent-guides
    hides
/home/.../.config/emacs/elpa/highlight-indent-guides-20200820.2328/highlight-indent-guides<br>
    /home/.../.config/emacs/emacs.d/tree-sitter hides
    /home/.../.config/emacs/elpa/tree-sitter-20220212.1632/tree-sitter
    <br>
    /home/.../.config/emacs/elpa/auctex-14.0.4/tex-site hides
    /usr/share/emacs/site-lisp/tex-site
    <br>
    /home/.../.config/emacs/elpa/cmake-mode-20240412.1329/cmake-mode
    hides /usr/share/emacs/site-lisp/cmake/cmake-mode
    <br>
    /home/.../.config/emacs/elpa/auctex-14.0.4/auctex hides
    /usr/share/emacs/site-lisp/site-start.d/auctex
    <br>
    /home/.../.config/emacs/elpa/transient-20240415.1548/transient hides
    /usr/share/emacs/29.3/lisp/transient
    <br>
    /home/.../.config/emacs/elpa/jsonrpc-1.0.25/jsonrpc hides
    /usr/share/emacs/29.3/lisp/jsonrpc
    <br>
    /home/.../.config/emacs/emacs.d/frame hides
    /usr/share/emacs/29.3/lisp/frame
    <br>
    /home/.../.config/emacs/emacs.d/completion hides
    /usr/share/emacs/29.3/lisp/completion
    <br>
    /home/.../.config/emacs/elpa/use-package-20230426.2324/use-package
    hides /usr/share/emacs/29.3/lisp/use-package/use-package
    <br>
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-ensure
    hides /usr/share/emacs/29.3/lisp/use-package/use-package-ensure
    <br>
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-lint
    hides /usr/share/emacs/29.3/lisp/use-package/use-package-lint
    <br>
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-delight
    hides /usr/share/emacs/29.3/lisp/use-package/use-package-delight
    <br>
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-diminish
    hides /usr/share/emacs/29.3/lisp/use-package/use-package-diminish
    <br>
    /home/.../.config/emacs/elpa/bind-key-20230203.2004/bind-key hides
    /usr/share/emacs/29.3/lisp/use-package/bind-key
    <br>
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-bind-key
    hides /usr/share/emacs/29.3/lisp/use-package/use-package-bind-key
    <br>
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-core
    hides /usr/share/emacs/29.3/lisp/use-package/use-package-core
    <br>
/home/.../.config/emacs/elpa/use-package-20230426.2324/use-package-jump
    hides /usr/share/emacs/29.3/lisp/use-package/use-package-jump
    <br>
    /home/.../.config/emacs/elpa/csharp-mode-20221126.2005/csharp-mode
    hides /usr/share/emacs/29.3/lisp/progmodes/csharp-mode
    <br>
    /home/.../.config/emacs/elpa/eglot-1.17/eglot hides
    /usr/share/emacs/29.3/lisp/progmodes/eglot
    <br>
    /home/.../.config/emacs/elpa/eldoc-1.15.0/eldoc hides
    /usr/share/emacs/29.3/lisp/emacs-lisp/eldoc
    <br>
    <br>
    Features:
    <br>
    (shadow sort mail-extr emacsbug message rfc822 mml mml-sec epa epg
    rfc6068 epg-config mm-decode
    <br>
    mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
    mailheader sendmail rfc2047 rfc2045
    <br>
    ietf-drums view treemacs-bookmarks treemacs-tags bookmark shortdoc
    smerge-mode help-fns radix-tree
    <br>
    smex ido mule-util dabbrev yank-media markdown-mode edit-indirect
    noutline outline jka-compr vc-git
    <br>
    vc-dispatcher flycheck-eglot eglot external-completion jsonrpc
    flymake-proc flymake diff ert pp ewoc
    <br>
    debug backtrace dired-aux diredfl treemacs-icons-dired treemacs
    treemacs-header-line
    <br>
    treemacs-compatibility treemacs-mode treemacs-interface
    treemacs-persistence treemacs-filewatch-mode
    <br>
    filenotify treemacs-follow-mode treemacs-rendering
    treemacs-annotations treemacs-async
    <br>
    treemacs-workspaces treemacs-dom treemacs-visuals
    treemacs-fringe-indicator treemacs-faces
    <br>
    treemacs-icons treemacs-scope treemacs-themes treemacs-core-utils
    pfuture inline hl-line ht
    <br>
    treemacs-logging treemacs-customization treemacs-macros ffap tramp
    tramp-loaddefs trampver
    <br>
    tramp-integration tramp-compat shell pcomplete parse-time iso8601
    counsel dired-x dired
    <br>
    dired-loaddefs compile swiper pulse flycheck-color-mode-line
    face-remap whitespace
    <br>
    highlight-indent-guides doom-modeline doom-modeline-segments
    doom-modeline-env doom-modeline-core
    <br>
    shrink-path f s dash nerd-icons nerd-icons-faces nerd-icons-data
    nerd-icons-data-mdicon
    <br>
    nerd-icons-data-flicon nerd-icons-data-codicon
    nerd-icons-data-devicon nerd-icons-data-sucicon
    <br>
    nerd-icons-data-wicon nerd-icons-data-faicon
    nerd-icons-data-powerline nerd-icons-data-octicon
    <br>
    nerd-icons-data-pomicon nerd-icons-data-ipsicon server two-column
    git-gutter flycheck-pos-tip
    <br>
    pos-tip astro-ts-mode css-mode smie eww xdg url-queue shr pixel-fill
    kinsoku url-file svg puny
    <br>
    mm-url gnus nnheader gnus-util text-property-search time-date
    mail-utils range mm-util mail-prsvr
    <br>
    typescript-ts-mode rjsx-mode js2-mode etags fileloop js c-ts-common
    cc-mode cc-fonts cc-guess
    <br>
    cc-menus cc-cmds imenu finder-inf pyvenv eshell esh-cmd esh-ext
    esh-opt esh-proc esh-io esh-arg
    <br>
    esh-module esh-groups esh-util cc-styles cc-align cc-engine cc-vars
    cc-defs qmake-mode yasnippet
    <br>
    corfu combobulate combobulate-json combobulate-yaml combobulate-css
    combobulate-js-ts
    <br>
    combobulate-python combobulate-html combobulate-query derived
    savehist xref files-x scheme
    <br>
    combobulate-ui transient format-spec combobulate-display
    combobulate-ztree combobulate-contrib
    <br>
    combobulate-envelope combobulate-manipulation python project compat
    comint ansi-osc
    <br>
    combobulate-navigation combobulate-misc combobulate-interface
    generator combobulate-rules
    <br>
    combobulate-settings diff-mode tempo treesit-auto treesit
    flycheck-languagetool flycheck ansi-color
    <br>
    find-func edmacro kmacro flyspell-lazy flyspell ispell undo-fu
    undo-fu-session column-marker
    <br>
    multiple-cursors mc-separate-operations rectangular-region-mode
    mc-mark-pop mc-edit-lines
    <br>
    mc-hide-unmatched-lines-mode mc-mark-more sgml-mode facemenu dom
    thingatpt mc-cycle-cursors
    <br>
    multiple-cursors-core advice comp comp-cstr warnings icons rect
    which-key ivy delsel ring ivy-faces
    <br>
    ivy-overlay colir color recentf tree-widget wid-edit all-the-icons
    all-the-icons-faces data-material
    <br>
    data-weathericons data-octicons data-fileicons data-faicons
    data-alltheicons fabrice-dark-theme
    <br>
    cl-extra help-mode use-package use-package-ensure
    use-package-delight use-package-diminish
    <br>
    use-package-bind-key bind-key easy-mmode use-package-core
    preview-latex clang-rename
    <br>
    clang-include-fixer let-alist clang-format xml auctex
    astro-ts-mode-autoloads async-autoloads
    <br>
    auto-complete-autoloads cmake-mode-autoloads auctex-autoloads
    tex-site company-box-autoloads
    <br>
    company-autoloads corfu-autoloads counsel-autoloads
    csv-mode-autoloads dap-mode-autoloads
    <br>
    diredfl-autoloads dockerfile-mode-autoloads doom-modeline-autoloads
    anaphora-autoloads
    <br>
    exec-path-from-shell-autoloads flycheck-eglot-autoloads
    eglot-autoloads flycheck-autoloads
    <br>
    gcmh-autoloads ghub-autoloads git-gutter-autoloads
    graphql-mode-autoloads haskell-mode-autoloads
    <br>
    helpful-autoloads elisp-refs-autoloads impatient-showdown-autoloads
    impatient-mode-autoloads
    <br>
    htmlize-autoloads json-mode-autoloads jsonrpc-autoloads
    live-py-mode-autoloads lsp-docker-autoloads
    <br>
    lsp-latex-autoloads consult-autoloads lsp-treemacs-autoloads
    lsp-ui-autoloads lsp-mode-autoloads
    <br>
    eldoc-autoloads multiple-cursors-autoloads nerd-icons-autoloads
    nginx-mode-autoloads
    <br>
    numpydoc-autoloads php-mode-autoloads poly-markdown-autoloads
    markdown-mode-autoloads
    <br>
    pos-tip-autoloads protobuf-mode-autoloads pyimport-autoloads
    python-docstring-autoloads
    <br>
    python-insert-docstring-autoloads f-autoloads smartparens-autoloads
    sphinx-doc-autoloads
    <br>
    swift-mode-autoloads swiper-autoloads ivy-autoloads rx
    tempel-autoloads tree-sitter-langs-autoloads
    <br>
    treemacs-all-the-icons-autoloads treemacs-evil-autoloads
    evil-autoloads goto-chg-autoloads
    <br>
    treemacs-icons-dired-autoloads treemacs-magit-autoloads
    magit-autoloads pcase
    <br>
    magit-section-autoloads git-commit-autoloads transient-autoloads
    treemacs-persp-autoloads
    <br>
    treemacs-projectile-autoloads projectile-autoloads
    treemacs-tab-bar-autoloads treemacs-autoloads
    <br>
    posframe-autoloads dash-autoloads treesit-auto-autoloads
    typescript-mode-autoloads undo-fu-autoloads
    <br>
    undo-fu-session-autoloads edit-indirect-autoloads mmm-mode-autoloads
    web-mode-autoloads
    <br>
    which-key-autoloads with-editor-autoloads info compat-autoloads
    ws-butler-autoloads
    <br>
    xterm-color-autoloads yaml-mode-autoloads yasnippet-autoloads
    zettelkasten-autoloads package
    <br>
    browse-url url url-proxy url-privacy url-expand url-methods
    url-history url-cookie
    <br>
    generate-lisp-file url-domsuf url-util mailcap url-handlers
    url-parse auth-source cl-seq eieio
    <br>
    eieio-core cl-macs password-cache json subr-x map byte-opt gv
    bytecomp byte-compile url-vars
    <br>
    cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric
    uniquify ediff-hook vc-hooks
    <br>
    lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win
    x-dnd tool-bar dnd fontset image
    <br>
    regexp-opt fringe tabulated-list replace newcomment text-mode
    lisp-mode prog-mode register page
    <br>
    tab-bar menu-bar rfn-eshadow isearch easymenu timer select
    scroll-bar mouse jit-lock font-lock
    <br>
    syntax font-core term/tty-colors frame minibuffer nadvice seq simple
    cl-generic indonesian
    <br>
    philippine cham georgian utf-8-lang misc-lang vietnamese tibetan
    thai tai-viet lao korean japanese
    <br>
    eucjp-ms cp51932 hebrew greek romanian slovak czech european
    ethiopic indian cyrillic chinese
    <br>
    composite emoji-zwj charscript charprop case-table epa-hook
    jka-cmpr-hook help abbrev obarray
    <br>
    oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face
    macroexp files window
    <br>
    text-properties overlay sha1 md5 base64 format env code-pages mule
    custom widget keymap
    <br>
    hashtable-print-readable backquote threads xwidget-internal dbusbind
    inotify dynamic-setting
    <br>
    system-font-setting font-render-setting cairo move-toolbar gtk
    x-toolkit xinput2 x multi-tty
    <br>
    make-network-process native-compile emacs)
    <br>
    <br>
    Memory information:
    <br>
    ((conses 16 1147620 125902)
    <br>
    (symbols 48 41533 3)
    <br>
    (strings 32 191964 10621)
    <br>
    (string-bytes 1 6293942)
    <br>
    (vectors 16 80207)
    <br>
    (vector-slots 8 2129282 168825)
    <br>
    (floats 8 1126 738)
    <br>
    (intervals 56 51981 11176)
    <br>
    (buffers 984 34))
    <br>
    <br>
  </body>
  <lt-container></lt-container>
</html>

--------------KFv7biMFF80Ly1oTOuQwf0cT--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Fabrice Salvaire <fabrice.salvaire@HIDDEN>
Subject: bug#71293: Acknowledgement (29.3; indentation issue for Python mode)
Message-ID: <handler.71293.B.17171671764425.ack <at> debbugs.gnu.org>
References: <f79e67f1-967d-48fe-a437-ea3e9e9235f2@HIDDEN>
X-Gnu-PR-Message: ack 71293
X-Gnu-PR-Package: emacs
Reply-To: 71293 <at> debbugs.gnu.org
Date: Fri, 31 May 2024 14:53:02 +0000

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@HIDDEN

If you wish to submit further information on this problem, please
send it to 71293 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
71293: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71293
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#71293: 29.3; indentation issue for Python mode
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Fri, 31 May 2024 15:46:02 +0000
Resent-Message-ID: <handler.71293.B71293.17171703329659 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 71293
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Fabrice Salvaire <fabrice.salvaire@HIDDEN>
Cc: 71293 <at> debbugs.gnu.org
Received: via spool by 71293-submit <at> debbugs.gnu.org id=B71293.17171703329659
          (code B ref 71293); Fri, 31 May 2024 15:46:02 +0000
Received: (at 71293) by debbugs.gnu.org; 31 May 2024 15:45:32 +0000
Received: from localhost ([127.0.0.1]:55199 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sD4Rg-0002Vi-5n
	for submit <at> debbugs.gnu.org; Fri, 31 May 2024 11:45:32 -0400
Received: from eggs.gnu.org ([209.51.188.92]:35524)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sD4Re-0002VW-5D
 for 71293 <at> debbugs.gnu.org; Fri, 31 May 2024 11:45:30 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1sD4RN-0002aq-1l; Fri, 31 May 2024 11:45:13 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=EsI2Ou0Jn09gFcycrUC96nIKIdtj22lHxMcoBNOpp5Y=; b=TbJrpUCSalaJ
 z7TPW94hyCgoKfeR5xWhucih6XIgL72F5irFVNlWhJO2km745GJe3otc5H6dYo39vI0Y7FGOrnJQe
 Or8C368ext3rowMy9AL/cdN0xfvCljLknEGbeODvELA8FGzairRSrZfZg5lo7HO41NvSI4LMszzbr
 +jviittHU9sTIeb3QU+uuP47d+Mmc7uU65gyyRz4x6hLgXkeGBMaXqHcPn7gCMPTscooo1n0MYQvv
 oFlcX4V9Jn0yEw2I1eTcpJTFEvq7pitiFZZNpF30NojeImpdn4VG9IpaDzpy1uJQb8fl4pvvmuPdo
 LwGagb3ZU4kvgNkw/GiIpw==;
Date: Fri, 31 May 2024 18:45:11 +0300
Message-Id: <86ikyuouig.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <f79e67f1-967d-48fe-a437-ea3e9e9235f2@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
References: <f79e67f1-967d-48fe-a437-ea3e9e9235f2@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Fri, 31 May 2024 16:52:26 +0200
> From:  Fabrice Salvaire via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> I observed many times indentation issues for modern Python 3. 
> 
> For examples: 
> ``` 
> class Foo: 
> def __init__(self, ...): 
> self.foo = ... # TAB won't indent to pos+4 
> ``` 
> 
> A workaround is sometimes to close and reopen the file. 
> Thus I suspect a wrong state. 
> But I don't found any explanation. 
> 
> I am using Python mode with treesitter enabled but I think it is not yet used for indentation ??? 

I think this is already fixed on the master branch.  Can you try it?





Last modified: Fri, 31 May 2024 16:00:02 UTC

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