GNU bug report logs - #31609
25.3; sh-mode is confused about bash extglobs in case patterns

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: minor; Reported by: Ville Skyttä <ville.skytta@HIDDEN>; merged with #21321; dated Sun, 27 May 2018 16:45:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Forcibly Merged 21321 31609. Request was from Noam Postavsky <npostavs@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 31609 <at> debbugs.gnu.org:


Received: (at 31609) by debbugs.gnu.org; 28 May 2018 00:19:05 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 27 20:19:05 2018
Received: from localhost ([127.0.0.1]:51365 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fN5sP-0001Uj-1E
	for submit <at> debbugs.gnu.org; Sun, 27 May 2018 20:19:05 -0400
Received: from mail-io0-f182.google.com ([209.85.223.182]:36921)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <npostavs@HIDDEN>)
 id 1fN5sN-0001U8-58; Sun, 27 May 2018 20:19:03 -0400
Received: by mail-io0-f182.google.com with SMTP id e20-v6so12303189iof.4;
 Sun, 27 May 2018 17:19:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=from:to:cc:subject:in-reply-to:references:user-agent:date
 :message-id:mime-version;
 bh=QXtmf0n7QGk1xzGXtQ/EedGejCN7nBTpHZY0MRLFOFQ=;
 b=DDA+/jyqP++LAI/y1CvHNUk3RhV/V+94INMuKGtnl8w4xZtOf6BitrDTKfecMaYgOt
 2vXgVSb5UJTbgmSLSH2n/4z2xH89EomRke+2CDQ2rQqManORhpHPkhfsATLBdlQQWVqM
 B4afeog8wWdQCAXalXyYNQijTv/3ozvjN8yPjkntN+dV7PWTM3EbC75nWxvosqfsTy/+
 g7Yjj6PJXkxb90S0JBJ+ofFW19zvpnucMsxP/n5NWfPJm/+MbLecGTLosK/tu5fN+L7D
 vGdSD9b7wIr5At0WC2fJn9J3hkKdWF4YYV8xWxIVPUZlpCKasR0t82RmcWZ55nCVPyhc
 WemA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:references
 :user-agent:date:message-id:mime-version;
 bh=QXtmf0n7QGk1xzGXtQ/EedGejCN7nBTpHZY0MRLFOFQ=;
 b=tlntN6lOJZVVnlpbO+eJSvHtai727tHFgNZdTCr3QcXdUDumsxWWaQf4y42hi3HhMj
 bXp7OAJLbmpl3n7qjYd2DQONNU+FEQUNaBi+L9jK1ONXbBk9seWN/I7dw3Eipk3Rxd1S
 EUxiUzPJf/9UgbEvUWCap9rNwS8HfHUOT6nwjd0FCG8vUMCVw4BShg815dPHqn0k+m07
 u7y0Y4OYaNbmlEFhuf0abP71tHVv4LH/Pq8vs5MB9iBiHkXSsin8OT8/uCZMz4Dk7OYX
 TZb6WsoGm+i5uIhbIrUJhtzY+rbJ1NMSSNaX52/RiCrqXf26k68GhyhWvoMQG6d/6m0F
 /q9A==
X-Gm-Message-State: ALKqPwechxLzj5U0pfRqaihjFZIdJE7tr/xVrB9pDbotmNtp5fnk8FwN
 w2SrqpShu0L6D3ujGi1SCRXFpQ==
X-Google-Smtp-Source: ADUXVKJ+/njQ53NMLpsY7Fflrukgf/nTjaFQYEtTU8TPWE1alTm9SG99FsB9TFHOv56sE1C1svkKLg==
X-Received: by 2002:a6b:b3d6:: with SMTP id
 c205-v6mr9918792iof.93.1527466737427; 
 Sun, 27 May 2018 17:18:57 -0700 (PDT)
Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34])
 by smtp.googlemail.com with ESMTPSA id
 e189-v6sm15361271ioe.0.2018.05.27.17.18.55
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 27 May 2018 17:18:56 -0700 (PDT)
From: Noam Postavsky <npostavs@HIDDEN>
To: Phil Sainty <psainty@HIDDEN>
Subject: Re: bug#31609: 25.3;
 sh-mode is confused about bash extglobs in case patterns
