all messages for Emacs-related lists mirrored at yhetil.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

* bug#33183: perl-mode: indent-region injects spaces after newlines causing data loss
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-12-09 17:33 UTC (permalink / raw)
  To: 積丹尼 Dan Jacobson; +Cc: 33183

積丹尼 Dan Jacobson <jidanni@jidanni.org> writes:

> 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

I can reproduce this in Emacs 26, but not in Emacs 28, so I guess this
has been fixed in the years since this was reported, and I'm closing
this bug report.  

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





^ 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 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.