unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33183: perl-mode: indent-region injects spaces after newlines causing data loss
@ 2018-10-28  0:56 積丹尼 Dan Jacobson
  2020-12-09 17:33 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2018-10-28  0:56 UTC (permalink / raw)
  To: 33183

In perl-mode

%fields = (
    u =>
    'test
ing' . q{test
2} .
    qq/last
test/ );

becomes

%fields = (
    u =>
    'test
    ing' . q{test
    2} .
    qq/last
    test/ );

after running indent-region, on the region. However

my $x= 'new
    line';
my $y= q{new
    line};

is unaffected, thankfully.
emacs-version "25.2.2"

Also wrecks
     u =>
    <<EOF
nnnn
xxxx
EOF

P.S., takes a lot of work to repair wrecked areas. One form of data loss!

In fact it even wrecks top level here-docs:
my $x = <<EOF;
nnnn
xxxx
EOF

will get wrecked.

Also wrecks
sub mq{
    return "a
b";}





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-09 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-28  0:56 bug#33183: perl-mode: indent-region injects spaces after newlines causing data loss 積丹尼 Dan Jacobson
2020-12-09 17:33 ` Lars Ingebrigtsen

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).