In-Reply-To: <92d6d0a6ff2db4a5ccedfc5ddb3d9b91@HIDDEN> (Phil
 Sainty's message of "Mon, 28 May 2018 11:37:40 +1200")
References: <CABr9L5CBkvqVyz3QJU1xqf_d3bsVcvq48kNPVNj=vUUv=mxa7Q@HIDDEN>
 <258635115c95ebb3eb97444c62c63307@HIDDEN>
 <92d6d0a6ff2db4a5ccedfc5ddb3d9b91@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)
Date: Sun, 27 May 2018 20:18:54 -0400
Message-ID: <87d0xgeioh.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 31609
Cc: 31609 <at> debbugs.gnu.org, Ville =?utf-8?Q?Skytt=C3=A4?= <ville.skytta@HIDDEN>,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

forcemerge 21321 31609
quit

Phil Sainty <psainty@HIDDEN> writes:

> I suspect this is a duplicate of #21321 ?

Yup, this one has a much clearer title though.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31609; Package emacs. Full text available.

Message received at 31609 <at> debbugs.gnu.org:


Received: (at 31609) by debbugs.gnu.org; 27 May 2018 23:37:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 27 19:37:48 2018
Received: from localhost ([127.0.0.1]:51356 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fN5ES-0000Z9-G9
	for submit <at> debbugs.gnu.org; Sun, 27 May 2018 19:37:48 -0400
Received: from smtp-3.orcon.net.nz ([60.234.4.44]:44405)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psainty@HIDDEN>) id 1fN5EO-0000Yy-EU
 for 31609 <at> debbugs.gnu.org; Sun, 27 May 2018 19:37:46 -0400
Received: from [10.253.37.70] (port=25079 helo=webmail.orcon.net.nz)
 by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2)
 (envelope-from <psainty@HIDDEN>)
 id 1fN5EK-0005z1-A7; Mon, 28 May 2018 11:37:40 +1200
Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7])
 via [10.253.37.253] by webmail.orcon.net.nz
 with HTTP (HTTP/1.1 POST); Mon, 28 May 2018 11:37:40 +1200
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Date: Mon, 28 May 2018 11:37:40 +1200
From: Phil Sainty <psainty@HIDDEN>
To: =?UTF-8?Q?Ville_Skytt=C3=A4?= <ville.skytta@HIDDEN>
Subject: Re: bug#31609: 25.3; sh-mode is confused about bash extglobs in
 case patterns
In-Reply-To: <258635115c95ebb3eb97444c62c63307@HIDDEN>
References: <CABr9L5CBkvqVyz3QJU1xqf_d3bsVcvq48kNPVNj=vUUv=mxa7Q@HIDDEN>
 <258635115c95ebb3eb97444c62c63307@HIDDEN>
Message-ID: <92d6d0a6ff2db4a5ccedfc5ddb3d9b91@HIDDEN>
X-Sender: psainty@HIDDEN
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 31609
Cc: 31609 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

I suspect this is a duplicate of #21321 ?





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31609; Package emacs. Full text available.

Message received at 31609 <at> debbugs.gnu.org:


Received: (at 31609) by debbugs.gnu.org; 27 May 2018 21:32:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 27 17:32:18 2018
Received: from localhost ([127.0.0.1]:51315 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fN3H0-0006Cg-1h
	for submit <at> debbugs.gnu.org; Sun, 27 May 2018 17:32:18 -0400
Received: from smtp-3.orcon.net.nz ([60.234.4.44]:39074)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <psainty@HIDDEN>) id 1fN3Gx-0006CX-Pd
 for 31609 <at> debbugs.gnu.org; Sun, 27 May 2018 17:32:16 -0400
Received: from [10.253.37.70] (port=30421 helo=webmail.orcon.net.nz)
 by smtp-3.orcon.net.nz with esmtpa (Exim 4.86_2)
 (envelope-from <psainty@HIDDEN>)
 id 1fN3Gt-0005cQ-Qa; Mon, 28 May 2018 09:32:11 +1200
