[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60856: 29.0.60; C-M-f in python-ts-mode does not work properly with
From: |
Theodor Thornhill |
Subject: |
bug#60856: 29.0.60; C-M-f in python-ts-mode does not work properly with docstrings |
Date: |
Sun, 22 Jan 2023 11:30:17 +0100 |
Apostolis Bessas <apostolis@bessas.me> writes:
> 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
>
Can you test this patch? More nodes are needed, but this is a start, I
think. Must be applied to the master branch :)
Theo
0001-Add-sentence-and-sexp-movement-to-python-ts-mode.patch
Description: Text Data