From unknown Tue Aug 19 02:57:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43799: 27.1; AWK wrong switch-case indentation Resent-From: Mauro Panigada Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 04 Oct 2020 17:38:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43799 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 43799@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160183302521451 (code B ref -1); Sun, 04 Oct 2020 17:38:03 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2020 17:37:05 +0000 Received: from localhost ([127.0.0.1]:46666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP7wV-0005Zp-53 for submit@debbugs.gnu.org; Sun, 04 Oct 2020 13:37:04 -0400 Received: from lists.gnu.org ([209.51.188.17]:58678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kP3pR-0003EU-Ne for submit@debbugs.gnu.org; Sun, 04 Oct 2020 09:13:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34810) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kP3pR-0004K3-IV for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 09:13:29 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:39211) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kP3pP-0007sh-5t for bug-gnu-emacs@gnu.org; Sun, 04 Oct 2020 09:13:29 -0400 Received: by mail-pf1-x42e.google.com with SMTP id n14so4716744pff.6 for ; Sun, 04 Oct 2020 06:13:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=gFXW1BnOB0kVyNcnfPG/FztV13ob3YG5aXqGWcZRUF8=; b=Pb8x9TyxAnYNPQYS09vHdjjuFFTQOdnxiTR2cKhK8II2f6FESNnqlac05n91aQ+SlQ qsJIMjZeup3olHroEoNPEJ6YSu9B8Ark/FrfbuaNm0HyGQEY6X2SVl00lyi1k4I6c1vh vplMgkDVZVZ84IQR/IR17oIDtdpyBxf4cqF4mrkRClo/e5hRyUZESEbJA9meiuOfPT3V glgAT5Cxp8FykF2edHmoCyNhrLHheEZZ7q3bsjIwvq5q8OIP6X8C+l/3a43s93cpDIvl Jd1IE9ckQdcx86q01EHvQcsSjxQp2V/8U2D6OOwp3NVxhXzxcDulWK68SUA24FBcER4o UO/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=gFXW1BnOB0kVyNcnfPG/FztV13ob3YG5aXqGWcZRUF8=; b=c0NCXQyhTYzjigwSAsMauHfHnlmOHWjcskLHlkaPC3/Rb53PcExna/m/qieFWLUsan UGjkIlPioh2oQWLjIYie3Xpzx6ZBaJTlJJ/MxcI29Tfa/svI0VPiFbZ82pQyTOdOnEsS fQfjFW6gUq/ZsE1YEz99cV181Xy/CEiO128lt3OQ++ug14tbMiLjuVWRv5v0BKivLCAx 4j/F+KuPytLjV0cRpDaRh7+cJtmqKsuRbQkG0TIFDYR8BvgcQ0VMA/f7stxCsuFso+Wq +tuLTdxIrKfIxKYY4FwD1cDsYTk2XlKLO2iU0AD9Z+1LPqfNgQWt1Mi7QmZstbKlssh8 bacg== X-Gm-Message-State: AOAM531bb6s2zgIycAFPda1yx5+x7S72GpH2fN2JGFe/MLUeoL5CHD60 lT2Ne4ON1wBjrZB7qam5t3tFaRsV94a3FCc2xGnaMgs2qNYSZA== X-Google-Smtp-Source: ABdhPJy2SS3kx9ibKbEJUFoN6PF41oYkRzkIX0Y1YqHwMhkWIAStQ9sG7Pc7SfrVmuDaFjxfP6c3KjwxrfcPocmeRrM= X-Received: by 2002:aa7:8d15:0:b029:142:2501:39fe with SMTP id j21-20020aa78d150000b0290142250139femr11785766pfe.77.1601817204862; Sun, 04 Oct 2020 06:13:24 -0700 (PDT) MIME-Version: 1.0 From: Mauro Panigada Date: Sun, 4 Oct 2020 15:13:13 +0200 Message-ID: Content-Type: multipart/alternative; boundary="0000000000007db31905b0d821e8" Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=shintakezou@gmail.com; helo=mail-pf1-x42e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.5 (/) X-Mailman-Approved-At: Sun, 04 Oct 2020 13:37:01 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --0000000000007db31905b0d821e8 Content-Type: text/plain; charset="UTF-8" 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 # .... } In GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.12) of 2020-08-30 built on Mister-X Windowing system distributor 'The X.Org Foundation', version 11.0.12005000 System Description: Ubuntu 19.10 Recent messages: Mark saved where search started (New file) Making completion list... next-line: End of buffer Making completion list... Auto-saving...done previous-line: Beginning of buffer [2 times] Making completion list... [2 times] user-error: End of history; no default available delete-backward-char: Text is read-only Configured using: 'configure --prefix=/home/user/.local/ 'CFLAGS=-mtune=corei7 -O3 -mavx2 -msse4.2'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER LCMS2 GMP Important settings: value of $LC_MONETARY: it_IT.UTF-8 value of $LC_NUMERIC: en_DK.UTF-8 value of $LC_TIME: en_DK.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: AWK//l Minor modes in effect: delete-selection-mode: t show-paren-mode: t cua-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug sendmail mm-archive mule-util gnutls network-stream url-http url-gw nsm url-cache url-auth cua-rect rect misearch multi-isearch cc-awk cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs markdown-mode color thingatpt view org-element avl-tree generator ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy url-expand url-methods url-history mailcap shr url-cookie url-domsuf url-util svg xml dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr wid-edit ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex ol-bbdb ol-w3m org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-entities time-date noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table ol org-keys org-compat advice org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs perl6-detect leuven-theme delsel paren cua-base cus-start cus-load finder-inf rx info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 323421 26493) (symbols 48 24386 2) (strings 32 95162 7634) (string-bytes 1 2959769) (vectors 16 35946) (vector-slots 8 416297 26914) (floats 8 399 312) (intervals 56 11341 466) (buffers 1000 28)) -- *Mauro Panigada* https://www.mauropanigada.net http://shintakezou.blogspot.com --0000000000007db31905b0d821e8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
In AWK mode, switch's cases get indented as statement = of the previous
case, instead of being "aligned" with the firs= t case line. We end up
having something like