Received: from [150.107.175.176] via [10.253.37.253] by webmail.orcon.net.nz
 with HTTP (HTTP/1.1 POST); Mon, 28 May 2018 09:32:11 +1200
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8;
 format=flowed
Content-Transfer-Encoding: 8bit
Date: Mon, 28 May 2018 09:32:11 +1200
From: Phil Sainty <psainty@HIDDEN>
To: =?UTF-8?Q?Ville_Skytt=C3=A4?= <ville.skytta@HIDDEN>
Subject: Re: bug#31609: 25.3; sh-mode is confused about bash extglobs in
 case patterns
In-Reply-To: <CABr9L5CBkvqVyz3QJU1xqf_d3bsVcvq48kNPVNj=vUUv=mxa7Q@HIDDEN>
References: <CABr9L5CBkvqVyz3QJU1xqf_d3bsVcvq48kNPVNj=vUUv=mxa7Q@HIDDEN>
Message-ID: <258635115c95ebb3eb97444c62c63307@HIDDEN>
X-Sender: psainty@HIDDEN
User-Agent: Orcon Webmail
X-GeoIP: --
X-Spam_score: -2.9
X-Spam_score_int: -28
X-Spam_bar: --
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 31609
Cc: 31609 <at> debbugs.gnu.org,
 bug-gnu-emacs <bug-gnu-emacs-bounces+psainty=orcon.net.nz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

If a workaround helps you, these variants are correctly indented:

case $foo in
     (@(bar|quux)) : do things;;
     (@(bar|quux)) {
         : do things
     };;
esac


