bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Lars Ingebrigtsen
Subject: bug#18944: 24.4; perl-mode electric-indent inside here documents
Date: Tue, 25 Jan 2022 15:08:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Ed Avis <eda@waniasset.com> 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:

PNG image

I.e., indented by four chars.

PNG image



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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]