* bug#42953: Perl-mode: bonus spaces inserted
@ 2020-08-20 11:05 積丹尼 Dan Jacobson
2020-08-20 13:03 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: 積丹尼 Dan Jacobson @ 2020-08-20 11:05 UTC (permalink / raw)
To: 42953
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#42953: Perl-mode: bonus spaces inserted
2020-08-20 11:05 bug#42953: Perl-mode: bonus spaces inserted 積丹尼 Dan Jacobson
@ 2020-08-20 13:03 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2020-08-20 13:03 UTC (permalink / raw)
To: 積丹尼 Dan Jacobson; +Cc: 42953
積丹尼 Dan Jacobson <jidanni@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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-20 13:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-20 11:05 bug#42953: Perl-mode: bonus spaces inserted 積丹尼 Dan Jacobson
2020-08-20 13:03 ` 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).