[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mo
From: |
Yuan Fu |
Subject: |
bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode |
Date: |
Sat, 18 Mar 2023 01:00:16 -0700 |
> On Mar 17, 2023, at 2:52 AM, Philip Kaludercic <philipk@posteo.net> wrote:
>
>
> X-Debbugs-CC: Theodor Thornhill <theo@thornhill.no>, Yuan Fu
> <casouri@gmail.com>
>
> Take this code block, where | is the position of the point.
>
> if (foo)|{
> bar;
> baz;
> }
>
> When I press C-M-SPC to mark a "S-expression" (knowing that C doesn't
> consist of S-Expressions), then I would assume that the region from the
> current point until the closing bracket would be selected. Instead I
> get the region from the point up until after the first semicolon.
>
> When I press C-M-SPC again, I get the second one as well, but a third
> press refuses to go on. So I never get the entire block.
>
> I do not know if this is intentional, but it also applies to movement
> and killing. This is also particularly unintuitive when matching pairs
> are highlighted (in this case the brackets), which always (?) matches
> the interpretation of sexp-commands.
I tested this on my Emacs session and vanilla session, and both marked to the
closing bracket. I believe forward-sexp should just work by the syntax table.
Perhaps it’s your config or something?
Yuan
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Philip Kaludercic, 2023/03/17
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Theodor Thornhill, 2023/03/17
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode,
Yuan Fu <=
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Daniel Martín, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Daniel Martín, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Theodor Thornhill, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Eli Zaretskii, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Theodor Thornhill, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Daniel Martín, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Daniel Martín, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Eli Zaretskii, 2023/03/18
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Juri Linkov, 2023/03/19
- bug#62238: 30.0.50; Unusual interpretation of "S-expressions" in c-ts-mode, Eli Zaretskii, 2023/03/19