GNU bug report logs - #43799
27.1; AWK wrong switch-case indentation

Previous Next

Package: emacs;

Reported by: Mauro Panigada <shintakezou <at> gmail.com>

Date: Sun, 4 Oct 2020 17:38:03 UTC

Severity: normal

Found in version 27.1

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mauro Panigada <shintakezou <at> gmail.com>
Cc: 43799 <at> debbugs.gnu.org
Subject: Re: bug#43799: 27.1; AWK wrong switch-case indentation
Date: Mon, 06 Jun 2022 18:24:09 +0200
Mauro Panigada <shintakezou <at> gmail.com> writes:

> In AWK mode, switch's cases get indented as statement of the previous
> case, instead of being "aligned" with the first case line. We end up
> having something like
>
>    switch($1)
>    {
>       case "a":
>          things()
>          break
>
>          case "b":
>             hello = 0
>             break
>
>             case "bye":
>                indent_again = 1
>                break
>
>                # ....            
>    }

(I'm going through old bug reports that unfortunately weren't resolved
at the time.)

I can reproduce this in Emacs 27.1, but not in Emacs 29, so it seems
like this has been fixed in the time since this was reported, and I'm
therefore closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 3 years and 46 days ago.

Previous Next


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