GNU bug report logs - #61232
30.0.50; hide show and tree sitter

Previous Next

Package: emacs;

Reported by: Nasser Alkmim <nasser.alkmim <at> gmail.com>

Date: Thu, 2 Feb 2023 17:21:01 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 61232 in the body.
You can then email your comments to 61232 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#61232; Package emacs. (Thu, 02 Feb 2023 17:21:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Nasser Alkmim <nasser.alkmim <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 02 Feb 2023 17:21:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nasser Alkmim <nasser.alkmim <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 30.0.50; hide show and tree sitter
Date: Thu, 02 Feb 2023 13:15:03 +0100
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





Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Thu, 02 Feb 2023 17:44:02 GMT) Full text and rfc822 format available.

Notification sent to Nasser Alkmim <nasser.alkmim <at> gmail.com>:
bug acknowledged by developer. (Thu, 02 Feb 2023 17:44:02 GMT) Full text and rfc822 format available.

Message #10 received at 61232-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Nasser Alkmim <nasser.alkmim <at> gmail.com>
Cc: 61232-done <at> debbugs.gnu.org
Subject: Re: bug#61232: 30.0.50; hide show and tree sitter
Date: Thu, 02 Feb 2023 19:43:13 +0200
> From: Nasser Alkmim <nasser.alkmim <at> 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.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 Mar 2023 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 48 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.