GNU bug report logs - #59966
[PATCH] [Tree-sitter] Align C++ access specifiers to their enclosing class/struct/union

Previous Next

Package: emacs;

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

Date: Sun, 11 Dec 2022 15:20:02 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#59966: closed (Re: bug#59966: [PATCH] [Tree-sitter] Align C++
 access specifiers to  their enclosing class/struct/union)
Date: Mon, 12 Dec 2022 22:40:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#59966: [PATCH] [Tree-sitter] Align C++ access specifiers to their enclosing class/struct/union

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 59966 <at> debbugs.gnu.org.

-- 
59966: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=59966
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: 59966-done <at> debbugs.gnu.org
Subject: Re: bug#59966: [PATCH] [Tree-sitter] Align C++ access specifiers to 
 their enclosing class/struct/union
Date: Mon, 12 Dec 2022 14:39:12 -0800
Daniel Martín <mardani29 <at> yahoo.es> writes:

> Tags: patch
>
>
> The following C++ class is indented differently in c++-mode and
> c++-ts-mode:
>
> class Sample {
> public:
> void sample();
> private:
> int a;
> };
>
> c++-mode indents it like
>
> class Sample {
> public:
>   void sample();
> private:
>   int a;
> };
>
> c++-ts-mode indents it like
>
> class Sample {
> public:
> void sample();
> private:
> int a;
> };
>
> I've attached a patch so that C++ classes are indented the same in
> c++-mode and c++-ts-mode when the default style is used.
>
> Thanks.
>

Thanks! I applied the patch.

Yuan

[Message part 3 (message/rfc822, inline)]
From: Daniel Martín <mardani29 <at> yahoo.es>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] [Tree-sitter] Align C++ access specifiers to their
 enclosing class/struct/union
Date: Sun, 11 Dec 2022 16:19:13 +0100
[Message part 4 (text/plain, inline)]
Tags: patch


The following C++ class is indented differently in c++-mode and
c++-ts-mode:

class Sample {
public:
void sample();
private:
int a;
};

c++-mode indents it like

class Sample {
public:
  void sample();
private:
  int a;
};

c++-ts-mode indents it like

class Sample {
public:
void sample();
private:
int a;
};

I've attached a patch so that C++ classes are indented the same in
c++-mode and c++-ts-mode when the default style is used.

Thanks.

[0001-Align-C-access-specifiers-to-their-enclosing-class-s.patch (text/patch, attachment)]

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

Previous Next


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