From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ian Kelling Newsgroups: gmane.emacs.bugs Subject: bug#18029: 24.4.50; bad shell-script-mode indentation due to ^[{([] in a here document Date: Mon, 07 Jun 2021 13:57:57 -0400 Message-ID: <87lf7ld08k.fsf@iankelling.org> References: <87ha2i2riq.fsf@treetowl.lan> <87lf7ytbmb.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40493"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.7; emacs 28.0.50 Cc: 18029@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 07 20:00:37 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lqJYC-000AGe-FL for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 20:00:36 +0200 Original-Received: from localhost ([::1]:37316 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lqJYB-0005Za-FY for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 07 Jun 2021 14:00:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqJXe-0005VQ-Q5 for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:00:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45088) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lqJXe-0001Ud-Ed for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lqJXd-0000Jh-W4 for bug-gnu-emacs@gnu.org; Mon, 07 Jun 2021 14:00:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ian Kelling Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 Jun 2021 18:00:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18029 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo confirmed Original-Received: via spool by 18029-submit@debbugs.gnu.org id=B18029.16230887831166 (code B ref 18029); Mon, 07 Jun 2021 18:00:01 +0000 Original-Received: (at 18029) by debbugs.gnu.org; 7 Jun 2021 17:59:43 +0000 Original-Received: from localhost ([127.0.0.1]:56634 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqJXL-0000Ik-0H for submit@debbugs.gnu.org; Mon, 07 Jun 2021 13:59:43 -0400 Original-Received: from mail.iankelling.org ([72.14.176.105]:56676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lqJXJ-0000Ib-Ac for 18029@debbugs.gnu.org; Mon, 07 Jun 2021 13:59:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=iankelling.org; s=li; h=MIME-Version:In-reply-to:Date:Subject:To:From: References; bh=SP3Ths3cmyGZuyhf+Skw7HfrSZUwsMguaWdbMV//F+E=; b=Ej5qH7hh6dzTgJ uG+1+t/WeKeoycOTZnAIEw+fLFja7TiI1guX67IMB38VWWmnjO5/nJm1cN/8qJnixPxE2upae2cZH dJVGhgpSnWBqX0HOuYSD1htRZhArAILlHpGYqHkfnpKMM9+86iUG32A0cKA17R9U2FMgWRq5xpH/1 iN8RZP6eFyCNElImou66fPGrDKLCiT+T5MVxi1FmbfmRlkhL86NUIzRQA8PC9MiFcEwWEHoD3Up0i pZg9VAHFpP6JMgR5YuCfLJRefNtf3gTEfJkbnFsPNuONuQapyNNebGA2zdpsELCSk+2esDjfJcHg9 eX7SdRAMt3Orf9ZMD6fg==; Original-Received: from defaultnn.b8.nz ([10.173.8.1]:54464 helo=mail.iankelling.org) by mail.iankelling.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lqJXI-00046K-3Z; Mon, 07 Jun 2021 13:59:40 -0400 Original-Received: from iank by mail.iankelling.org with local (Exim 4.90_1) (envelope-from ) id 1lqJXH-00046D-NJ; Mon, 07 Jun 2021 13:59:39 -0400 In-reply-to: <87lf7ytbmb.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:208189 Archived-At: Lars Ingebrigtsen writes: > Ian Kelling writes: > >> emacs -Q the following files, then use indent region on the whole buffer: >> (indent-region (point-min) (point-max)) Similar indent commands will work the >> same. This is how they get indented: >> >> #!/bin/bash >> if true; then >> true <<'EOF' >> [ line beginning with one of [{( >> EOF >> fi >> >> if true; then >> true >> # comment containing a single quote 'true >> fi >> true > > (I'm going through old bug reports that unfortunately got no response at > the time.) > > I'm unable to reproduce this in Emacs 28, and Emacs 25.1 is the oldest > one I have, and I can't reproduce it there, either. > > But Noam tagged this as reproduced in Emacs 25.2. > > Are you still seeing this problem in more recent Emacs versions? Originally reported in 24.4.50.1, but I'm in a much more recent version and it doesn't repro. It's been fixed! Thank you for checking up on this and please close this bug.