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: Ed Avis
Subject: bug#18944: 24.4; perl-mode electric-indent inside here documents
Date: Mon, 23 Sep 2019 09:23:36 +0000

When you look at this, if you want to widen the scope of the bug, note that 
recent Perl versions allow indented here-documents using <<~ syntax.

#!/usr/bin/perl
my $x = <<~END
    Here is some indented stuff.
    Because the terminator END is also indented by four spaces,
    those spaces will be stripped off the resulting string.
    END
;
print $x;

That's an example of where Emacs really should indent the content of the 'here 
document', including the terminator.

But for the older style without ~ it really has to be at the left margin, and 
most likely the content of the string will start from the left margin too.


To learn how we protect privacy, please use this link 
(https://www.qma.com/gdpr.html) to read our Privacy Notice.

This email and any files transmitted with it are CONFIDENTIAL and are intended 
solely for the use of the individual(s) or entity to whom they are addressed. 
Any unauthorised copying, disclosure or distribution of the material within 
this email is strictly forbidden. Any views or opinions presented within this 
email are solely those of the author and do not necessarily represent those of 
QMA Wadhwani (QMAW) unless otherwise specifically stated. An electronic message 
is not binding on its sender. Any message referring to a binding agreement must 
be confirmed in writing and duly signed. If you have received this email in 
error, please notify the sender immediately and delete the original. Telephone, 
electronic and other communications and conversations with QMAW and/or its 
associated persons may be recorded and retained.

Please note that your personal information may be stored and processed in any 
country where we have facilities or in which we engage service providers. If 
you provide personal information to us by email or otherwise, you consent to 
the transfer of that information to countries outside of your country of 
residence and these countries may have different data protection rules than 
your country.


This email is intended only for the person to whom it is addressed and may 
contain confidential information. Any retransmission, copying, disclosure or 
other use of, this information by persons other than the intended recipient is 
prohibited. If you received this email in error, please contact the sender and 
delete the material. This email is for information only and is not intended as 
an offer or solicitation for the purchase or sale of any financial instrument. 
QMA Wadhwani LLP is a Limited Liability Partnership registered in England 
(OC303168) with registered office at 9th Floor Orion House, 5 Upper St Martin’s 
Lane, London, WC2H 9EA.

To learn how we protect privacy, please use this link 
(https://www.qma.com/gdpr.html) to read our Privacy Notice.

reply via email to

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