From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Apostolis Bessas Newsgroups: gmane.emacs.bugs Subject: bug#60856: 29.0.60; C-M-f in python-ts-mode does not work properly with docstrings Date: Mon, 16 Jan 2023 12:20:15 +0200 Message-ID: <87sfgardb4.fsf@galileo.mail-host-address-is-not-set> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7486"; mail-complaints-to="usenet@ciao.gmane.io" To: 60856@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 16 11:55:27 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pHN9B-0001kn-SV for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Jan 2023 11:55:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pHN8r-0003do-Vq; Mon, 16 Jan 2023 05:55:06 -0500 Original-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 1pHN8q-0003df-2f for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 05:55:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pHN8o-0002De-0m for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 05:55:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pHN8n-0001k7-SA for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 05:55:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Apostolis Bessas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Jan 2023 10:55:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60856 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.16738664976684 (code B ref -1); Mon, 16 Jan 2023 10:55:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Jan 2023 10:54:57 +0000 Original-Received: from localhost ([127.0.0.1]:60537 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHN8i-0001jj-FC for submit@debbugs.gnu.org; Mon, 16 Jan 2023 05:54:57 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52620) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pHMbN-0000sd-Ft for submit@debbugs.gnu.org; Mon, 16 Jan 2023 05:20:33 -0500 Original-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 1pHMbL-0002B9-3s for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 05:20:27 -0500 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pHMbH-0005JR-6R for bug-gnu-emacs@gnu.org; Mon, 16 Jan 2023 05:20:25 -0500 Original-Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DD18D5C0135 for ; Mon, 16 Jan 2023 05:20:18 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Mon, 16 Jan 2023 05:20:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bessas.me; h=cc :content-type:date:date:from:from:in-reply-to:message-id :mime-version:reply-to:sender:subject:subject:to:to; s=fm1; t= 1673864418; x=1673950818; bh=QD2x/lBK+jCgt9qMU2iNHJ5uZdjuCgLXlds 9J4/ZAKo=; b=EpEusSNss9UK1UEFKmcf8k9ZcqBYBxpwkBwRPxezMGiicNt3VlA tdWA2J/rjzPJICsoMuqDYg9jQulTk+f+H7KDvnjTM1GbnmhpIJh5fC0kqJITEz/0 MDoHeJynQpe0e6hYdskV9dHsKIbT5+svnpTqT8K0/jSoFtpMvm6Ad3Y4QmbEGT05 +2/Czvxn7onepsybu+8vOUseB8xlch0nfwSPbaxNiESftFbc2qL4ZERb2FlIi7Wk izQbEt9fK2j05IRwXbTdDOMw/6+LXNJ9AA3JGtgj+HuLSdBmZ5nScXveifrOFvgC d6S4JzHzqMI/YTejK+zNwD3t3QxFBoGE5Hg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:message-id:mime-version :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1673864418; x= 1673950818; bh=QD2x/lBK+jCgt9qMU2iNHJ5uZdjuCgLXlds9J4/ZAKo=; b=a jdTe34JVdXWzqzuSDoLIjNf9Y0s0Glp6I3HXY2afl3hEg7HhO0nabyEiCrb9g1eq kORHBV3p6pxGfH4wlFY7f4m9+XWDDJQGb4qyIHOlxNRzfTVdfJ1TR8U5CsRX/yRO smW/QIg8t8rwVHSjb01BdAD0S3fRXge/r8FhgTpaqZM04rnIXc7tNC14CkMyI+1O Dye2polrk23PpE1wN8JH21pyQcDFAdCkML7LLrksirEbfA1Awp3Zdo1z+JztHQQd 1Ds/Y4F3MkRQCymDfz6vTnmAOIB+BoNUj6CT+vs3G8u4fcnG0CK6Ntc7vaJEZMbJ S4xswPRpXGIOOA420nmFg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtgedgudegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefhvffufffkgggtsehttdertddttd dtnecuhfhrohhmpeetphhoshhtohhlihhsuceuvghsshgrshcuoegrphhoshhtohhlihhs segsvghsshgrshdrmhgvqeenucggtffrrghtthgvrhhnpedvhfehleetffekkeevheefhf dttdffffejuddugeeufeejfedvuedttdejleefleenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegrphhoshhtohhlihhssegsvghsshgrshdrmh gv X-ME-Proxy: Feedback-ID: iae9145c2:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Mon, 16 Jan 2023 05:20:17 -0500 (EST) Received-SPF: pass client-ip=66.111.4.27; envelope-from=apostolis@bessas.me; helo=out3-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 16 Jan 2023 05:54:54 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:253478 Archived-At: In python-ts-mode executing C-M-f (forward-sexp) when at the beginning of a docstring does not go to the end of the docstring (as happens in python-mode), but at the end of the file. However, if I switch to python-mode and then back to python-ts-mode, C-M-f works correctly. See the following example: - Start emacs -Q - Execute: (add-to-list 'auto-mode-alist '("\\.py\\'" . python-ts-mode)) - Create the file test.py with the contents: """Some docstring. The docstring has multiple lines. """ x = 1 - Go to the first character in the file (beginning of docstring) and press C-M-f. The point is moved to the end of the file (after the line `x = 1`). Instead, the point should have been moved to the end of the docstring (line 4, last '"' character). - Switch to python-mode and then back to python-ts-mode and repeat the above step. The point is moved to the end of the docstring. In GNU Emacs 29.0.60 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-01-16 built on galileo Repository revision: 352e41016bcaab8566347091b6b61908a9b57b57 Repository branch: emacs-29 System Description: Arch Linux Configured using: 'configure --with-pgtk --with-json --with-native-compilation --with-native-compilation=aot --with-tree-sitter --with-imagemagick --with-xwidgets' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ IMAGEMAGICK JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB Important settings: value of $LC_MONETARY: el_GR.UTF-8 value of $LC_NUMERIC: el_GR.UTF-8 value of $LC_TIME: el_GR.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: yas-minor-mode: t hl-todo-mode: t flyspell-mode: t TeX-PDF-mode: t server-mode: t global-company-mode: t company-mode: t editorconfig-mode: t csv-field-index-mode: t global-auto-revert-mode: t consult-notes-denote-mode: t recentf-mode: t override-global-mode: t marginalia-mode: t savehist-mode: t vertico-mode: t whole-line-or-region-global-mode: t whole-line-or-region-local-mode: t shell-dirtrack-mode: t global-so-long-mode: t global-flycheck-mode: t flycheck-mode: t save-place-mode: t pixel-scroll-precision-mode: t apheleia-global-mode: t apheleia-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-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/apos/.emacs.d/elpa/transient-20221202.1727/transient hides /usr/local/share/emacs/29.0.60/lisp/transient Features: (shadow cl-print mailalias textsec uni-scripts idna-mapping ucs-normalize uni-confusable textsec-check mail-extr misearch multi-isearch magit-base magit-section compat-27 compat-26 shortdoc help-fns radix-tree oc-basic ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect gnus-art mm-uu mml2015 gnus-sum gnus-group gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7 nnoo gnus-spec gnus-int gnus-range gnus-win ol-docview doc-view ol-bibtex bibtex ol-bbdb ol-w3m ol-doi org-link-doi vc-svn vc-git emacsbug mule-util company-oddmuse company-keywords company-etags company-gtags company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb yasnippet-snippets yasnippet hl-todo flyspell clipetty tex dbus texmathp pdf-tools pdf-view jka-compr pdf-cache pdf-info tq pdf-util pdf-macs image-mode exif pass password-store auth-source-pass with-editor server company-terraform company-terraform-data terraform-mode hcl-mode flycheck-ledger ledger-mode ledger-check ledger-texi ledger-test ledger-sort ledger-report ledger-reconcile ledger-occur ledger-fonts ledger-fontify ledger-state ledger-complete ledger-schedule ledger-init ledger-xact ledger-post ledger-exec ledger-navigate eshell esh-cmd esh-ext esh-opt esh-proc esh-io esh-arg esh-module esh-groups esh-util ledger-context ledger-commodities ledger-regex gnus-alias ol-notmuch notmuch notmuch-tree notmuch-jump notmuch-hello notmuch-show notmuch-print notmuch-crypto notmuch-mua notmuch-message notmuch-draft notmuch-maildir-fcc notmuch-address notmuch-company notmuch-parser notmuch-wash diff-mode coolj goto-addr icalendar diary-lib diary-loaddefs notmuch-tag crm notmuch-lib notmuch-compat hl-line mm-view mml-smime smime dig org-mime message sendmail yank-media rfc822 mml mml-sec epa derived epg rfc6068 epg-config mm-decode mm-bodies mm-encode mailabbrev gmm-utils mailheader ox-org org-web-tools esxml-query org-make-toc org-tree-slide org-timer org-clock ob-restclient restclient ox-md ox-odt rng-loc rng-uri rng-parse rng-match rng-dt rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex ox-icalendar org-agenda ox-html table ox-ascii ox-publish ox org-attach org-superstar org-element org-persist org-id org-refile avl-tree ob-plantuml ob-js ob-ruby ob-python python ob-sql ob-shell org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-src ob-comint org-pcomplete org-list org-footnote org-faces org-entities ob-emacs-lisp ob-core ob-eval org-cycle org-table ol org-fold org-fold-core org-keys oc org-loaddefs org-version org-compat org-macs rego-mode reformatter jsonnet-mode msgpack yaml-mode markdown-mode noutline outline alchemist alchemist-macroexpand alchemist-company alchemist-help alchemist-complete company-dabbrev-code company-dabbrev alchemist-refcard alchemist-phoenix alchemist-compile alchemist-iex alchemist-message alchemist-hooks alchemist-hex alchemist-mix alchemist-info alchemist-goto alchemist-scope alchemist-eval alchemist-interact alchemist-server alchemist-execute alchemist-report alchemist-test-mode alchemist-project alchemist-file alchemist-key alchemist-utils elixir-mode elixir-format elixir-smie rust-utils rust-mode rust-rustfmt rust-playpen rust-compile rust-cargo go-mode find-file ffap etags fileloop generator ruby-electric ruby-mode nginx-mode css-mode sgml-mode facemenu eww url-queue mm-url gnus nnheader gnus-util mail-utils range typescript-mode python-info python-docstring company pcase devdocs shr pixel-fill kinsoku url-file svg dom apheleia plantuml-mode xml iedit iedit-lib protobuf-mode cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs graphviz-dot-mode dockerfile-mode sh-script smie treesit executable autoinsert deadgrep spinner rg vc vc-dispatcher rg-info-hack advice rg-menu transient rg-ibuffer rg-result wgrep-rg wgrep rg-history rg-header ibuf-ext ibuffer ibuffer-loaddefs grep comp comp-cstr warnings editorconfig editorconfig-core editorconfig-core-handle editorconfig-fnmatch git-link thingatpt ghub-graphql treepy gsexp ghub url-http mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm url-auth let-alist gnutls puny cal-menu calendar cal-loaddefs vterm face-remap compile color vterm-module term/xterm xterm eterm-256color f f-shortdoc s term disp-table ehelp xterm-color ispell imenu-list hideshow imenu csv-mode sort htmlize writeroom-mode typo visual-fill-column autorevert filenotify all-the-icons all-the-icons-faces data-material data-weathericons data-octicons data-fileicons data-faicons data-alltheicons modus-operandi-tinted-theme modus-themes consult-notes-denote denote xdg dired dired-loaddefs xref project consult-notes consult-vertico consult compat-28 recentf tree-widget bookmark text-property-search edmacro kmacro use-package-bind-key bind-key marginalia orderless savehist vertico whole-line-or-region tramp tramp-loaddefs trampver tramp-integration cus-edit pp cus-load wid-edit files-x tramp-compat shell pcomplete comint ansi-osc parse-time iso8601 time-date ls-lisp format-spec so-long flycheck ansi-color find-func dash use-package-diminish diminish exec-path-from-shell saveplace use-package-ensure no-littering compat compat-macs use-package-core pixel-scroll cua-base ring cl-extra help-mode icons finder-inf org-mime-autoloads gcmh-autoloads org-roam-autoloads rust-mode-autoloads go-mode-autoloads web-mode-autoloads apheleia-autoloads easy-mmode deadgrep-autoloads editorconfig-autoloads modus-themes-autoloads consult-notes-autoloads consult-autoloads marginalia-autoloads orderless-autoloads vertico-autoloads no-littering-autoloads clipetty-autoloads auctex-autoloads tex-site pdf-tools-autoloads tablist-autoloads pass-autoloads password-store-otp-autoloads password-store-autoloads elfeed-autoloads company-terraform-autoloads terraform-mode-autoloads hcl-mode-autoloads flycheck-ledger-autoloads ledger-mode-autoloads gnus-alias-autoloads ol-notmuch-autoloads notmuch-autoloads denote-autoloads org-web-tools-autoloads esxml-autoloads kv-autoloads request-autoloads org-make-toc-autoloads org-tree-slide-autoloads ob-restclient-autoloads restclient-autoloads org-superstar-autoloads ox-gfm-autoloads rego-mode-autoloads dhall-mode-autoloads reformatter-autoloads jsonnet-mode-autoloads msgpack-autoloads yaml-mode-autoloads alchemist-autoloads elixir-mode-autoloads ruby-electric-autoloads nginx-mode-autoloads json-mode-autoloads rx json-snatcher-autoloads typescript-mode-autoloads rjsx-mode-autoloads js2-mode-autoloads python-info-autoloads sphinx-doc-autoloads python-docstring-autoloads py-isort-autoloads company-autoloads devdocs-autoloads plantuml-mode-autoloads iedit-autoloads protobuf-mode-autoloads graphviz-dot-mode-autoloads dockerfile-mode-autoloads spinner-autoloads rg-autoloads wgrep-autoloads hl-todo-autoloads format-all-autoloads inheritenv-autoloads language-id-autoloads yasnippet-snippets-autoloads yasnippet-autoloads git-link-autoloads forge-autoloads markdown-mode-autoloads closql-autoloads emacsql-sqlite-autoloads emacsql-autoloads yaml-autoloads ghub-autoloads treepy-autoloads magit-autoloads git-commit-autoloads magit-section-autoloads transient-autoloads with-editor-autoloads vterm-autoloads eterm-256color-autoloads f-autoloads xterm-color-autoloads imenu-list-autoloads csv-mode-autoloads htmlize-autoloads writeroom-mode-autoloads typo-autoloads visual-fill-column-autoloads all-the-icons-autoloads compat-autoloads amx-autoloads s-autoloads whole-line-or-region-autoloads flycheck-autoloads info dash-autoloads pkg-info-autoloads epl-autoloads diminish-autoloads exec-path-from-shell-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/pgtk-win pgtk-win term/common-win pgtk-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 gtk pgtk lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 1106012 278003) (symbols 48 59332 151) (strings 32 310702 84951) (string-bytes 1 10724974) (vectors 16 132391) (vector-slots 8 3190054 557840) (floats 8 1140 1213) (intervals 56 1645 1742) (buffers 984 21))