GNU bug report logs - #42953
Perl-mode: bonus spaces inserted

Previous Next

Package: emacs;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Thu, 20 Aug 2020 12:59:01 UTC

Severity: normal

Tags: fixed

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42953 in the body.
You can then email your comments to 42953 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#42953; Package emacs. (Thu, 20 Aug 2020 12:59:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 20 Aug 2020 12:59:01 GMT) Full text and rfc822 format available.

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

From: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
To: bug-gnu-emacs <at> gnu.org
Subject: Perl-mode: bonus spaces inserted
Date: Thu, 20 Aug 2020 19:05:09 +0800
In Perl mode, upon entering the ";" in

print "
";

Three spaces are wrongly inserted, making it

print "
    ";

I.e., type
 p [self-insert-command]
 r [self-insert-command]
 i [self-insert-command]
 n [self-insert-command]
 t [self-insert-command]
 SPC [self-insert-command]
 " [self-insert-command]
 RET [newline]
 " [self-insert-command]

OK, now type the

 ; [self-insert-command]

Whammo, three spaces are inserted.

emacs-version "26.3", using
$ emacs -Q -nw /tmp/q.pl

Sure "Just use \n. Case closed."
Yes, but emacs still has no business inserting spaces into strings.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#42953; Package emacs. (Thu, 20 Aug 2020 13:05:01 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>
Cc: 42953 <at> debbugs.gnu.org
Subject: Re: bug#42953: Perl-mode: bonus spaces inserted
Date: Thu, 20 Aug 2020 15:03:58 +0200
積丹尼 Dan Jacobson <jidanni <at> jidanni.org> writes:

> In Perl mode, upon entering the ";" in
>
> print "
> ";
>
> Three spaces are wrongly inserted, making it
>
> print "
>     ";

I can reproduce this in Emacs 26, but it's been fixed in Emacs 28.

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




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 20 Aug 2020 13:05:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 42953 <at> debbugs.gnu.org and 積丹尼 Dan Jacobson <jidanni <at> jidanni.org> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 20 Aug 2020 13:05:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 18 Sep 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 278 days ago.

Previous Next


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