[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#43549: 28.0.50; json-encode-string: Text is read-only
From: |
Lars Ingebrigtsen |
Subject: |
bug#43549: 28.0.50; json-encode-string: Text is read-only |
Date: |
Tue, 22 Sep 2020 17:10:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Sam Steingold <sds@gnu.org> writes:
> Evaluate the following in the *scratch* buffer of emacs -Q:
>
> (require 'json)
> (setq s "asdf")
> (put-text-property 1 2 'read-only t s)
> (let ((json--long-string-threshold 0))
> (json-encode-string s))
>
> the result is an error message
>
> json-encode-string: Text is read-only
It looks like you fixed this problem on the trunk already? So I'm
closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no