GNU bug report logs - #18944
24.4; perl-mode electric-indent inside here documents

Previous Next

Package: emacs;

Reported by: Ed Avis <eda <at> waniasset.com>

Date: Tue, 4 Nov 2014 15:51:01 UTC

Severity: minor

Tags: confirmed

Found in versions 26.1, 26.3, 24.4

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 18944 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefan <at> marxist.se>
To: Ed Avis <eda <at> waniasset.com>
Cc: "18944 <at> debbugs.gnu.org" <18944 <at> debbugs.gnu.org>
Subject: Re: bug#18944: 24.4; perl-mode electric-indent inside here documents
Date: Mon, 23 Sep 2019 11:15:58 +0200
Ed Avis <eda <at> 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




This bug report was last modified 3 years and 201 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.