GNU bug report logs - #60047
[PATCH] Treat C++ classes as defuns in C Tree-sitter mode

Previous Next

Package: emacs;

Reported by: Daniel Martín <mardani29 <at> yahoo.es>

Date: Tue, 13 Dec 2022 20:45:01 UTC

Severity: normal

Tags: patch

Done: Yuan Fu <casouri <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Daniel Martín <mardani29 <at> yahoo.es>
Subject: bug#60047: closed (Re: bug#60047: [PATCH] Treat C++ classes as
 defuns in C Tree-sitter  mode)
Date: Wed, 14 Dec 2022 02:13:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#60047: [PATCH] Treat C++ classes as defuns in C Tree-sitter mode

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 60047 <at> debbugs.gnu.org.

-- 
60047: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60047
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Yuan Fu <casouri <at> gmail.com>
To: Daniel Martín <mardani29 <at> yahoo.es>
Cc: 60047-done <at> debbugs.gnu.org
Subject: Re: bug#60047: [PATCH] Treat C++ classes as defuns in C Tree-sitter 
 mode
Date: Tue, 13 Dec 2022 18:12:02 -0800
Daniel Martín <mardani29 <at> yahoo.es> writes:

> Tags: patch
>
>
> The attached patch makes C-M-a/C-M-e inside a C++ class definition in
> c++-ts-mode go to the beginning or the end of the class, respectively.
>
> I've added it to the base mode because I think it's harmless for C, and
> it can be convenient if we implement an Obj-C mode based on Tree-sitter.
>
> Thanks.
>

Applied, thanks!

Yuan

[Message part 3 (message/rfc822, inline)]
From: Daniel Martín <mardani29 <at> yahoo.es>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Treat C++ classes as defuns in C Tree-sitter mode
Date: Tue, 13 Dec 2022 21:44:28 +0100
[Message part 4 (text/plain, inline)]
Tags: patch


The attached patch makes C-M-a/C-M-e inside a C++ class definition in
c++-ts-mode go to the beginning or the end of the class, respectively.

I've added it to the base mode because I think it's harmless for C, and
it can be convenient if we implement an Obj-C mode based on Tree-sitter.

Thanks.

[0001-Treat-C-classes-as-defuns-in-C-Tree-sitter-mode.patch (text/patch, attachment)]

This bug report was last modified 2 years and 244 days ago.

Previous Next


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