X-Loop: help-debbugs@HIDDEN
Subject: bug#79176: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
Resent-From: Tony Zorman <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 05 Aug 2025 14:10:02 +0000
Resent-Message-ID: <handler.79176.B.175440294611076 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 79176
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: 79176 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.175440294611076
(code B ref -1); Tue, 05 Aug 2025 14:10:02 +0000
Received: (at submit) by debbugs.gnu.org; 5 Aug 2025 14:09:06 +0000
Received: from localhost ([127.0.0.1]:56594 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ujILh-0002sZ-Lb
for submit <at> debbugs.gnu.org; Tue, 05 Aug 2025 10:09:06 -0400
Received: from lists.gnu.org ([2001:470:142::17]:39520)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <mail@HIDDEN>)
id 1ujFlO-0005G6-87
for submit <at> debbugs.gnu.org; Tue, 05 Aug 2025 07:23:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mail@HIDDEN>)
id 1ujFlI-00079M-Kc
for bug-gnu-emacs@HIDDEN; Tue, 05 Aug 2025 07:23:20 -0400
Received: from www553.your-server.de ([78.46.153.203])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mail@HIDDEN>)
id 1ujFlA-0001Ya-Ad
for bug-gnu-emacs@HIDDEN; Tue, 05 Aug 2025 07:23:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=tony-zorman.com; s=default2502; h=Content-Type:MIME-Version:Message-ID:Date
:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References;
bh=m/Gdxztk91BQryCs62vYLylOeHHpt7kS98+y37Xmg5M=; b=dW+bqNTcX/psHgSzwATXm0lItP
CoAUWQ597/wjbjGM72Wugh28N0PIVQj8FAE2dRKXz79pO6IoGB7c9CuFFzB9busC6A7mXFLy8YWCd
9fVeB0VC3hdMRoRvuKCGEU8aA/42IvEGyoLPCwVgWeey4038gpEbeSwOpi5JxMowgRQVid/ajcEVr
r7Q+/oPEz/braa1RlaBhMpjFA/QB8yKChqfCbIJhO0IBGVzlXVSoCMtOCF3JPuTn269ABdKOvFViW
zw3qLjQy0v+9K46DYRQ8PgHi98sds+ARzkl1B3BJNgv+WGjekSzHxmoG24OJjQnbQj/LQeOZy0Nwf
mpRTUrLQ==;
Received: from sslproxy05.your-server.de ([78.46.172.2])
by www553.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96.2) (envelope-from <mail@HIDDEN>)
id 1ujFl3-0003iH-0x for bug-gnu-emacs@HIDDEN;
Tue, 05 Aug 2025 13:23:05 +0200
Received: from localhost ([127.0.0.1])
by sslproxy05.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96) (envelope-from <mail@HIDDEN>)
id 1ujFl3-000I41-09 for bug-gnu-emacs@HIDDEN;
Tue, 05 Aug 2025 13:23:05 +0200
From: Tony Zorman <mail@HIDDEN>
Date: Tue, 05 Aug 2025 13:23:04 +0200
Message-ID: <874iumnhbb.fsf@hyperspace>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Virus-Scanned: Clear (ClamAV 1.0.7/27723/Tue Aug 5 10:36:10 2025)
Received-SPF: pass client-ip=78.46.153.203; envelope-from=mail@HIDDEN;
helo=www553.your-server.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Mailman-Approved-At: Tue, 05 Aug 2025 10:09:02 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)
--=-=-=
Content-Type: text/plain
Tags: patch
Hi,
when one uses `kill-ring-deindent-mode' and selects read-only text, the
mode can't actually deindent it, which causes a lot of `beep' noise and
prevents the user from killing the selected text (or from any other
action, really). This patch fixes this by removing that particular
property before the text is inserted into the temporary buffer.
Thanks,
Tony
--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
filename=0001-lisp-indent-aux.el-Remove-read-only-text-property.patch
From 5ef0ce6716dd0cb2f08833fdc54a83cca7b4f691 Mon Sep 17 00:00:00 2001
From: Tony Zorman <mail@HIDDEN>
Date: Tue, 5 Aug 2025 13:08:43 +0200
Subject: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
---
lisp/indent-aux.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/indent-aux.el b/lisp/indent-aux.el
index eeb8f1ee6bb..c184c1805da 100644
--- a/lisp/indent-aux.el
+++ b/lisp/indent-aux.el
@@ -49,6 +49,7 @@ is yanked."
(text (if delete
(delete-and-extract-region beg end)
(buffer-substring beg end))))
+ (remove-text-properties 0 (max 0 (1- (length text))) '(read-only) text)
(with-temp-buffer
;; Indent/deindent the same as the major mode in the original
;; buffer.
--
2.50.1
--=-=-=
Content-Type: text/plain
--
Tony Zorman | https://tony-zorman.com
--=-=-=--
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Tony Zorman <mail@HIDDEN> Subject: bug#79176: Acknowledgement ([PATCH] ; * lisp/indent-aux.el: Remove read-only text property) Message-ID: <handler.79176.B.175440294611076.ack <at> debbugs.gnu.org> References: <874iumnhbb.fsf@hyperspace> X-Gnu-PR-Message: ack 79176 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 79176 <at> debbugs.gnu.org Date: Tue, 05 Aug 2025 14:10:03 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 79176 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 79176: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79176 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN
Subject: bug#79176: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 05 Aug 2025 14:50:02 +0000
Resent-Message-ID: <handler.79176.B79176.175440539718773 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79176
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Tony Zorman <mail@HIDDEN>
Cc: 79176 <at> debbugs.gnu.org
Received: via spool by 79176-submit <at> debbugs.gnu.org id=B79176.175440539718773
(code B ref 79176); Tue, 05 Aug 2025 14:50:02 +0000
Received: (at 79176) by debbugs.gnu.org; 5 Aug 2025 14:49:57 +0000
Received: from localhost ([127.0.0.1]:56653 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ujIzF-0004sj-F5
for submit <at> debbugs.gnu.org; Tue, 05 Aug 2025 10:49:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:46084)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1ujIzC-0004sT-SA
for 79176 <at> debbugs.gnu.org; Tue, 05 Aug 2025 10:49:55 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
id 1ujIz5-0004SW-IN; Tue, 05 Aug 2025 10:49:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=WPvFSH7htW3bqOKPHIwrMxCWVSKpCGyYwosIt01ucMU=; b=oiHHKyE6aPiR
/bmMzDz2m+5XPjDo0tBFn3hBM4V5KmVzTDWAdBQwLFcs6CHKsmFKAC0Sy/ztGEsk2vsHzL1kU8ZTQ
NTy3CajIEJWr+ZvR1+mw5hUrrEUMPRRd2NtO5rOkdMeQT0JCQYLr9uorwsrZO30atAmlNzpuRa8lU
LpApS+OcS1YH8G13xYYVKM5A3Zu/AQAvdIpL+Dnoc7BeYyoiDXPYCPTzhlpNHe8mG5AvgsOIr76ba
Roq4Np8Ha/47aWXguSHmKf1ZT9x2KtiWEtnooG4rPsxqN7RIoEKsk7hOETckTeMIg4CUOfv/gWFcb
9IL9A+fXLVb4xi0BQwnmtw==;
Date: Tue, 05 Aug 2025 17:49:24 +0300
Message-Id: <865xf1vn63.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <874iumnhbb.fsf@hyperspace> (message from Tony Zorman on Tue, 05
Aug 2025 13:23:04 +0200)
References: <874iumnhbb.fsf@hyperspace>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> From: Tony Zorman <mail@HIDDEN>
> Date: Tue, 05 Aug 2025 13:23:04 +0200
>
> when one uses `kill-ring-deindent-mode' and selects read-only text, the
> mode can't actually deindent it, which causes a lot of `beep' noise and
> prevents the user from killing the selected text (or from any other
> action, really). This patch fixes this by removing that particular
> property before the text is inserted into the temporary buffer.
Thanks, but isn't it better to bind inhibit-read-only non-nil around
the code which modifies the text instead? By default
yank-excluded-properties includes read-only, but what if someone
changes the value not to include read-only? won't they expect to see
the read-only property when the text is yanked?
X-Loop: help-debbugs@HIDDEN
Subject: bug#79176: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
Resent-From: Tony Zorman <mail@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 06 Aug 2025 06:14:01 +0000
Resent-Message-ID: <handler.79176.B79176.175446079025211 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 79176
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: patch
To: Eli Zaretskii <eliz@HIDDEN>
Cc: 79176 <at> debbugs.gnu.org
Received: via spool by 79176-submit <at> debbugs.gnu.org id=B79176.175446079025211
(code B ref 79176); Wed, 06 Aug 2025 06:14:01 +0000
Received: (at 79176) by debbugs.gnu.org; 6 Aug 2025 06:13:10 +0000
Received: from localhost ([127.0.0.1]:57810 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ujXOg-0006YZ-4j
for submit <at> debbugs.gnu.org; Wed, 06 Aug 2025 02:13:10 -0400
Received: from www553.your-server.de ([78.46.153.203]:46274)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <mail@HIDDEN>)
id 1ujXOc-0006Xq-LD
for 79176 <at> debbugs.gnu.org; Wed, 06 Aug 2025 02:13:08 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=tony-zorman.com; s=default2502; h=Content-Type:MIME-Version:Message-ID:Date
:References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:
Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:
Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID;
bh=jGj6DmfdsfuQL3PKLFkJ8sy/NTyMsWmKedSj0SI0BfE=; b=XC3um40KHqMVsSDKSD5WMoUjmi
EWjpblsq8R2t2dteidVdEWltNJCEiOmTXvyAnJapRdkmtGJRxS2+61ityYXIcx+wVRemAEKuoPY0Y
E0Rlx43d1dFTj1KjgGumMnxFsy3uOlNpXRYCgAzBQ6aNRkfCbUhnzqmgfY5rep2xCkYpdpYqngZiq
gBNGPo0U35hD1C0YCWsbj5o2ETV8jIVZdBQz9d/P08MXF24sR8KrECY1xH/d5L9sLtUyzpcyJXxe5
MRqRrSEp6xamwvYfwgscxJKHhThdXQx5dN+loLqs3+eeevSerScB7r4guBlAcdLraGlXz4+lwrq00
UuXlVngg==;
Received: from sslproxy04.your-server.de ([78.46.152.42])
by www553.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96.2) (envelope-from <mail@HIDDEN>)
id 1ujXOV-0001Eo-0U; Wed, 06 Aug 2025 08:12:59 +0200
Received: from localhost ([127.0.0.1])
by sslproxy04.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96) (envelope-from <mail@HIDDEN>)
id 1ujXOU-0002Q1-0Z; Wed, 06 Aug 2025 08:12:58 +0200
From: Tony Zorman <mail@HIDDEN>
In-Reply-To: <865xf1vn63.fsf@HIDDEN>
References: <874iumnhbb.fsf@hyperspace> <865xf1vn63.fsf@HIDDEN>
User-Agent: Notmuch/0.39, Emacs 31.0.50
Date: Wed, 06 Aug 2025 08:12:58 +0200
Message-ID: <871pppnfkl.fsf@hyperspace>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Virus-Scanned: Clear (ClamAV 1.0.7/27723/Tue Aug 5 10:36:10 2025)
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)
--=-=-=
Content-Type: text/plain
On Tue, Aug 05 2025 17:49, Eli Zaretskii wrote:
>> From: Tony Zorman <mail@HIDDEN>
>> Date: Tue, 05 Aug 2025 13:23:04 +0200
>>
>> when one uses `kill-ring-deindent-mode' and selects read-only text, the
>> mode can't actually deindent it, which causes a lot of `beep' noise and
>> prevents the user from killing the selected text (or from any other
>> action, really). This patch fixes this by removing that particular
>> property before the text is inserted into the temporary buffer.
>
> Thanks, but isn't it better to bind inhibit-read-only non-nil around
> the code which modifies the text instead? By default
> yank-excluded-properties includes read-only, but what if someone
> changes the value not to include read-only? won't they expect to see
> the read-only property when the text is yanked?
Ah, I didn't know about yank-excluded-properties. You're right, in that
case perhaps it's better to use inhibit-read-only; I've updated the
patch accordingly.
--=-=-=
Content-Type: text/x-patch
Content-Disposition: inline;
filename=0001-lisp-indent-aux.el-Remove-read-only-text-property.patch
From e5aa85fd98113debe0e287a9ccbe03fd8cec1493 Mon Sep 17 00:00:00 2001
From: Tony Zorman <mail@HIDDEN>
Date: Tue, 5 Aug 2025 13:08:43 +0200
Subject: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
---
lisp/indent-aux.el | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/lisp/indent-aux.el b/lisp/indent-aux.el
index eeb8f1ee6bb..4a05136ac1a 100644
--- a/lisp/indent-aux.el
+++ b/lisp/indent-aux.el
@@ -50,13 +50,14 @@ is yanked."
(delete-and-extract-region beg end)
(buffer-substring beg end))))
(with-temp-buffer
- ;; Indent/deindent the same as the major mode in the original
- ;; buffer.
- (setq indent-tabs-mode i-t-m)
- (insert text)
- (indent-rigidly (point-min) (point-max)
- (- indentation))
- (buffer-string))))
+ (let ((inhibit-read-only t))
+ ;; Indent/deindent the same as the major mode in the original
+ ;; buffer.
+ (setq indent-tabs-mode i-t-m)
+ (insert text)
+ (indent-rigidly (point-min) (point-max)
+ (- indentation))
+ (buffer-string)))))
;;;###autoload
(define-minor-mode kill-ring-deindent-mode
--
2.50.1
--=-=-=
Content-Type: text/plain
--
Tony Zorman | https://tony-zorman.com
--=-=-=--
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Eli Zaretskii <eliz@HIDDEN>
Subject: bug#79176: closed ([PATCH] ; * lisp/indent-aux.el: Remove
read-only text property)
CC: tracker <at> debbugs.gnu.org
Message-ID: <handler.79176.D79176.175457245226906.ackdone <at> debbugs.gnu.org>
References: <86h5yjqnor.fsf@HIDDEN> <874iumnhbb.fsf@hyperspace>
X-Gnu-PR-Message: closed 79176
X-Gnu-PR-Package: emacs
X-Gnu-PR-Keywords: patch
Date: Thu, 07 Aug 2025 13:15:01 +0000
Content-Type: multipart/mixed; boundary="----------=_1754572501-26986-0"
This is a multi-part message in MIME format...
------------=_1754572501-26986-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset=utf-8
Your message dated Thu, 07 Aug 2025 16:13:56 +0300
with message-id <86h5yjqnor.fsf@HIDDEN>
and subject line Re: bug#79176: [PATCH] ; * lisp/indent-aux.el: Remove read=
-only text property
has caused the debbugs.gnu.org bug report #79176,
regarding [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
to be marked as done.
(If you believe you have received this mail in error, please contact
help-debbugs@HIDDEN)
--=20
79176: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79176
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems
------------=_1754572501-26986-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by debbugs.gnu.org; 5 Aug 2025 14:09:06 +0000
Received: from localhost ([127.0.0.1]:56594 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ujILh-0002sZ-Lb
for submit <at> debbugs.gnu.org; Tue, 05 Aug 2025 10:09:06 -0400
Received: from lists.gnu.org ([2001:470:142::17]:39520)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <mail@HIDDEN>)
id 1ujFlO-0005G6-87
for submit <at> debbugs.gnu.org; Tue, 05 Aug 2025 07:23:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mail@HIDDEN>)
id 1ujFlI-00079M-Kc
for bug-gnu-emacs@HIDDEN; Tue, 05 Aug 2025 07:23:20 -0400
Received: from www553.your-server.de ([78.46.153.203])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mail@HIDDEN>)
id 1ujFlA-0001Ya-Ad
for bug-gnu-emacs@HIDDEN; Tue, 05 Aug 2025 07:23:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=tony-zorman.com; s=default2502; h=Content-Type:MIME-Version:Message-ID:Date
:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References;
bh=m/Gdxztk91BQryCs62vYLylOeHHpt7kS98+y37Xmg5M=; b=dW+bqNTcX/psHgSzwATXm0lItP
CoAUWQ597/wjbjGM72Wugh28N0PIVQj8FAE2dRKXz79pO6IoGB7c9CuFFzB9busC6A7mXFLy8YWCd
9fVeB0VC3hdMRoRvuKCGEU8aA/42IvEGyoLPCwVgWeey4038gpEbeSwOpi5JxMowgRQVid/ajcEVr
r7Q+/oPEz/braa1RlaBhMpjFA/QB8yKChqfCbIJhO0IBGVzlXVSoCMtOCF3JPuTn269ABdKOvFViW
zw3qLjQy0v+9K46DYRQ8PgHi98sds+ARzkl1B3BJNgv+WGjekSzHxmoG24OJjQnbQj/LQeOZy0Nwf
mpRTUrLQ==;
Received: from sslproxy05.your-server.de ([78.46.172.2])
by www553.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96.2) (envelope-from <mail@HIDDEN>)
id 1ujFl3-0003iH-0x for bug-gnu-emacs@HIDDEN;
Tue, 05 Aug 2025 13:23:05 +0200
Received: from localhost ([127.0.0.1])
by sslproxy05.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96) (envelope-from <mail@HIDDEN>)
id 1ujFl3-000I41-09 for bug-gnu-emacs@HIDDEN;
Tue, 05 Aug 2025 13:23:05 +0200
From: Tony Zorman <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
X-Debbugs-Cc:
Date: Tue, 05 Aug 2025 13:23:04 +0200
Message-ID: <874iumnhbb.fsf@hyperspace>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Virus-Scanned: Clear (ClamAV 1.0.7/27723/Tue Aug 5 10:36:10 2025)
Received-SPF: pass client-ip=78.46.153.203; envelope-from=mail@HIDDEN;
helo=www553.your-server.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 05 Aug 2025 10:09:02 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)
--=-=-=
Content-Type: text/plain
Tags: patch
Hi,
when one uses `kill-ring-deindent-mode' and selects read-only text, the
mode can't actually deindent it, which causes a lot of `beep' noise and
prevents the user from killing the selected text (or from any other
action, really). This patch fixes this by removing that particular
property before the text is inserted into the temporary buffer.
Thanks,
Tony
--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
filename=0001-lisp-indent-aux.el-Remove-read-only-text-property.patch
From 5ef0ce6716dd0cb2f08833fdc54a83cca7b4f691 Mon Sep 17 00:00:00 2001
From: Tony Zorman <mail@HIDDEN>
Date: Tue, 5 Aug 2025 13:08:43 +0200
Subject: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
---
lisp/indent-aux.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/indent-aux.el b/lisp/indent-aux.el
index eeb8f1ee6bb..c184c1805da 100644
--- a/lisp/indent-aux.el
+++ b/lisp/indent-aux.el
@@ -49,6 +49,7 @@ is yanked."
(text (if delete
(delete-and-extract-region beg end)
(buffer-substring beg end))))
+ (remove-text-properties 0 (max 0 (1- (length text))) '(read-only) text)
(with-temp-buffer
;; Indent/deindent the same as the major mode in the original
;; buffer.
--
2.50.1
--=-=-=
Content-Type: text/plain
--
Tony Zorman | https://tony-zorman.com
--=-=-=--
------------=_1754572501-26986-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 79176-done) by debbugs.gnu.org; 7 Aug 2025 13:14:12 +0000
Received: from localhost ([127.0.0.1]:34039 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1uk0Rf-0006zu-BB
for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 09:14:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55244)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uk0RZ-0006zE-6J
for 79176-done <at> debbugs.gnu.org; Thu, 07 Aug 2025 09:14:08 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
id 1uk0RT-0001Or-8g; Thu, 07 Aug 2025 09:13:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=Xx8nduWVXQ8+VsoaJky35noWJIocbS91bnHO5ewkfNs=; b=ISUDtGdv62tY
xie8H+0xSkFqgXJT1zrw5irXWc4NVly/hvxD8GxM25j4Hfca3FqpDBxme5QmK4eye0SH/uMPoQCe0
6u2+CnDxtoQ2VpINOJc3CLStcN8uIlItaQwLs5D/Xik+RDz+pM8yu1S97w8gWRvHfvDkygvJ5722r
SHoUBTcQgCZ53BHlVW5CeDCZib6UnGmb6UygXQGVI2k3nDIBdfYJDvYDpNXBLqj5Y4CFgJAyMDFJv
VnfE41dPy9KdeR4XohQQKoXZMOzr+9wrQJwhC2YtI8QDn1C86t9yoV6+dPctqTh8XOBiDNsAFd23S
gqwIP1bOZDe01SHx8CFlHQ==;
Date: Thu, 07 Aug 2025 16:13:56 +0300
Message-Id: <86h5yjqnor.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Tony Zorman <mail@HIDDEN>
In-Reply-To: <871pppnfkl.fsf@hyperspace> (message from Tony Zorman on Wed, 06
Aug 2025 08:12:58 +0200)
Subject: Re: bug#79176: [PATCH] ; * lisp/indent-aux.el: Remove read-only
text property
References: <874iumnhbb.fsf@hyperspace> <865xf1vn63.fsf@HIDDEN>
<871pppnfkl.fsf@hyperspace>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79176-done
Cc: 79176-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> From: Tony Zorman <mail@HIDDEN>
> Cc: 79176 <at> debbugs.gnu.org
> Date: Wed, 06 Aug 2025 08:12:58 +0200
>
> > Thanks, but isn't it better to bind inhibit-read-only non-nil around
> > the code which modifies the text instead? By default
> > yank-excluded-properties includes read-only, but what if someone
> > changes the value not to include read-only? won't they expect to see
> > the read-only property when the text is yanked?
>
> Ah, I didn't know about yank-excluded-properties. You're right, in that
> case perhaps it's better to use inhibit-read-only; I've updated the
> patch accordingly.
Thanks, now installed on the master branch (after fixing the commit
log message, since it still talked about removing the property).
I'm therefore closing this bug.
------------=_1754572501-26986-0--
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Tony Zorman <mail@HIDDEN>
Subject: bug#79176: closed (Re: bug#79176: [PATCH] ; * lisp/indent-aux.el:
Remove read-only text property)
Message-ID: <handler.79176.D79176.175457245226906.notifdone <at> debbugs.gnu.org>
References: <86h5yjqnor.fsf@HIDDEN> <874iumnhbb.fsf@hyperspace>
X-Gnu-PR-Message: they-closed 79176
X-Gnu-PR-Package: emacs
X-Gnu-PR-Keywords: patch
Reply-To: 79176 <at> debbugs.gnu.org
Date: Thu, 07 Aug 2025 13:15:02 +0000
Content-Type: multipart/mixed; boundary="----------=_1754572502-26986-1"
This is a multi-part message in MIME format...
------------=_1754572502-26986-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
Your bug report
#79176: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 79176 <at> debbugs.gnu.org.
--=20
79176: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D79176
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems
------------=_1754572502-26986-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at 79176-done) by debbugs.gnu.org; 7 Aug 2025 13:14:12 +0000
Received: from localhost ([127.0.0.1]:34039 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1uk0Rf-0006zu-BB
for submit <at> debbugs.gnu.org; Thu, 07 Aug 2025 09:14:12 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55244)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uk0RZ-0006zE-6J
for 79176-done <at> debbugs.gnu.org; Thu, 07 Aug 2025 09:14:08 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
id 1uk0RT-0001Or-8g; Thu, 07 Aug 2025 09:13:59 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
mime-version; bh=Xx8nduWVXQ8+VsoaJky35noWJIocbS91bnHO5ewkfNs=; b=ISUDtGdv62tY
xie8H+0xSkFqgXJT1zrw5irXWc4NVly/hvxD8GxM25j4Hfca3FqpDBxme5QmK4eye0SH/uMPoQCe0
6u2+CnDxtoQ2VpINOJc3CLStcN8uIlItaQwLs5D/Xik+RDz+pM8yu1S97w8gWRvHfvDkygvJ5722r
SHoUBTcQgCZ53BHlVW5CeDCZib6UnGmb6UygXQGVI2k3nDIBdfYJDvYDpNXBLqj5Y4CFgJAyMDFJv
VnfE41dPy9KdeR4XohQQKoXZMOzr+9wrQJwhC2YtI8QDn1C86t9yoV6+dPctqTh8XOBiDNsAFd23S
gqwIP1bOZDe01SHx8CFlHQ==;
Date: Thu, 07 Aug 2025 16:13:56 +0300
Message-Id: <86h5yjqnor.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Tony Zorman <mail@HIDDEN>
In-Reply-To: <871pppnfkl.fsf@hyperspace> (message from Tony Zorman on Wed, 06
Aug 2025 08:12:58 +0200)
Subject: Re: bug#79176: [PATCH] ; * lisp/indent-aux.el: Remove read-only
text property
References: <874iumnhbb.fsf@hyperspace> <865xf1vn63.fsf@HIDDEN>
<871pppnfkl.fsf@hyperspace>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 79176-done
Cc: 79176-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)
> From: Tony Zorman <mail@HIDDEN>
> Cc: 79176 <at> debbugs.gnu.org
> Date: Wed, 06 Aug 2025 08:12:58 +0200
>
> > Thanks, but isn't it better to bind inhibit-read-only non-nil around
> > the code which modifies the text instead? By default
> > yank-excluded-properties includes read-only, but what if someone
> > changes the value not to include read-only? won't they expect to see
> > the read-only property when the text is yanked?
>
> Ah, I didn't know about yank-excluded-properties. You're right, in that
> case perhaps it's better to use inhibit-read-only; I've updated the
> patch accordingly.
Thanks, now installed on the master branch (after fixing the commit
log message, since it still talked about removing the property).
I'm therefore closing this bug.
------------=_1754572502-26986-1
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit
Received: (at submit) by debbugs.gnu.org; 5 Aug 2025 14:09:06 +0000
Received: from localhost ([127.0.0.1]:56594 helo=debbugs.gnu.org)
by debbugs.gnu.org with esmtp (Exim 4.84_2)
(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
id 1ujILh-0002sZ-Lb
for submit <at> debbugs.gnu.org; Tue, 05 Aug 2025 10:09:06 -0400
Received: from lists.gnu.org ([2001:470:142::17]:39520)
by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.84_2) (envelope-from <mail@HIDDEN>)
id 1ujFlO-0005G6-87
for submit <at> debbugs.gnu.org; Tue, 05 Aug 2025 07:23:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mail@HIDDEN>)
id 1ujFlI-00079M-Kc
for bug-gnu-emacs@HIDDEN; Tue, 05 Aug 2025 07:23:20 -0400
Received: from www553.your-server.de ([78.46.153.203])
by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
(Exim 4.90_1) (envelope-from <mail@HIDDEN>)
id 1ujFlA-0001Ya-Ad
for bug-gnu-emacs@HIDDEN; Tue, 05 Aug 2025 07:23:14 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
d=tony-zorman.com; s=default2502; h=Content-Type:MIME-Version:Message-ID:Date
:Subject:To:From:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID:
Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc
:Resent-Message-ID:In-Reply-To:References;
bh=m/Gdxztk91BQryCs62vYLylOeHHpt7kS98+y37Xmg5M=; b=dW+bqNTcX/psHgSzwATXm0lItP
CoAUWQ597/wjbjGM72Wugh28N0PIVQj8FAE2dRKXz79pO6IoGB7c9CuFFzB9busC6A7mXFLy8YWCd
9fVeB0VC3hdMRoRvuKCGEU8aA/42IvEGyoLPCwVgWeey4038gpEbeSwOpi5JxMowgRQVid/ajcEVr
r7Q+/oPEz/braa1RlaBhMpjFA/QB8yKChqfCbIJhO0IBGVzlXVSoCMtOCF3JPuTn269ABdKOvFViW
zw3qLjQy0v+9K46DYRQ8PgHi98sds+ARzkl1B3BJNgv+WGjekSzHxmoG24OJjQnbQj/LQeOZy0Nwf
mpRTUrLQ==;
Received: from sslproxy05.your-server.de ([78.46.172.2])
by www553.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96.2) (envelope-from <mail@HIDDEN>)
id 1ujFl3-0003iH-0x for bug-gnu-emacs@HIDDEN;
Tue, 05 Aug 2025 13:23:05 +0200
Received: from localhost ([127.0.0.1])
by sslproxy05.your-server.de with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384
(Exim 4.96) (envelope-from <mail@HIDDEN>)
id 1ujFl3-000I41-09 for bug-gnu-emacs@HIDDEN;
Tue, 05 Aug 2025 13:23:05 +0200
From: Tony Zorman <mail@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
X-Debbugs-Cc:
Date: Tue, 05 Aug 2025 13:23:04 +0200
Message-ID: <874iumnhbb.fsf@hyperspace>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Virus-Scanned: Clear (ClamAV 1.0.7/27723/Tue Aug 5 10:36:10 2025)
Received-SPF: pass client-ip=78.46.153.203; envelope-from=mail@HIDDEN;
helo=www553.your-server.de
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001,
SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 05 Aug 2025 10:09:02 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.3 (/)
--=-=-=
Content-Type: text/plain
Tags: patch
Hi,
when one uses `kill-ring-deindent-mode' and selects read-only text, the
mode can't actually deindent it, which causes a lot of `beep' noise and
prevents the user from killing the selected text (or from any other
action, really). This patch fixes this by removing that particular
property before the text is inserted into the temporary buffer.
Thanks,
Tony
--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
filename=0001-lisp-indent-aux.el-Remove-read-only-text-property.patch
From 5ef0ce6716dd0cb2f08833fdc54a83cca7b4f691 Mon Sep 17 00:00:00 2001
From: Tony Zorman <mail@HIDDEN>
Date: Tue, 5 Aug 2025 13:08:43 +0200
Subject: [PATCH] ; * lisp/indent-aux.el: Remove read-only text property
---
lisp/indent-aux.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/lisp/indent-aux.el b/lisp/indent-aux.el
index eeb8f1ee6bb..c184c1805da 100644
--- a/lisp/indent-aux.el
+++ b/lisp/indent-aux.el
@@ -49,6 +49,7 @@ is yanked."
(text (if delete
(delete-and-extract-region beg end)
(buffer-substring beg end))))
+ (remove-text-properties 0 (max 0 (1- (length text))) '(read-only) text)
(with-temp-buffer
;; Indent/deindent the same as the major mode in the original
;; buffer.
--
2.50.1
--=-=-=
Content-Type: text/plain
--
Tony Zorman | https://tony-zorman.com
--=-=-=--
------------=_1754572502-26986-1--
Received: (at fakecontrol) by fakecontrolmessage; To: internal_control <at> debbugs.gnu.org From: Debbugs Internal Request <help-debbugs@HIDDEN> Subject: Internal Control Message-Id: bug archived. Date: Fri, 05 Sep 2025 11: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
Received: (at control) by debbugs.gnu.org; 22 Oct 2025 00:57:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 21 20:57:52 2025 Received: from localhost ([127.0.0.1]:53895 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1vBNAm-0006uM-7u for submit <at> debbugs.gnu.org; Tue, 21 Oct 2025 20:57:52 -0400 Received: from mail-108-mta53.mxroute.com ([136.175.108.53]:42423) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from <jp@HIDDEN>) id 1vBNAj-0006u6-E6 for control <at> debbugs.gnu.org; Tue, 21 Oct 2025 20:57:50 -0400 Received: from filter006.mxroute.com ([140.82.40.27] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta53.mxroute.com (ZoneMTA) with ESMTPSA id 19a096bff42000c217.001 for <control <at> debbugs.gnu.org> (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Wed, 22 Oct 2025 00:57:44 +0000 X-Zone-Loop: 838bc99ceec41d67f43d12219b3a0f460a58a0bdb978 X-Originating-IP: [140.82.40.27] DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=neverwas.me ; s=x; h=Subject:From:To: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; bh=Q3R4OILmNfhTKp73m5TjcYxGX4WEls7q+yPTJLuKkfw=; b=DFjw5f1+7QP5DF vX4iXz/YwvUmSxF36mcFa74ykTVf79xHBrtBhsKSSDico17/uCWdcNg94bx4rVSz/iiLN2B/xOYlJ LzZAG1ZtY8YC+VDTSLsXCSAZrSWHFbuis2YuwrkC6C1DUzFMTe4m58LycQnaLpm/NUVb+5DmjhyVk JN796Ma/v/VmimMW4n4Zqpy3w+cjipXdcakzYjW2AW2hC9leLSgn2OuJ5LEPKGApfl4onfdklphrd 2XOD9hfMLZC7w84p1l8HULQUZ4dcvXFOaBu2HImr6l3bhU2ENsIg5GK3OQQgQoC7uRlVUMzuA1A7a 03NtgS7xAI+7yKwJT8lA==; Date: Tue, 21 Oct 2025 17:57:40 -0700 Message-Id: <87plafrbwb.fsf@HIDDEN> To: control <at> debbugs.gnu.org From: "J.P." <jp@HIDDEN> Subject: control message for bug #79176 X-Authenticated-Id: masked@HIDDEN X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) unarchive 79176 quit
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.