=C2=A0 =C2=A0switch(= $1)
=C2=A0 =C2=A0{
=C2=A0 =C2=A0 =C2=A0 case "a":
=C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0things()
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0b= reak
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0case "b":
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 hell= o =3D 0
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 break

=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 case "bye":
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0indent_again =3D 1
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0break

=C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0# .... =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0
=C2=A0 =C2=A0}



In GNU Emacs 27.1 (build 1, = x86_64-pc-linux-gnu, GTK+ Version 3.24.12)
=C2=A0of 2020-08-30 built on = Mister-X
Windowing system distributor 'The X.Org Foundation', ve= rsion 11.0.12005000
System Description: Ubuntu 19.10

Recent messa= ges:
Mark saved where search started
(New file)
Making completion = list...
next-line: End of buffer
Making completion list...
Auto-sa= ving...done
previous-line: Beginning of buffer [2 times]
Making compl= etion list... [2 times]
user-error: End of history; no default available=
delete-backward-char: Text is read-only

Configured using:
=C2= =A0'configure --prefix=3D/home/user/.local/ 'CFLAGS=3D-mtune=3Dcore= i7 -O3 -mavx2
=C2=A0-msse4.2''

Configured features:
XP= M JPEG TIFF GIF PNG RSVG SOUND GPM DBUS GSETTINGS GLIB NOTIFY INOTIFY
AC= L LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB
T= OOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD PDUMPER
= LCMS2 GMP

Important settings:
=C2=A0 value of $LC_MONETARY: it_IT= .UTF-8
=C2=A0 value of $LC_NUMERIC: en_DK.UTF-8
=C2=A0 value of $LC_T= IME: en_DK.UTF-8
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 value of $= XMODIFIERS: @im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

Ma= jor mode: AWK//l

Minor modes in effect:
=C2=A0 delete-selection-m= ode: t
=C2=A0 show-paren-mode: t
=C2=A0 cua-mode: t
=C2=A0 tooltip= -mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-= mode: t
=C2=A0 file-name-shadow-mode: t
=C2=A0 global-font-lock-mode:= t
=C2=A0 font-lock-mode: t
=C2=A0 blink-cursor-mode: t
=C2=A0 aut= o-composition-mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-comp= ression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 transient-mark-mode= : t
=C2=A0 abbrev-mode: t

Load-path shadows:
None found.
Features:
(shadow sort mail-extr emacsbug sendmail mm-archive mule-uti= l gnutls
network-stream url-http url-gw nsm url-cache url-auth cua-rect = rect
misearch multi-isearch cc-awk cc-mode cc-fonts cc-guess cc-menus cc= -cmds
cc-styles cc-align cc-engine cc-vars cc-defs markdown-mode colorthingatpt view org-element avl-tree generator ol-eww ol-rmail ol-mhe
o= l-irc ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy
url-expand= url-methods url-history mailcap shr url-cookie url-domsuf
url-util svg = xml dom gnus-group gnus-undo gnus-start gnus-cloud nnimap
nnmail mail-so= urce utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int
gnus-range me= ssage rmc puny rfc822 mml mml-sec epa derived epg
epg-config mm-decode m= m-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader gn= us-win gnus nnheader gnus-util rmail
rmail-loaddefs rfc2047 rfc2045 ietf= -drums text-property-search
mail-utils mm-util mail-prsvr wid-edit ol-do= cview doc-view jka-compr
image-mode exif dired dired-loaddefs ol-bibtex = bibtex ol-bbdb ol-w3m org
ob ob-tangle ob-ref ob-lob ob-table ob-exp org= -macro org-footnote
org-src ob-comint org-pcomplete pcomplete comint ans= i-color ring
org-list org-faces org-entities time-date noutline outline = easy-mmode
org-version ob-emacs-lisp ob-core ob-eval org-table ol org-ke= ys
org-compat advice org-macs org-loaddefs format-spec find-func cal-men= u
calendar cal-loaddefs perl6-detect leuven-theme delsel paren cua-base<= br>cus-start cus-load finder-inf rx info package easymenu browse-url
url= -handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-lo= addefs password-cache json subr-x map url-vars seq byte-opt gv
bytecomp = byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric
uniquify ed= iff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-wi= n x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list repl= ace newcomment text-mode elisp-mode lisp-mode
prog-mode register page ta= b-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-loc= k font-lock syntax facemenu font-core
term/tty-colors frame minibuffer c= l-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai= -viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak = czech european ethiopic indian
cyrillic chinese composite charscript cha= rprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-pr= eloaded nadvice loaddefs
button faces cus-face macroexp files text-prope= rties overlay sha1 md5
base64 format env code-pages mule custom widget h= ashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic= -setting
system-font-setting font-render-setting move-toolbar gtk x-tool= kit x
multi-tty make-network-process emacs)

