all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Ergus <spacibba@aol.com>, Yuan Fu <casouri@gmail.com>,
	Theodor Thornhill <theo@thornhill.no>
Cc: 61374@debbugs.gnu.org
Subject: bug#61374: 30.0.50; Wrong mark-sexp with tree-sitter
Date: Thu, 09 Feb 2023 08:40:27 +0200	[thread overview]
Message-ID: <835ycbnxyc.fsf@gnu.org> (raw)
In-Reply-To: <875ycbitav.fsf@aol.com> (bug-gnu-emacs@gnu.org)

> Date: Thu, 09 Feb 2023 01:19:52 +0100
> From:  Ergus via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> Just trying tree-sitter with c++-mode is doing a wrong mark-sexp.
> 
> With this code:
> 
> {
>   vector<int> myvar;
> }
> 
> M-x c++-ts-mode
> 
> go to { and do C-M-SPC. The region marked goes from { up to > instead of
> the corresponding }

The problem is in forward-sexp (try C-M-f from the same place), which
C-M-SPC calls.  This problem exists only on master, where forward-sexp
was modified to call treesit-forward-sexp; on emacs-29 the behavior is
as expected.

CC'ing Yuan and Theo, who will probably find a fix in no time...

Thanks.





  reply	other threads:[~2023-02-09  6:40 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <875ycbitav.fsf.ref@aol.com>
2023-02-09  0:19 ` bug#61374: 30.0.50; Wrong mark-sexp with tree-sitter Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09  6:40   ` Eli Zaretskii [this message]
2023-02-09  6:49     ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09  8:42       ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09  8:54         ` Eli Zaretskii
2023-02-09  9:41           ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09 10:52             ` Eli Zaretskii
2023-02-09 11:08               ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09 16:14                 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-09 17:47             ` Juri Linkov
2023-02-09 19:53               ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-14  8:50                 ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-14 10:50                   ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-19  2:15                     ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-19  6:22                       ` Theodor Thornhill via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-03-20 20:19                     ` Ergus via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=835ycbnxyc.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=61374@debbugs.gnu.org \
    --cc=casouri@gmail.com \
    --cc=spacibba@aol.com \
    --cc=theo@thornhill.no \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.