all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ed Avis <eda@waniasset.com>
To: Stefan Kangas <stefan@marxist.se>
Cc: "18944@debbugs.gnu.org" <18944@debbugs.gnu.org>
Subject: bug#18944: 24.4; perl-mode electric-indent inside here documents
Date: Mon, 23 Sep 2019 09:23:36 +0000	[thread overview]
Message-ID: <95fccc16fb654c7492557f53788a133b@WCL-EX13MBX-DR.wcl.local> (raw)
In-Reply-To: <CADwFkm=H43JaErFBetg6QT3wGzxXM8WVoXD-hiZ48BaYLfth5A@mail.gmail.com>

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	other threads:[~2019-09-23  9:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-04 15:50 bug#18944: 24.4; perl-mode electric-indent inside here documents Ed Avis
2019-09-20 23:12 ` Stefan Kangas
2019-09-23  8:35   ` Ed Avis
2019-09-23  9:15     ` Stefan Kangas
2019-09-23  9:23       ` Ed Avis [this message]
2022-01-25 14:08     ` Lars Ingebrigtsen
     [not found]       ` <PH0PR11MB56117AD63C236DE5DC7E4743845F9@PH0PR11MB5611.namprd11.prod.outlook.com>
2022-01-25 14:23         ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=95fccc16fb654c7492557f53788a133b@WCL-EX13MBX-DR.wcl.local \
    --to=eda@waniasset.com \
    --cc=18944@debbugs.gnu.org \
    --cc=stefan@marxist.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.