GNU bug report logs - #43549
28.0.50; json-encode-string: Text is read-only

Previous Next

Package: emacs;

Reported by: sds <at> gnu.org

Date: Mon, 21 Sep 2020 15:29:01 UTC

Severity: normal

Found in version 28.0.50

Fixed in version 28.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Sam Steingold <sds <at> gnu.org>
Cc: 43549 <at> debbugs.gnu.org
Subject: bug#43549: 28.0.50; json-encode-string: Text is read-only
Date: Tue, 22 Sep 2020 17:10:42 +0200
Sam Steingold <sds <at> 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




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

Previous Next


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