On 2018-05-28 04:44, Ville Skyttä wrote:
> When using bash's extended globbing constructs such as @(...), +(...),
> !(...), *(...) in case patterns, sh-mode gets confused and indentation
>          no longer works properly.
> 
> For example:
> 
> case $foo in
>     @(bar|quux))
>                 <-- TAB brings the cursor here
>         <-- ...whereas I would have expected it to be here
> [...]
> 
> The indentation continues to be off for the remainder of the file,
> i.e. after the ;; and terminating `esac'.
> 
> This is a largish annoyance for me when working with bash-completion,
> which currently uses these constructs quite a bit in case patterns, and
> more is on the way.





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#31609; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 27 May 2018 16:44:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 27 12:44:42 2018
Received: from localhost ([127.0.0.1]:51155 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1fMymf-00048T-RD
	for submit <at> debbugs.gnu.org; Sun, 27 May 2018 12:44:42 -0400
Received: from eggs.gnu.org ([208.118.235.92]:32815)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <vskytta@HIDDEN>) id 1fMyme-00048E-Ks
 for submit <at> debbugs.gnu.org; Sun, 27 May 2018 12:44:41 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vskytta@HIDDEN>) id 1fMymY-00046P-4Z
 for submit <at> debbugs.gnu.org; Sun, 27 May 2018 12:44:35 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:32812)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32)
 (Exim 4.71) (envelope-from <vskytta@HIDDEN>) id 1fMymY-00046I-0t
 for submit <at> debbugs.gnu.org; Sun, 27 May 2018 12:44:34 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:52019)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <vskytta@HIDDEN>) id 1fMymW-0003xy-53
 for bug-gnu-emacs@HIDDEN; Sun, 27 May 2018 12:44:33 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <vskytta@HIDDEN>) id 1fMymU-00043V-L2
 for bug-gnu-emacs@HIDDEN; Sun, 27 May 2018 12:44:32 -0400
Received: from mail-it0-x22b.google.com ([2607:f8b0:4001:c0b::22b]:50408)
 by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)
 (Exim 4.71) (envelope-from <vskytta@HIDDEN>) id 1fMymU-00042Y-EA
 for bug-gnu-emacs@HIDDEN; Sun, 27 May 2018 12:44:30 -0400
Received: by mail-it0-x22b.google.com with SMTP id p3-v6so12300968itc.0
 for <bug-gnu-emacs@HIDDEN>; Sun, 27 May 2018 09:44:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=mime-version:sender:from:date:message-id:subject:to;
 bh=5aJINsZA7+Zc15ge8pN8Qu14n5S0UDVLxOUsfU4GLiQ=;
 b=UL1OQpS9TbD4PK90POW+/toDjg/LRKP6I+BtzQf4OwcgbSDGVXLiq3hJ9bb9mkP31H
 4vd/fnM6Iun0bU+l40UWQsrPa+KUsLl7G/Weenm00gc6iK8+NsJSLHgq5cwd366uYY3P
 dzDVHNdQoJKv/R84zuZvA6nqzbItu6hyDDO41Qj5kz2JOHIbzMWiEvmwS4JIRIbfyIHC
 Ncap+AF+QEvdWbv3t/HXeq8/Tv+yOo9RHB9zY07cX7qeqMmUIkoP773Agpmk1cygfMRo
 P4vmrK0qATzXY/rJcBfyiQ0cuiUvTwjTFMFzI7cI1FrRlFWwh7c1Gm+EcrMZJRgptAnp
 kbJw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:mime-version:sender:from:date:message-id:subject
 :to; bh=5aJINsZA7+Zc15ge8pN8Qu14n5S0UDVLxOUsfU4GLiQ=;
 b=o9fT5TQ9SWYsMdE2leGHM94QfOljbwXmVbPROMHib01uo+CClDBkstlaJtDOmVwWxV
 ldqGUboBicnayfc7/uR3J4LHgKpOGRbJnTSn5i3IZk76w+DaslcA3Z7dsg/ERzAF4D0h
 hLtKJn6Z0biJOdNm9vTuhJA/HNBSNyTDN9YPExx3BhsPUQNTz+npuA7+5A3rtytqG2Gh
 hV1SbwtJ4NQ6FykeF9QibPY7eIzpQ5wwjuMP0KZv+rh9Ck4AoP9BRfxq4iDab45x07Po
 fj9q6BZbWSGvir7LES8WgVTX9PFFSiXPSF+7jNC46tiXfrxoZiSGlhr5knaqht1avo9o
 XBfw==
X-Gm-Message-State: ALKqPwdRnpdAeC2g0yx6DS0QCT+yNY/pJbHwEKT6uA6gCgochhtz56wH
 8e3zvm87pjFO0y4vNwzShFnTdKOA1eZYtTeV797+DTxx
X-Google-Smtp-Source: ADUXVKL14xu/kzDhyOQXQGnh7vk0yNlW/aPK21yvOdzURxjo1bdORudeze+z9fmtTM/OrZuDQy/bj+ckHFkuZ3vkUms=
X-Received: by 2002:a24:9c1:: with SMTP id 184-v6mr9204658itm.9.1527439468978; 
 Sun, 27 May 2018 09:44:28 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a02:1c48:0:0:0:0:0 with HTTP; Sun, 27 May 2018 09:44:08
 -0700 (PDT)
From: =?UTF-8?Q?Ville_Skytt=C3=A4?= <ville.skytta@HIDDEN>
Date: Sun, 27 May 2018 18:44:08 +0200
X-Google-Sender-Auth: lVSzgiihf1LtF0j-fbwatA2t90k
Message-ID: <CABr9L5CBkvqVyz3QJU1xqf_d3bsVcvq48kNPVNj=vUUv=mxa7Q@HIDDEN>
Subject: 25.3; sh-mode is confused about bash extglobs in case patterns
To: bug-gnu-emacs@HIDDEN
Content-Type: text/plain; charset="UTF-8"
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
 recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -3.5 (---)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.5 (----)

When using bash's extended globbing constructs such as @(...), +(...),
!(...), *(...) in case patterns, sh-mode gets confused and indentation
         no longer works properly.

For example:

case $foo in
    @(bar|quux))
                <-- TAB brings the cursor here
        <-- ...whereas I would have expected it to be here
[...]

The indentation continues to be off for the remainder of the file,
i.e. after the ;; and terminating `esac'.

This is a largish annoyance for me when working with bash-completion,
which currently uses these constructs quite a bit in case patterns, and
more is on the way.

In GNU Emacs 25.3.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.25)
 of 2018-04-19 built on lgw01-amd64-032
Windowing system distributor 'The X.Org Foundation', version 11.0.11905000
System Description: Ubuntu 17.10

