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: Stefan Kangas
Subject: bug#18944: 24.4; perl-mode electric-indent inside here documents
Date: Mon, 23 Sep 2019 11:15:58 +0200

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.

Thanks for reporting back.  I can reproduce this bug with the above
recipe on current master and Emacs 26.3.

A workaround is to add a semi-colon to END:

my $x = <<END;
END;

Best regards,
Stefan Kangas





reply via email to

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