GNU bug report logs - #62109
29.0.60; rust-ts-mode missing indentation for patterns

Previous Next

Package: emacs;

Reported by: Yuan Fu <casouri <at> gmail.com>

Date: Fri, 10 Mar 2023 22:34:01 UTC

Severity: normal

Found in version 29.0.60

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

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 62109 in the body.
You can then email your comments to 62109 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 dev <at> rjt.dev, bug-gnu-emacs <at> gnu.org:
bug#62109; Package emacs. (Fri, 10 Mar 2023 22:34:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Yuan Fu <casouri <at> gmail.com>:
New bug report received and forwarded. Copy sent to dev <at> rjt.dev, bug-gnu-emacs <at> gnu.org. (Fri, 10 Mar 2023 22:34:02 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Bug Report Emacs <bug-gnu-emacs <at> gnu.org>
Subject: 29.0.60; rust-ts-mode missing indentation for patterns
Date: Fri, 10 Mar 2023 14:32:42 -0800
X-Debbugs-CC: dev <at> rjt.dev

Try this snippet:

fn main() {
    match &cli.command {
        Commands::Run {
a,
b,
c,
d,
        } => todo!(),
    }
}


The a, b, c, d don’t have corresponding indentation rules. I can add
some myself, but I’m not sure where to add and what’s the best rule to
add.

Yuan





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62109; Package emacs. (Sat, 11 Mar 2023 02:04:01 GMT) Full text and rfc822 format available.

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

From: Randy Taylor <dev <at> rjt.dev>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 62109 <at> debbugs.gnu.org
Subject: Re: bug#62109: 29.0.60; rust-ts-mode missing indentation for patterns
Date: Sat, 11 Mar 2023 02:03:13 +0000
[Message part 1 (text/plain, inline)]
On Friday, March 10th, 2023 at 17:32, Yuan Fu <casouri <at> gmail.com> wrote:
> 
> X-Debbugs-CC: dev <at> rjt.dev
> 
> Try this snippet:
> 
> fn main() {
> match &cli.command {
> Commands::Run {
> a,
> b,
> c,
> d,
> } => todo!(),
> 
> }
> }
> 
> 
> The a, b, c, d don’t have corresponding indentation rules. I can add
> some myself, but I’m not sure where to add and what’s the best rule to
> add.
> 
> Yuan
> 

Thanks for the report, I've attached a patch fixing it.
[0001-Add-missing-indentation-rule-for-rust-ts-mode.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#62109; Package emacs. (Sat, 11 Mar 2023 02:06:02 GMT) Full text and rfc822 format available.

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

From: Randy Taylor <dev <at> rjt.dev>
To: Yuan Fu <casouri <at> gmail.com>
Cc: 62109 <at> debbugs.gnu.org
Subject: Re: bug#62109: 29.0.60; rust-ts-mode missing indentation for patterns
Date: Sat, 11 Mar 2023 02:04:59 +0000
[Message part 1 (text/plain, inline)]
On Friday, March 10th, 2023 at 21:03, Randy Taylor <dev <at> rjt.dev> wrote:
> 
> On Friday, March 10th, 2023 at 17:32, Yuan Fu casouri <at> gmail.com wrote:
> 
> > X-Debbugs-CC: dev <at> rjt.dev
> > 
> > Try this snippet:
> > 
> > fn main() {
> > match &cli.command {
> > Commands::Run {
> > a,
> > b,
> > c,
> > d,
> > } => todo!(),
> > 
> > }
> > }
> > 
> > The a, b, c, d don’t have corresponding indentation rules. I can add
> > some myself, but I’m not sure where to add and what’s the best rule to
> > add.
> > 
> > Yuan
> 
> 
> Thanks for the report, I've attached a patch fixing it.

Sorry, forgot to include the bug #. Same patch with the bug # this time!

[0001-Add-missing-indentation-rule-for-rust-ts-mode-Bug-62.patch (text/x-patch, attachment)]

Reply sent to Yuan Fu <casouri <at> gmail.com>:
You have taken responsibility. (Sat, 11 Mar 2023 23:54:01 GMT) Full text and rfc822 format available.

Notification sent to Yuan Fu <casouri <at> gmail.com>:
bug acknowledged by developer. (Sat, 11 Mar 2023 23:54:02 GMT) Full text and rfc822 format available.

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

From: Yuan Fu <casouri <at> gmail.com>
To: Randy Taylor <dev <at> rjt.dev>
Cc: 62109-done <at> debbugs.gnu.org
Subject: Re: bug#62109: 29.0.60; rust-ts-mode missing indentation for patterns
Date: Sat, 11 Mar 2023 15:53:21 -0800
[Message part 1 (text/plain, inline)]

> On Mar 10, 2023, at 6:04 PM, Randy Taylor <dev <at> rjt.dev> wrote:
> 
> On Friday, March 10th, 2023 at 21:03, Randy Taylor <dev <at> rjt.dev> wrote:
>> 
>> On Friday, March 10th, 2023 at 17:32, Yuan Fu casouri <at> gmail.com wrote:
>> 
>>> X-Debbugs-CC: dev <at> rjt.dev
>>> 
>>> Try this snippet:
>>> 
>>> fn main() {
>>> match &cli.command {
>>> Commands::Run {
>>> a,
>>> b,
>>> c,
>>> d,
>>> } => todo!(),
>>> 
>>> }
>>> }
>>> 
>>> The a, b, c, d don’t have corresponding indentation rules. I can add
>>> some myself, but I’m not sure where to add and what’s the best rule to
>>> add.
>>> 
>>> Yuan
>> 
>> 
>> Thanks for the report, I've attached a patch fixing it.
> 
> Sorry, forgot to include the bug #. Same patch with the bug # this time!
> 
[0001-Add-missing-indentation-rule-for-rust-ts-mode-Bug-62.patch (application/octet-stream, attachment)]
[Message part 3 (text/plain, inline)]

Brilliant, thanks! I applied it.

Yuan

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 09 Apr 2023 11:24:05 GMT) Full text and rfc822 format available.

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

Previous Next


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