unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Ian Kelling <ian@iankelling.org>
Cc: 18029@debbugs.gnu.org
Subject: bug#18029: 24.4.50; bad shell-script-mode indentation due to ^[{([] in a here document
Date: Sat, 29 May 2021 06:19:56 +0200	[thread overview]
Message-ID: <87lf7ytbmb.fsf@gnus.org> (raw)
In-Reply-To: <87ha2i2riq.fsf@treetowl.lan> (Ian Kelling's message of "Tue, 15 Jul 2014 15:20:29 -0700")

Ian Kelling <ian@iankelling.org> 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?

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





  reply	other threads:[~2021-05-29  4:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-15 22:20 bug#18029: 24.4.50; bad shell-script-mode indentation due to ^[{([] in a here document Ian Kelling
2021-05-29  4:19 ` Lars Ingebrigtsen [this message]
2021-06-07 17:57   ` Ian Kelling
2021-06-07 18:04     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lf7ytbmb.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=18029@debbugs.gnu.org \
    --cc=ian@iankelling.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).