Configured using:
 'configure --build=x86_64-linux-gnu --prefix=/usr
 '--includedir=${prefix}/include' '--mandir=${prefix}/share/man'
 '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var
 --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu'
 '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode
 --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib
 --program-suffix=25 --with-modules --with-x=yes --with-x-toolkit=gtk3
 'CFLAGS=-g -O2
 -fdebug-prefix-map=/build/emacs25-VAyiBS/emacs25-25.3~1.gite0284ab=.
-fstack-protector-strong
 -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro
 -no-pie''

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X11 MODULES

Important settings:
  value of $LC_MONETARY: fi_FI.UTF-8
  value of $LC_NUMERIC: fi_FI.UTF-8
  value of $LC_TIME: fi_FI.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  shell-dirtrack-mode: t
  global-company-mode: t
  company-mode: t
  projectile-global-mode: t
  projectile-mode: t
  which-function-mode: t
  show-paren-mode: t
  global-hl-line-mode: t
  editorconfig-mode: t
  global-flycheck-mode: t
  flycheck-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
Loading editorconfig...done
Loading hl-line...done
Loading paren...done
Loading which-func...done
Turn on helm-projectile key bindings
For information about GNU Emacs and the GNU system, type C-h C-a.

Load-path shadows:
/home/scop/.emacs.d/elpa/editorconfig-0.7.11/editorconfig-autoloads
hides /usr/share/emacs/site-lisp/elpa-src/editorconfig-0.4/editorconfig-autoloads
/home/scop/.emacs.d/elpa/editorconfig-0.7.11/editorconfig-pkg hides
/usr/share/emacs/site-lisp/elpa-src/editorconfig-0.4/editorconfig-pkg
/home/scop/.emacs.d/elpa/editorconfig-0.7.11/editorconfig hides
/usr/share/emacs/site-lisp/elpa-src/editorconfig-0.4/editorconfig
/usr/share/emacs/site-lisp/dictionaries-common/ispell hides
/usr/share/emacs/25.3/lisp/textmodes/ispell
/usr/share/emacs/site-lisp/dictionaries-common/flyspell hides
/usr/share/emacs/25.3/lisp/textmodes/flyspell
/home/scop/.emacs.d/elpa/let-alist-1.0.5/let-alist hides
/usr/share/emacs/25.3/lisp/emacs-lisp/let-alist

Features:
(shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec epg
mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils
mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils
company-oddmuse company-keywords company-etags etags xref project
company-gtags company-dabbrev-code company-dabbrev company-files
company-capf company-cmake company-xcode company-clang company-semantic
company-eclim company-template company-css company-nxml company-bbdb
company-anaconda anaconda-mode pythonic f s python tramp-sh url
url-proxy url-privacy url-expand url-methods url-history url-cookie
url-domsuf url-util url-parse url-vars mailcap tramp tramp-compat
auth-source gnus-util mm-util help-fns mail-prsvr password-cache
tramp-loaddefs trampver ucs-normalize shell pcomplete company
helm-projectile helm-files helm-tags helm-buffers helm-locate helm-types
projectile grep compile comint ansi-color ring ibuf-ext ibuffer
thingatpt helm-swoop helm-grep helm-regexp format-spec helm-utils
helm-help helm helm-source cl-seq eieio-compat eieio eieio-core cl-macs
helm-multi-match helm-lib advice async iso-transl edmacro kmacro
jka-compr which-func imenu paren hl-line editorconfig cus-start cus-load
flycheck json map find-func subr-x dash use-package diminish bind-key
easy-mmode finder-inf rx info package epg-config seq byte-opt gv
bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs
pcase cl-lib time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame 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 charscript
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer
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 dbusbind inotify
dynamic-setting system-font-setting font-render-setting move-toolbar gtk
x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 324999 11377)
 (symbols 48 32532 0)
 (miscs 40 452 122)
 (strings 32 60098 10582)
 (string-bytes 1 1978257)
 (vectors 16 52692)
 (vector-slots 8 860266 5620)
 (floats 8 424 17)
 (intervals 56 309 71)
 (buffers 976 17))




Acknowledgement sent to Ville Skyttä <ville.skytta@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#31609; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 28 May 2018 00:30:02 UTC

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