From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Newsgroups: gmane.emacs.bugs Subject: bug#21488: json-pretty-print-buffer works,but... Date: Tue, 13 Oct 2015 19:49:31 +0200 Message-ID: <1444758571.2130.0@smtp.gmail.com> References: <55F840B1.87A9B6.02747@m50-133.163.com> <87r3lcf4qm.fsf@gmail.com> <87twq7hho9.fsf@gmail.com> <"Simen =?UTF-8?Q?Heggest=C3=B8yl?="'=?ISO-8859-1?Q?s_message_of_"Sat, _03_Oct_2015_21:32:22_+0200"> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=-ulsHwHqmUukBhlmt+kMx" X-Trace: ger.gmane.org 1444758685 18846 80.91.229.3 (13 Oct 2015 17:51:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 13 Oct 2015 17:51:25 +0000 (UTC) Cc: Stefan Monnier , 21488-done@debbugs.gnu.org To: =?UTF-8?Q?=E8=94=A1=E5=90=9B=E7=90=A6?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 13 19:51:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Zm3j9-0001oJ-OP for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 19:51:08 +0200 Original-Received: from localhost ([::1]:38445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm3j9-0008OI-0L for geb-bug-gnu-emacs@m.gmane.org; Tue, 13 Oct 2015 13:51:07 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm3iC-0008GH-8l for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 13:50:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm3i8-00067v-1t for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 13:50:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:50039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm3i7-00067q-UD for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 13:50:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Zm3i7-0004Jt-HA for bug-gnu-emacs@gnu.org; Tue, 13 Oct 2015 13:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simen =?UTF-8?Q?Heggest=C3=B8yl?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Oct 2015 17:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21488 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21488-done@debbugs.gnu.org id=D21488.144475857716565 (code D ref 21488); Tue, 13 Oct 2015 17:50:03 +0000 Original-Received: (at 21488-done) by debbugs.gnu.org; 13 Oct 2015 17:49:37 +0000 Original-Received: from localhost ([127.0.0.1]:39010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm3hg-0004J7-HJ for submit@debbugs.gnu.org; Tue, 13 Oct 2015 13:49:36 -0400 Original-Received: from mail-lf0-f43.google.com ([209.85.215.43]:33957) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Zm3he-0004Iz-Nj for 21488-done@debbugs.gnu.org; Tue, 13 Oct 2015 13:49:35 -0400 Original-Received: by lfaz124 with SMTP id z124so436495lfa.1 for <21488-done@debbugs.gnu.org>; Tue, 13 Oct 2015 10:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:subject:to:cc:message-id:in-reply-to:references :mime-version:content-type; bh=45d1CiTQbSqqbazdbxlkITLc01yEZljSdF30nc6W//U=; b=0JN7dCYETrkqLPWrCcp3gILZCgXD73agVL4DbKEh62SZc3CQLlGBVvZNXmMDbcxfMM mTD9cqCSIEhY7PIq0KMVY4t14FNiRKNaOiOrwWQAeiHf29kU02+w+Yu5z/4rOqw8JolB 53TYqKyWl6o401wPuDUQUw3v3N/8DBI1TL/5U27zIZgnx2wBjYBeaBFEyLn27q45rGyj UB0X3DYxKk/aldBEfzFqPMqHSOzumK9U9AI9fsroCLWS2FbMqmpXE8dabXbiO5qM/cCg 5bP6Hg3xKc/9VMHoouVA/QNpsR6vn0yfk9NmG+8Jsj0bw5gUJUxhDqgWqrLzv3SbKHDW xPlA== X-Received: by 10.25.145.132 with SMTP id t126mr10365409lfd.88.1444758573794; Tue, 13 Oct 2015 10:49:33 -0700 (PDT) Original-Received: from [192.168.100.7] (cm-84.210.143.4.getinternet.no. [84.210.143.4]) by smtp.gmail.com with ESMTPSA id q142sm692861lfq.37.2015.10.13.10.49.32 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Oct 2015 10:49:33 -0700 (PDT) In-Reply-To: <6581cee7.1335c.1504bf7602f.Coremail.caijq4ever@163.com> X-Mailer: geary/0.10.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:107580 Archived-At: --=-ulsHwHqmUukBhlmt+kMx Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable On Fri, Oct 9, 2015 at 11:38 AM, =E8=94=A1=E5=90=9B=E7=90=A6 wrote: > Hi, > I copy json.el from=20 > github(https://github.com/emacs-mirror/emacs/tree/master/lisp/json.el),=20 > override local json.el and compile it. > After I restart emacs, and emacs shows this error in startup: > --- > Warning (initialization): An error occurred while loading=20 > `c:/Users/caijunqi/AppData/Roaming/.emacs.d/init.el': >=20 > error: Attempt to modify read-only object, (error) Hi again, I'm not sure what that error comes from. Can you produce a backtrace? It looks like the crash happens in your init file. Can you reproduce it starting from 'emacs -Q'? Also, I'm unsure whether it has to do with with the commit that fixed this bug. Could you test with a version of json.el pre commit 6b663751? -- Simen = --=-ulsHwHqmUukBhlmt+kMx Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Fri, Oct 9, 2015 at 11:38 AM, =E8=94=A1=E5=90=9B=E7=90=A6 <caijq4ever= @163.com> wrote:
Hi,
I copy json.el from github(https://git= hub.com/emacs-mirror/emacs/tree/master/lisp/json.el), override local js= on.el and compile it.
After I restart emacs, and emacs shows this error= in startup:
---
Warning (initialization): An error occurred while lo= ading `c:/Users/caijunqi/AppData/Roaming/.emacs.d/init.el':

error: A= ttempt to modify read-only object, (error)

Hi aga= in,

I'm not sure what that error comes from. Can y= ou produce a backtrace?

It looks like the crash ha= ppens in your init file. Can you reproduce it
starting from 'emac= s -Q'?

Also, I'm unsure whether it has to do with = with the commit that fixed
this bug. Could you test with a versio= n of json.el pre commit 6b663751?

-- Simen
= --=-ulsHwHqmUukBhlmt+kMx--