Memory information:((conses 16 323421 26493)
=C2=A0(symbols 48 24386 2)
=C2=A0(strings= 32 95162 7634)
=C2=A0(string-bytes 1 2959769)
=C2=A0(vectors 16 3594= 6)
=C2=A0(vector-slots 8 416297 26914)
=C2=A0(floats 8 399 312)
= =C2=A0(intervals 56 11341 466)
=C2=A0(buffers 1000 28))


--
--0000000000007db31905b0d821e8-- From unknown Tue Aug 19 02:57:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43799: 27.1; AWK wrong switch-case indentation Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Jun 2022 16:25:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43799 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mauro Panigada Cc: 43799@debbugs.gnu.org Received: via spool by 43799-submit@debbugs.gnu.org id=B43799.16545326602279 (code B ref 43799); Mon, 06 Jun 2022 16:25:01 +0000 Received: (at 43799) by debbugs.gnu.org; 6 Jun 2022 16:24:20 +0000 Received: from localhost ([127.0.0.1]:36590 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyFWd-0000ab-JL for submit@debbugs.gnu.org; Mon, 06 Jun 2022 12:24:19 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42134) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyFWc-0000a7-0t for 43799@debbugs.gnu.org; Mon, 06 Jun 2022 12:24:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2P94RT35OmAQBhF2ojcU6yu1STAK5jCJPoFkJYItPpU=; b=KJjq9puyfHF/A5Hv5oteZSZdHQ OFWmrbF/LPnsMQT3ADtw8LjWEF2RDfK16YE0w8OePQuAj7DuAAD5X7OS6W2wE32pCZl/P4Ud9Yf/R +WRjVElVXCnE+qMmS5Rcc8xkYRhjNKFMjXzxHQP7Z8AlikdoO+wn8g9jWpTq8PoiYoLc=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyFWT-0005Nq-P3; Mon, 06 Jun 2022 18:24:12 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: Vilde & Inga's _How Forests Think_: "=?UTF-8?Q?=C2=B7=C2=B7=C2=B7?= XI" Date: Mon, 06 Jun 2022 18:24:09 +0200 In-Reply-To: (Mauro Panigada's message of "Sun, 4 Oct 2020 15:13:13 +0200") Message-ID: <87v8tdrc9i.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mauro Panigada 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": > [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Mauro Panigada 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 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 06 12:24:25 2022 Received: (at control) by debbugs.gnu.org; 6 Jun 2022 16:24:25 +0000 Received: from localhost ([127.0.0.1]:36598 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyFWi-0000b8-Uw for submit@debbugs.gnu.org; Mon, 06 Jun 2022 12:24:25 -0400 Received: from quimby.gnus.org ([95.216.78.240]:42148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nyFWh-0000aS-7r for control@debbugs.gnu.org; Mon, 06 Jun 2022 12:24:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ER7fJfFa6wxI+t8hIcsG+QktqOYHVr33VB6hJoYzlt0=; b=tt0f2YcepX673IrPG9Cb6oAqyg D8S96dUDW1RlwdWm0x/xkowsGVxtRwb3iPa42HG1jVaEHQuMgIb6HRya6JBSWdN5GAibQlVzv9CDB nJO7xmRj7YVtDwsj0S6ZqqC7UNr8f8zE/E5/FojzBd2fS7DhKQRpIzJg6O55p98cFhhs=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyFWZ-0005O7-Ir for control@debbugs.gnu.org; Mon, 06 Jun 2022 18:24:17 +0200 Date: Mon, 06 Jun 2022 18:24:15 +0200 Message-Id: <87tu8xrc9c.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43799 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 43799 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) close 43799 29.1 quit