From unknown Mon Aug 18 11:18:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43549: 28.0.50; json-encode-string: Text is read-only 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-GNU-PR-Keywords: To: 43549@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Reply-To: sds@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.160070214016228 (code B ref -1); Mon, 21 Sep 2020 15:29:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Sep 2020 15:29:00 +0000 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 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 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 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 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) 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) From: Sam Steingold X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Date: Mon, 21 Sep 2020 11:28:42 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain 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-Spam-Score: 1.9 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.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 the administrator of that system for details. Content preview: Evaluate the following in the *scratch* buffer of emacs -Q: --88--- (require 'json) (setq s "asdf") (put-text-property 1 2 'read-only t s) (let ((json--long-string-threshold 0)) (json-encode-string s)) [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (sam.steingold[at]gmail.com) 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL blocklist [URIs: islamexposedonline.com] 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL blocklist [URIs: islamexposedonline.com] 0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and EnvelopeFrom freemail headers are different 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 2.0 SPOOFED_FREEMAIL No description available. 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.1 (-) 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. From unknown Mon Aug 18 11:18:00 2025 X-Loop: help-debbugs@gnu.org Subject: bug#43549: 28.0.50; json-encode-string: Text is read-only Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 22 Sep 2020 15:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43549 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Sam Steingold Cc: 43549@debbugs.gnu.org Received: via spool by 43549-submit@debbugs.gnu.org id=B43549.160078745511946 (code B ref 43549); Tue, 22 Sep 2020 15:11:02 +0000 Received: (at 43549) by debbugs.gnu.org; 22 Sep 2020 15:10:55 +0000 Received: from localhost ([127.0.0.1]:32875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKjwU-00036c-Uu for submit@debbugs.gnu.org; Tue, 22 Sep 2020 11:10:55 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32798) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKjwT-00036L-0m for 43549@debbugs.gnu.org; Tue, 22 Sep 2020 11:10:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References: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:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=ofEuHUWlqlWkDbjo6xUbCdJvjNx85I70hXdCpRI+8WM=; b=lWjXKP/Ci7+F0SCMbZ9vlFYfxi L9saNpWczmT8uyjFCIEQj9q+ApyqsRZrOoL7BTD8dTjZzPiL/OqqolVrJE7a7jF68npNWvUFxlzIg VRjJeXznDT/YNu3EONnqsirdY2jX9oTYU3JW2IpNWPE5gWOvPCmA7TZHmEVyc3aVgvzk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKjwJ-0003yT-R8; Tue, 22 Sep 2020 17:10:46 +0200 From: Lars Ingebrigtsen References: X-Now-Playing: Hercules & Love Affair's _Hercules & Love Affair_: "This Is My Love" Date: Tue, 22 Sep 2020 17:10:42 +0200 In-Reply-To: (Sam Steingold's message of "Mon, 21 Sep 2020 11:28:42 -0400") Message-ID: <87eemthmod.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 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: Sam Steingold 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-str [...] 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-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 (-) Sam Steingold 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 From debbugs-submit-bounces@debbugs.gnu.org Tue Sep 22 11:11:01 2020 Received: (at control) by debbugs.gnu.org; 22 Sep 2020 15:11:01 +0000 Received: from localhost ([127.0.0.1]:32878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKjwb-00036t-5Y for submit@debbugs.gnu.org; Tue, 22 Sep 2020 11:11:01 -0400 Received: from quimby.gnus.org ([95.216.78.240]:32812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kKjwZ-00036a-0W for control@debbugs.gnu.org; Tue, 22 Sep 2020 11:10:59 -0400 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=torNVLe4UNiIAOCkRCgCUcgPvglSFy4dlZT0KyP9KWI=; b=bq9l3265uOuhhkoubDTo4h9nIa xAQacEwaLAqK96x9+sf0JFxBNa+TpqlZv1Je8yf2OyNS8/vqy8vNSh9mSDOhC4Fyux4KBkkV0AcSP WowXjMi6OliyLQXWycowQ7ogQTXuOsWSARSWk4gS/Ty0d5lBsl5UrepiPLEPUZxLXjYk=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kKjwR-0003ya-AA for control@debbugs.gnu.org; Tue, 22 Sep 2020 17:10:53 +0200 Date: Tue, 22 Sep 2020 17:10:50 +0200 Message-Id: <87d02dhmo5.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #43549 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 43549 28.1 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 43549 28.1 quit