From unknown Mon Jun 23 00:34:15 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#71293 <71293@debbugs.gnu.org> To: bug#71293 <71293@debbugs.gnu.org> Subject: Status: 29.3; indentation issue for Python mode Reply-To: bug#71293 <71293@debbugs.gnu.org> Date: Mon, 23 Jun 2025 07:34:15 +0000 retitle 71293 29.3; indentation issue for Python mode reassign 71293 emacs submitter 71293 Fabrice Salvaire severity 71293 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Fri May 31 10:52:56 2024 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 ) id 1sD3cl-00019H-6x for submit@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 ) id 1sD3ch-000198-Bw for submit@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 ) id 1sD3cV-0003kM-3a for bug-gnu-emacs@gnu.org; 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 ) id 1sD3cN-0002TR-1r for bug-gnu-emacs@gnu.org; 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: Date: Fri, 31 May 2024 16:52:26 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: bug-gnu-emacs@gnu.org Subject: 29.3; indentation issue for Python mode Content-Language: fr-FR, en-GB From: Fabrice Salvaire Received-SPF: pass client-ip=80.12.242.18; envelope-from=fabrice.salvaire@orange.fr; 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-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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 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-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 31 11:45:32 2024 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 ) id 1sD4Rg-0002Vi-5n for submit@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 ) id 1sD4Re-0002VW-5D for 71293@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 ) 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@gnu.org> From: Eli Zaretskii To: Fabrice Salvaire In-Reply-To: (bug-gnu-emacs@gnu.org) Subject: Re: bug#71293: 29.3; indentation issue for Python mode References: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71293 Cc: 71293@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" 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" > > 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? From debbugs-submit-bounces@debbugs.gnu.org Fri May 31 12:57:22 2024 Received: (at 71293) by debbugs.gnu.org; 31 May 2024 16:57:22 +0000 Received: from localhost ([127.0.0.1]:55270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD5ZB-0001jb-PO for submit@debbugs.gnu.org; Fri, 31 May 2024 12:57:22 -0400 Received: from smtp-21.smtpout.orange.fr ([80.12.242.21]:51126 helo=smtp.smtpout.orange.fr) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD5Z7-0001jN-1D for 71293@debbugs.gnu.org; Fri, 31 May 2024 12:57:19 -0400 Received: from [192.168.1.2] ([82.124.140.120]) by smtp.orange.fr with ESMTPA id D5YtsFHVQGyzYD5Yts79z0; Fri, 31 May 2024 18:57:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr; s=t20230301; t=1717174624; bh=1/tekBIAZxtFrYlpQlAuefxsl6nBCgzHto5JOdMp8Fk=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=hEYLB4QwF1Afy5IDyuwi5EplhybTK18+/TcmbgcX++0E4p6T1BUkvpOMZiqujmE4e eXEWyQLcH+pvIr4pCJaqLo+dWYVPFGgLGi9s6s1AsiUrTfwek3XE2VsTcDXJXMICRQ VkxJfCM/eL+Tb4cd1IdYRLatYHQu/+/WBsI/3BDYPxg9GJZ1isuYVWrVpHwC0+LnHS HtuT0bDnuMLv07OX2TsoDKQhGuBGd5T4rvcY+E4eW0JLlKCoeQTqkuYhmNJKf9Xqht kYoqKzRAjCboyAM30AZsSVGDx0cH2I6pH4vPMHrOA2kFwyKELg3AviioO3NIEVZ9M7 SE5A1PuBvvjVA== X-ME-Helo: [192.168.1.2] X-ME-Auth: ZmFicmljZS5zYWx2YWlyZUB3YW5hZG9vLmZy X-ME-Date: Fri, 31 May 2024 18:57:04 +0200 X-ME-IP: 82.124.140.120 Content-Type: multipart/alternative; boundary="------------q0BJo6qVfUtxFL0jEuCquNPK" Message-ID: Date: Fri, 31 May 2024 18:57:03 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#71293: 29.3; indentation issue for Python mode To: Eli Zaretskii References: <86ikyuouig.fsf@gnu.org> Content-Language: fr-FR, en-GB From: Fabrice Salvaire In-Reply-To: <86ikyuouig.fsf@gnu.org> X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 71293 Cc: 71293@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --------------q0BJo6qVfUtxFL0jEuCquNPK Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Le 31/05/2024 à 17:45, Eli Zaretskii a écrit : >> 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" >> >> 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? Can I just try a more recent python.el ? I am using Fedora 39 Emacs 29.3 --------------q0BJo6qVfUtxFL0jEuCquNPK Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Le 31/05/2024 à 17:45, Eli Zaretskii a écrit :
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@gnu.org>

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?

