From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61232: 30.0.50; hide show and tree sitter Date: Thu, 02 Feb 2023 19:43:13 +0200 Message-ID: <83mt5wvu8e.fsf@gnu.org> References: <86tu04462g.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5357"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61232-done@debbugs.gnu.org To: Nasser Alkmim Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Feb 02 18:44:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pNddJ-00018w-Vm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Feb 2023 18:44:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pNdcx-0000BJ-SA; Thu, 02 Feb 2023 12:44:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNdcw-0000B4-UH for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 12:44:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pNdcw-0003it-M7 for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 12:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pNdcw-0003d7-7U for bug-gnu-emacs@gnu.org; Thu, 02 Feb 2023 12:44:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Feb 2023 17:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61232 X-GNU-PR-Package: emacs Mail-Followup-To: 61232@debbugs.gnu.org, eliz@gnu.org, nasser.alkmim@gmail.com Original-Received: via spool by 61232-done@debbugs.gnu.org id=D61232.167535981213905 (code D ref 61232); Thu, 02 Feb 2023 17:44:02 +0000 Original-Received: (at 61232-done) by debbugs.gnu.org; 2 Feb 2023 17:43:32 +0000 Original-Received: from localhost ([127.0.0.1]:35716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNdcR-0003cD-Pc for submit@debbugs.gnu.org; Thu, 02 Feb 2023 12:43:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pNdcQ-0003c0-63 for 61232-done@debbugs.gnu.org; Thu, 02 Feb 2023 12:43:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNdcK-0003Xh-JZ; Thu, 02 Feb 2023 12:43:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=bGRzfQA5vTBfvx0WsNQvOxIramiLCuJxY0iA+MtujSA=; b=CXylfe46BE+l AFnVzkKPw4vaf0JWZYale+1JBuvCtmr9Q860XXrLzbDRkxDZX2FfhPBcUUwgCf9Em04//RNWWSCs3 EadJMCN4N9+IfDsurhcDMvyARoBqfEB0aaDgHkWNE+VbLYtpaDkB8bkJ2NHnfq2/brqQFSrWcx0Vh hfL3oKiXjc9WkIm5vgGQ/6Y3zMUIYahJ6tYi4RWVGJe89peTZJRVY/mu4mYRBVt9205Ybi/JPNTPG BDCcGjeo8bPd+IkUBephlClYPtdQe9yqkT/kXxMmjvISu8O2tA8S9KPylmYB5kS8zLoZgng7TaPIy vABq9s0JEPpTrsN83YNNBw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pNdc6-0007DR-9X; Thu, 02 Feb 2023 12:43:23 -0500 In-Reply-To: <86tu04462g.fsf@gmail.com> (message from Nasser Alkmim on Thu, 02 Feb 2023 13:15:03 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254679 Archived-At: > From: Nasser Alkmim > 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.