From unknown Thu Jun 19 13:57:53 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#33183 <33183@debbugs.gnu.org> To: bug#33183 <33183@debbugs.gnu.org> Subject: Status: perl-mode: indent-region injects spaces after newlines causing data loss Reply-To: bug#33183 <33183@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:57:53 +0000 retitle 33183 perl-mode: indent-region injects spaces after newlines causin= g data loss reassign 33183 emacs submitter 33183 =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson severity 33183 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 27 21:58:12 2018 Received: (at submit) by debbugs.gnu.org; 28 Oct 2018 01:58:12 +0000 Received: from localhost ([127.0.0.1]:46112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGaLD-0001jm-SL for submit@debbugs.gnu.org; Sat, 27 Oct 2018 21:58:12 -0400 Received: from eggs.gnu.org ([208.118.235.92]:41132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gGaLC-0001jU-H7 for submit@debbugs.gnu.org; Sat, 27 Oct 2018 21:58:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGaL6-0004fm-Mc for submit@debbugs.gnu.org; Sat, 27 Oct 2018 21:58:05 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FROM_EXCESS_BASE64 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33775) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gGaL6-0004fa-Ij for submit@debbugs.gnu.org; Sat, 27 Oct 2018 21:58:04 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gGaL5-00026C-Ne for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 21:58:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gGaL2-0004an-KB for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 21:58:03 -0400 Received: from pop.dreamhost.com ([64.90.62.162]:55550 helo=pdx1-sub0-mail-a74.g.dreamhost.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gGaL2-0004Z5-BS for bug-gnu-emacs@gnu.org; Sat, 27 Oct 2018 21:58:00 -0400 Received: from pdx1-sub0-mail-a74.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a74.g.dreamhost.com (Postfix) with ESMTP id 297F1807FE for ; Sat, 27 Oct 2018 18:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=hjH77j0gqRBB+RWw+6LsS/oGkwM=; b=iVhhltUA2xdnddbf DtiDZMQJqLYtqhrupeAnShn7V6l+V0phfdPZLwwigtrOZxQrHu+kIqSrQX6vthfC 1vswqV7gTLSBm4NCAe8Vh+DJQkF+ym7KwocgSaizgfNPCKau6/p8t+jGcP8Z0suT hbNwsBD2v65l2T92r7bqI2R7bkc= Received: from jidanni.org (1-170-85-80.dynamic-ip.hinet.net [1.170.85.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a74.g.dreamhost.com (Postfix) with ESMTPSA id E7C6C807FF for ; Sat, 27 Oct 2018 18:57:57 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a74 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: perl-mode: indent-region injects spaces after newlines causing data loss Date: Sun, 28 Oct 2018 08:56:47 +0800 Message-ID: <87a7myq46o.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtkedrheehgdehfecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgesthdtredttddtjeenucfhrhhomhepnjjnnjcuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqnecukfhppedurddujedtrdekhedrkedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddrudejtddrkeehrdektddprhgvthhurhhnqdhprghthheppeeruhhtfhdqkeerueerheeimhfphefnihehhegsveekreepucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqedpmhgrihhlfhhrohhmpehjihgurghnnhhisehjihgurghnnhhirdhorhhgpdhnrhgtphhtthhopegsuhhgqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.9 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.9 (-----) 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 => <) id 1kn3L6-0001Nw-L1 for submit@debbugs.gnu.org; Wed, 09 Dec 2020 12:33:20 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40646) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn3L5-0001Nh-Jp for 33183@debbugs.gnu.org; Wed, 09 Dec 2020 12:33:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=lDjbohuBmiqiCaZEeaIVOVACifKpNs5rdRwkKO6ndGs=; b=ACJKCjQV/cQ1XQ0d1FEtRKtq/2 OBsHukqMxQshsk0XPXKzLigyEwKBFO43mbY32xMCtRY/GrWM97A4JEZ3wjSKY3FdVb4xiR245E0mz padQOCl8c37eZIaiTNA0Z9Jx8MzQu5oOFSM/5U8Nv6ehsoMW2Dkk/pWGyKO379zzRz8Q=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kn3Kw-0003iB-Hd; Wed, 09 Dec 2020 18:33:13 +0100 From: Lars Ingebrigtsen To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson Subject: Re: bug#33183: perl-mode: indent-region injects spaces after newlines causing data loss References: <87a7myq46o.fsf@jidanni.org> X-Now-Playing: Adult.'s _Perception is-as-of Deception_: "Total Total Damage" Date: Wed, 09 Dec 2020 18:33:09 +0100 In-Reply-To: <87a7myq46o.fsf@jidanni.org> (=?utf-8?B?IuepjeS4ueWwvA==?= Dan Jacobson"'s message of "Sun, 28 Oct 2018 08:56:47 +0800") Message-ID: <878sa6yje2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: 積丹尼 Dan Jacobson 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 inden [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 33183 Cc: 33183@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson writes: > In perl-mode > > %fields =3D ( > u =3D> > 'test > ing' . q{test > 2} . > qq/last > test/ ); > > becomes > > %fields =3D ( > u =3D> > '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.=20=20 --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 09 12:33:27 2020 Received: (at control) by debbugs.gnu.org; 9 Dec 2020 17:33:27 +0000 Received: from localhost ([127.0.0.1]:35957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn3LC-0001OG-Re for submit@debbugs.gnu.org; Wed, 09 Dec 2020 12:33:27 -0500 Received: from quimby.gnus.org ([95.216.78.240]:40660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kn3LB-0001Nv-OS for control@debbugs.gnu.org; Wed, 09 Dec 2020 12:33:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=5dZ1mGxqx1DK/tsYsvsSXH8Vcam9XFzLeuG3vEuKKRE=; b=gDJvdCjbR8Kbes7DRboTMR0rZZ TFrSnKR4J+2wRDHSFFJRTCym40hgvw7swLQRPTyDptqx8EM9Cp8KCFVJ+1nyopgnSWw5+NuGSnOXH Y3WI8F6i3QXZmPA58iG0rY+zsSO0BSBzOtBa24FcRazh0nUuM6weJA+NZPHFElqo25v0=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kn3L4-0003iJ-41 for control@debbugs.gnu.org; Wed, 09 Dec 2020 18:33:20 +0100 Date: Wed, 09 Dec 2020 18:33:16 +0100 Message-Id: <877dpqyjdv.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #33183 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 33183 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 33183 quit From unknown Thu Jun 19 13:57:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 07 Jan 2021 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator