From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.bugs Subject: bug#43549: 28.0.50; json-encode-string: Text is read-only Date: Mon, 21 Sep 2020 11:28:42 -0400 Message-ID: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="24981"; mail-complaints-to="usenet@ciao.gmane.io" To: 43549@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 21 17:29:21 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKNkm-0006L7-LC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 17:29:20 +0200 Original-Received: from localhost ([::1]:53996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kKNkl-0005NZ-Nz for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 21 Sep 2020 11:29:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKNkU-0005NE-Ed for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 11:29:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44306) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKNkU-00059x-5V for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 11:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kKNkU-0004E1-2B for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 11:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Sam Steingold Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Sep 2020 15:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 43549 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160070214016228 (code B ref -1); Mon, 21 Sep 2020 15:29:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Sep 2020 15:29:00 +0000 Original-Received: from localhost ([127.0.0.1]:55852 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKNkL-0004DS-O3 for submit@debbugs.gnu.org; Mon, 21 Sep 2020 11:29:00 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:48380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKNkI-0004DF-Bp for submit@debbugs.gnu.org; Mon, 21 Sep 2020 11:28:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38680) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kKNkI-0005GE-4P for bug-gnu-emacs@gnu.org; Mon, 21 Sep 2020 11:28:50 -0400 Original-Received: from mail-qt1-x844.google.com ([2607:f8b0:4864:20::844]:35755) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kKNkG-00057R-BD; Mon, 21 Sep 2020 11:28:49 -0400 Original-Received: by mail-qt1-x844.google.com with SMTP id p65so12683128qtd.2; Mon, 21 Sep 2020 08:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:return-receipt-to:reply-to:date:message-id :mime-version; bh=RW23eVF2z/DvOWVxn7DlYSke3YY13bB66haKgKYp0PI=; b=JBaA5CEMKCNLdExoB8eK7TOPOR1tXZOIXzlaK3U1u1QIEY70W1qmt+w3enfQqjpoIB 4Ol+oe1g+mAKNwpIWv2Vzvuxe3vq2OgDq04aqyAfeONLWoKAwTgHwvamdtFhL9IfKcyH W4LTq/O3wdHd5bhA2t0Q+LNN4F3fK8gH2H9YIjRdQK+tbhT37r+b2YzwTtPjTvB2woXX GfJqvfihac/YFtUFscnF56Z0NZi6MIOZRfh+l8XEdpZXE+sKiK0cMjc/iYYgR4AQJ1bM e2mrI6DRcymbDP6nrGv8vl9KTpiXzOadXHotgeN353SmLeLChDOyI+JV25L9kx8k+94X oZQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:return-receipt-to :reply-to:date:message-id:mime-version; bh=RW23eVF2z/DvOWVxn7DlYSke3YY13bB66haKgKYp0PI=; b=SAInK2cC10gOrWAWg6ga9nkvusNIV+GTYh35X53GWPb+5PZXx4gs5dDuv4+4xStgF4 bdD/NYC2O0JCLEuRwl1E+GLfHDItPmU4f/IZhBZMdqq03x+o+/UTEut2Tr+YpjPPDqSY AS2m7C+jji1tj6h88QFZ+2Xt8kuiYYvuYGGBp2FPServ6hw9v/bbsyM+WlNqYVQGjwef vmzJKWzHd17ITH6GSRoIDMqEIe71+1jBbUjqcjCfnlQAC3jLpJVYRU/TWkVLnGZB6htM ycd/NK/+4gDlAS3uUpa6L6LNMWp9chKhLsxhOlLLHb5915//JrYP+FTxKACMimTOIkhv VAZw== X-Gm-Message-State: AOAM5323Ad8vRcZPnJ2omJX+gU0RC77VpqdwvK1ciOLl7yrkooe5138m SN6o/aUg191XPVgbTWw5K8ZMY+ltKQ== X-Google-Smtp-Source: ABdhPJx862oNIlfbqfg+ntICpDN2H8j1hz6K5TZDmNAxwCp2z/7XC4hoS6d/0kPP0H/UqIlgSPhXTQ== X-Received: by 2002:ac8:44aa:: with SMTP id a10mr88010qto.116.1600702123943; Mon, 21 Sep 2020 08:28:43 -0700 (PDT) Original-Received: from BZ-C02XR5CGJG5L (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id u4sm9213069qkk.68.2020.09.21.08.28.42 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 21 Sep 2020 08:28:43 -0700 (PDT) X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Received-SPF: pass client-ip=2607:f8b0:4864:20::844; envelope-from=sam.steingold@gmail.com; helo=mail-qt1-x844.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.248, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:188606 Archived-At: Evaluate the following in the *scratch* buffer of emacs -Q: --8<---------------cut here---------------start------------->8--- (require 'json) (setq s "asdf") (put-text-property 1 2 'read-only t s) (let ((json--long-string-threshold 0)) (json-encode-string s)) --8<---------------cut here---------------end--------------->8--- the result is an error message json-encode-string: Text is read-only binding json--long-string-threshold to 0 merely disables an optimization; another way to trigger an error is to start with a longer string. In GNU Emacs 28.0.50 (build 2, x86_64-apple-darwin19.6.0, NS appkit-1894.60 Version 10.15.6 (Build 19G2021)) of 2020-09-21 built on BZ-C02XR5CGJG5L Repository revision: d5d642eb71d8228d5a408a3d43ca1f4a5b500b9d Repository branch: master Windowing system distributor 'Apple', version 10.3.1894 System Description: Mac OS X 10.15.6 Configured using: 'configure --with-imagemagick --with-mailutils --with-ns PKG_CONFIG_PATH=/usr/local/opt/libxml2/lib/pkgconfig:/usr/local/opt/imagemagick/lib/pkgconfig:/usr/local/opt/gnutls/lib/pkgconfig:/usr/local/opt/jansson/lib/pkgconfig:/usr/local/opt/libtiff/lib/pkgconfig:/usr/local/opt/libpng/lib/pkgconfig:/usr/local/opt/libjpeg/lib/pkgconfig:/usr/local/opt/freetype/lib/pkgconfig' Configured features: JPEG TIFF PNG IMAGEMAGICK NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER LCMS2 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Messages Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date json subr-x map seq byte-opt gv bytecomp byte-compile cconv help-fns radix-tree cl-print debug backtrace help-mode easymenu find-func cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 57583 6582) (symbols 48 7020 1) (strings 32 19982 1439) (string-bytes 1 653249) (vectors 16 12263) (vector-slots 8 170307 9852) (floats 8 29 99) (intervals 56 278 3) (buffers 992 14)) -- Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.1894 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.com http://islamexposedonline.com https://jihadwatch.org https://jij.org The Politically Correct term for Censorship is Political Correctness.