Can I just try a more recent python.el ?

I am using Fedora 39 Emacs 29.3


--------------q0BJo6qVfUtxFL0jEuCquNPK-- From debbugs-submit-bounces@debbugs.gnu.org Fri May 31 14:08:56 2024 Received: (at 71293) by debbugs.gnu.org; 31 May 2024 18:08:56 +0000 Received: from localhost ([127.0.0.1]:55313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD6gR-0003ba-Ua for submit@debbugs.gnu.org; Fri, 31 May 2024 14:08:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:53862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sD6gP-0003b6-T7 for 71293@debbugs.gnu.org; Fri, 31 May 2024 14:08:54 -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 ) id 1sD6g7-0002wW-C3; Fri, 31 May 2024 14:08:36 -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=111VdOugVtlJuVtkb9WVZTGOx2Rty8WBPK3xkS08CT0=; b=MppTktp2fwHC dLktDs5+zQgxN5nFYYERySf3KSUJVCttherc8V7A3x7NRmCAdtbxJtWzEpDZfFVVB9IMk9Vcy+wma 5FD6y4/+PSma0PE4OaKM+XhtwROgujrUV3eaaB7UsHhl4R7mCtSEBiCQ2yOv0At0XNQAwgXr1GYng /RSFNDjKvsygCSsMocvP1XVp7EE6iv8vdIb0LIDDmyoS6DEaO08uy5zZ+R1bZgAewhP49BAWY+3HO 9KmqNjCfkmTDOpv8b59e9aY98VHAnovf8m6x+cZKZOU2lltwos7U33aRT1tjzengW3igSOgsW3Q3y lQ6lafjxeqGN21ZHnpGQYA==; Date: Fri, 31 May 2024 21:08:33 +0300 Message-Id: <86ed9hq2fy.fsf@gnu.org> From: Eli Zaretskii To: Fabrice Salvaire In-Reply-To: (message from Fabrice Salvaire on Fri, 31 May 2024 18:57:03 +0200) Subject: Re: bug#71293: 29.3; indentation issue for Python mode References: <86ikyuouig.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 71293 Cc: 71293@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Fri, 31 May 2024 18:57:03 +0200 > Cc: 71293@debbugs.gnu.org > From: Fabrice Salvaire > > > I think this is already fixed on the master branch. Can you try it? > > Can I just try a more recent python.el ? > > I am using Fedora 39 Emacs 29.3 I meant for you to build the master branch of the Emacs Git repository (or use a snapshot if your distro provides that). From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 01 03:22:16 2024 Received: (at submit) by debbugs.gnu.org; 1 Jun 2024 07:22:16 +0000 Received: from localhost ([127.0.0.1]:55696 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDJ4B-0002Db-Pn for submit@debbugs.gnu.org; Sat, 01 Jun 2024 03:22:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:54420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sDJ46-0002DO-Fr for submit@debbugs.gnu.org; Sat, 01 Jun 2024 03:22:14 -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 ) id 1sDJ1o-0000ap-3h for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 03:19:48 -0400 Received: from mout.kundenserver.de ([212.227.126.187]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sDJ1m-0001xR-AQ for bug-gnu-emacs@gnu.org; Sat, 01 Jun 2024 03:19:47 -0400 Received: from [192.168.178.61] ([89.247.171.255]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MScHp-1s2XPb1j7B-00SxQ1 for ; Sat, 01 Jun 2024 09:19:42 +0200 Message-ID: <2a088a2d-e495-411d-8f63-69d32b80b567@easy-emacs.de> Date: Sat, 1 Jun 2024 09:19:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#71293: 29.3; indentation issue for Python mode To: bug-gnu-emacs@gnu.org References: Content-Language: en-US From: =?UTF-8?Q?Andreas_R=C3=B6hler?= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:Ph8T6odD4dA7IoAiXcRB6RiDaPV6/FZ6Cnbgi6JJqYgBfZ57HJ4 GGwzqwn5MRWkHOr4paVBieSDnzO+4j4Q4NSzyGB2XDPxYoIITowOJhjjLLw8w3rChELGI/s Ne0xR+s7OqmH7CFdptHGLau3NW2Srmb7kpK/RDu1nfCiVYwWBTYezV78Nrd+42C6ph81KSr VExvzU9j9cEU0JdQxqh8Q== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:aluqvprMiA8=;p5Wu6RzbRcFdCED6uN4/CllK869 Z9xumgWbkOf5iTz9vnC1gTqGcQTucoTXORtj/DVkjSY6aPEoWbwcbkF62xpB0yRkm0tRwEM2L xH+2vRLxXXwyLABXVzmZ+mVy29U43P9M9Mq0lIP/A1BIF+JqLJxTK0W//gGg1rOXF8cke4bZ4 53S5P8tmZ4SXPm7U8tLVYvci6eBNcfeSOY/wLi2sye/ChRpZzhuPU+rlfXPbzwDjUMuefKnLo V+SrwP5tOZ62livxF4Knqt5t0R7wp/eaiZeis09ATPN9OOgW2Cds9pVvRYsz+PnPbEPAGWGF1 Ye6yeOJAbDK1yw72V38XNd6W2wQtM/vKVvKSCTsvkOM9UTdmOHHzlDVp95sTYneW4XztGXr6D WwvfgEFS1jGtJEs5b/ez8BNXZCgndD0vEzBZO4iHy+g4c27blIieb7ivLZashGJDdL3JLj7n/ VOv4O1Q+i99zkuO9neTb4o53Rxi7GVhvtR5NKSFy0P5IdVenaIDxvzYanoAfk8ahyNmmIw7+P k8Czd6VEY4Hd5DoN0VTorqq1XqwZf4ibH1JE+fW5VXHHW+ZWFVF9wczJTTSh7t0zdGBuI93NA qEhrEYHLNd6evABzwdgJNuKIYsW0p0k4L76XfsCnJfqXZyOfLcnmc1M+rZ3Gka69uKEYSM7K9 6WQFDz1mz8sFsAMkr7sOmCrylbxbqm0AToQyqOycDh/r2xCZOFGcK2UX8BXt/E9SkHRbqF/Mw 6LamKqkVRqQwUwt9ix+RRD5tR+NqIy3X1L7h5AAfxZ713gLpmUn8Ow= Received-SPF: pass client-ip=212.227.126.187; envelope-from=andreas.roehler@easy-emacs.de; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Am 31.05.24 um 16:52 schrieb Fabrice Salvaire via Bug reports for GNU Emacs, the Swiss army knife of text editors: > 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 > ``` > Shouldn't "self.foo" indent do pos+8, instead +4? From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 21 08:00:51 2024 Received: (at 71293-done) by debbugs.gnu.org; 21 Sep 2024 12:00:51 +0000 Received: from localhost ([127.0.0.1]:37538 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srynD-0002mt-H0 for submit@debbugs.gnu.org; Sat, 21 Sep 2024 08:00:51 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:52495) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srynB-0002md-ES for 71293-done@debbugs.gnu.org; Sat, 21 Sep 2024 08:00:50 -0400 Received: by mail-ed1-f54.google.com with SMTP id 4fb4d7f45d1cf-5c5b9bf9d8bso209897a12.1 for <71293-done@debbugs.gnu.org>; Sat, 21 Sep 2024 05:00:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1726919963; x=1727524763; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=GWk6QP5kln7DyOnhvBgxTiKEi8OuAWndBUvMazXuD5w=; b=HAHnY3PZnjtyqPQge72ignNnrLIm4rUXKbDW9wu69qptyco/DHiL00VgM0dc8WVOKK /xRDRMkstQvdx7iuCtPjjPur2TE17wAyJkBDv+yHhqqQncgnWYJi/gny8hwgbAm66vdi gwfUfT2dkVPL9yJZak9QI7d27hJFNndIYQUZZkGeXnJncN4AEihRkGKmzRmBDfWnNB0a N+zfMJQxBAsyw/2Fuvl9Ozrn4hcyYYC1mSnG7TLHm7GSsI7vYRbzewOyqRWiF2fqx3hp fvnfTxhLLL92s1GxjMa++pZuCpnhwbgXzX/ZSbe1ePVMXXlt/1TaI7+JHbnDjlyTVXNF 4vPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726919963; x=1727524763; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=GWk6QP5kln7DyOnhvBgxTiKEi8OuAWndBUvMazXuD5w=; b=vltC6nBnjL7n3ghlTCi4LCbXdkOSaKEqXf0w7Za/A7XCtigEi5BoJ2uYgTL1Y+g3a6 eeFG68swJn0FIZB6lReBJ4QY/wKgONbV2CZF4g1F+W6d87F99WCiLsRhom1Uswk7NNc8 VpcoHNv6Qj2IRGHFwJ2WjAkFNicBsKYKeZFKLwIunO0C5brluHySegBRtkHTa8VSxpE8 n0yHbgCZpMEELAbiysTOqlcjcYWFXpwjMrnRLfabkGyigLh4MHuE4SG2rnPVMsHsEXgp QLggULHwDsd4O87QZdFgvSDIEIdwIRzAF6e00clM/Sb96p7xmPb7dTNy7Hi/HA3AIYny hKQQ== X-Gm-Message-State: AOJu0YztSIckFaQxzStyPLxlvKvbSOxgjjGUJPaP4l0DCR5K0p/B+PZB UTzhZiANuNal3moDrlBeIvktuQkhBCUL1unjBakT4Jh7EJJuhymZaAO1aDQyIaVZ/xgFu43QRZv MEcBHBI4IkGzZRsn/Q4t8LPFTB9w= X-Google-Smtp-Source: AGHT+IGbSIsuc+l6XUCd0VnYTj/bleZ6RGpFmdkDgzvo9qAZKirxvDXL9wBakOoB9hid1dcXqkX04+WH91HeIjb1Fd8= X-Received: by 2002:a05:6402:84b:b0:5c2:7699:6d42 with SMTP id 4fb4d7f45d1cf-5c464a3ce58mr6291149a12.13.1726919963403; Sat, 21 Sep 2024 04:59:23 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sat, 21 Sep 2024 11:59:22 +0000 From: Stefan Kangas In-Reply-To: <86ed9hq2fy.fsf@gnu.org> References: <86ikyuouig.fsf@gnu.org> <86ed9hq2fy.fsf@gnu.org> MIME-Version: 1.0 Date: Sat, 21 Sep 2024 11:59:22 +0000 Message-ID: Subject: Re: bug#71293: 29.3; indentation issue for Python mode To: Eli Zaretskii , Fabrice Salvaire Content-Type: text/plain; charset="UTF-8" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71293-done Cc: 71293-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> Date: Fri, 31 May 2024 18:57:03 +0200 >> Cc: 71293@debbugs.gnu.org >> From: Fabrice Salvaire >> >> >> I think this is already fixed on the master branch. Can you try it? >> >> Can I just try a more recent python.el ? >> >> I am using Fedora 39 Emacs 29.3 > > I meant for you to build the master branch of the Emacs Git repository > (or use a snapshot if your distro provides that). I can't reproduce this on master, and there has been no further correspondence within 4 months. If you can still reproduce this in the Emacs 30 pretest version, please reply to this email (use "Reply to all" in your email client) and we can reopen the bug report. From unknown Mon Jun 23 00:34:15 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 20 Oct 2024 11:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator