unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61232: 30.0.50; hide show and tree sitter
@ 2023-02-02 12:15 Nasser Alkmim
  2023-02-02 17:43 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Nasser Alkmim @ 2023-02-02 12:15 UTC (permalink / raw)
  To: 61232


Hello,

I'm trying the new tree-sitter modes, specifically for C++, but
apparently there is a problem with hide-show mode.

With c++-mode, a function like this:

int main() {
  int i = 0;
}

gets collapsed, properly, to this:

int main() {...}

meanwhile, with c++-ts-mode:

int main() {... int i = 0;
}

I did not investigate the causes further.
Maybe is a matter of a simple configration.

My emacs: GNU Emacs 30.0.50 (build 5, x86_64-pc-linux-gnu, GTK+ Version 3.24.36, cairo version 1.17.6) of 2023-02-01






^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#61232: 30.0.50; hide show and tree sitter
  2023-02-02 12:15 bug#61232: 30.0.50; hide show and tree sitter Nasser Alkmim
@ 2023-02-02 17:43 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2023-02-02 17:43 UTC (permalink / raw)
  To: Nasser Alkmim; +Cc: 61232-done

> From: Nasser Alkmim <nasser.alkmim@gmail.com>
> Date: Thu, 02 Feb 2023 13:15:03 +0100
> 
> I'm trying the new tree-sitter modes, specifically for C++, but
> apparently there is a problem with hide-show mode.
> 
> With c++-mode, a function like this:
> 
> int main() {
>   int i = 0;
> }
> 
> gets collapsed, properly, to this:
> 
> int main() {...}
> 
> meanwhile, with c++-ts-mode:
> 
> int main() {... int i = 0;
> }
> 
> I did not investigate the causes further.
> Maybe is a matter of a simple configration.

Yes, hideshow.el didn't know about the *-ts-mode modes.  Now it does,
at least on the release branch (soon to be merged to master).

Thanks.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-02-02 17:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02 12:15 bug#61232: 30.0.50; hide show and tree sitter Nasser Alkmim
2023-02-02 17:43 ` Eli Zaretskii

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).