Subject: Re: bug#18944: 24.4; perl-mode electric-indent inside here documents

From: Lars Ingebrigtsen <[email-masked]>
Date: Tue, 25 Jan 2022 15:08:29 +0100

Ed Avis <[email-masked]> writes:

> With 26.1 the way to reproduce is a bit different.  Make a new buffer,
> M-x perl-mode, and enter
>
> my $x = <<END
> END
>
> hitting Return at the end of each line.  But when you hit Return on
> the second line, the END becomes indented by four spaces.  That's not
> right since a here-document terminator should be at the left margin.

This is apparently fixed in Emacs 29, but another related bug has
appeared:

my $x = <<END
END

If you hit RET after the second line, Emacs will then indent the next
line:

I.e., indented by four chars.

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