From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: owner@emacsbugs.donarmstrong.com (Emacs bug Tracking System) Newsgroups: gmane.emacs.bugs Subject: bug#4917: marked as done (Error: Attempt to modify read-only object) Date: Fri, 13 Nov 2009 02:50:04 +0000 Message-ID: References: <200911130241.nAD2frbG007723@godzilla.ics.uci.edu> <87pr7nqolw.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----------=_1258080604-27598-0" X-Trace: ger.gmane.org 1258081661 24491 80.91.229.12 (13 Nov 2009 03:07:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Nov 2009 03:07:41 +0000 (UTC) To: Dan Nicolaescu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Nov 13 04:07:34 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8mVZ-0007Qj-7m for geb-bug-gnu-emacs@m.gmane.org; Fri, 13 Nov 2009 04:07:34 +0100 Original-Received: from localhost ([127.0.0.1]:44722 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8mVY-0004s4-Eh for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Nov 2009 22:07:32 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8mVS-0004pz-NT for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 22:07:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8mVO-0004mG-4R for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 22:07:26 -0500 Original-Received: from [199.232.76.173] (port=44885 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8mVO-0004mD-25 for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 22:07:22 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:40447) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N8mVN-0006xf-E4 for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 22:07:21 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAD37JgF030421; Thu, 12 Nov 2009 19:07:19 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAD2o4RZ027627; Thu, 12 Nov 2009 18:50:04 -0800 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: closed 4917 X-Emacs-PR-Package: emacs X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32583 Archived-At: This is a multi-part message in MIME format... ------------=_1258080604-27598-0 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Your message dated Thu, 12 Nov 2009 18:41:53 -0800 (PST) with message-id <200911130241.nAD2frbG007723@godzilla.ics.uci.edu> and subject line Re: bug#4917: Error: Attempt to modify read-only object has caused the Emacs bug report #4917, regarding Error: Attempt to modify read-only object to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@emacsbugs.donarmstrong.com immediately.) --=20 4917: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=3D4917 Emacs Bug Tracking System Contact owner@emacsbugs.donarmstrong.com with problems ------------=_1258080604-27598-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 13 Nov 2009 00:06:23 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.0 required=4.0 tests=AWL,MDO_DATING14 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAD06LjW008760 for ; Thu, 12 Nov 2009 16:06:22 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N8jgD-00063L-7K for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 19:06:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N8jg7-00061x-OA for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 19:06:19 -0500 Received: from [199.232.76.173] (port=51574 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8jg7-00061t-IB for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 19:06:15 -0500 Received: from smtp-out1.starman.ee ([85.253.0.3]:37125 helo=mx1.starman.ee) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N8jg7-00062j-3b for bug-gnu-emacs@gnu.org; Thu, 12 Nov 2009 19:06:15 -0500 X-Virus-Scanned: by Amavisd-New at mx1.starman.ee Received: from mail.starman.ee (82.131.32.46.cable.starman.ee [82.131.32.46]) by mx1.starman.ee (Postfix) with ESMTP id A3DE33F41EF for ; Fri, 13 Nov 2009 02:06:09 +0200 (EET) From: Juri Linkov To: bug-gnu-emacs@gnu.org Subject: Error: Attempt to modify read-only object Organization: JURTA Date: Fri, 13 Nov 2009 02:01:37 +0200 Message-ID: <87pr7nqolw.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Starting Emacs fails with the error: Warning (initialization): An error occurred while loading `/home/juri/.emacs': error: Attempt to modify read-only object To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Starting Emacs with the `--debug-init' option displays: Debugger entered--Lisp error: (error "Attempt to modify read-only object") delete(("\\`\357\273\277" . utf-8-with-signature) (("\\`BABYL OPTIONS:[ ]*-\\*-[ ]*rmail[ ]*-\\*-" . no-conversion) ("\\`\376\377" . utf-16be-with-signature) ("\\`\377\376" . utf-16le-with-signature) ("\\`\357\273\277" . utf-8-with-signature) ("\\`;ELC" . emacs-mule))) (setq auto-coding-regexp-alist (delete (rassoc ... auto-coding-regexp-alist) auto-coding-regexp-alist)) The reason of this error in .emacs is the lines that remove a match for `utf-8-with-signature' from `auto-coding-regexp-alist' that allows to always display the BOM (Byte-order mark signature) to be able to remove it without the need to visit files literally: (setq auto-coding-regexp-alist (delete (rassoc 'utf-8-with-signature auto-coding-regexp-alist) auto-coding-regexp-alist)) Before yesterday there were no problems with this. -- Juri Linkov http://www.jurta.org/emacs/ ------------=_1258080604-27598-0 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4917-done) by emacsbugs.donarmstrong.com; 13 Nov 2009 02:42:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-6.3 required=4.0 tests=AWL,HAS_BUG_NUMBER, MDO_DATING14,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from colin-baker-v0.ics.uci.edu (colin-baker-v0.ics.uci.edu [128.195.1.153]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAD2g2kO026727 for <4917-done@emacsbugs.donarmstrong.com>; Thu, 12 Nov 2009 18:42:03 -0800 Received: from godzilla.ics.uci.edu (godzilla.ics.uci.edu [128.195.10.101]) by colin-baker-v0.ics.uci.edu (8.13.8/8.13.8) with ESMTP id nAD2fr0o031661 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Nov 2009 18:41:53 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAD2frbG007723; Thu, 12 Nov 2009 18:41:53 -0800 (PST) Date: Thu, 12 Nov 2009 18:41:53 -0800 (PST) Message-Id: <200911130241.nAD2frbG007723@godzilla.ics.uci.edu> From: Dan Nicolaescu To: 4917-done@emacsbugs.donarmstrong.com Cc: Juri Linkov Subject: Re: bug#4917: Error: Attempt to modify read-only object References: <87pr7nqolw.fsf@mail.jurta.org> <200911130035.nAD0Z6WX006719@godzilla.ics.uci.edu> X-Debbugs-No-Ack: yes In-Reply-To: <200911130035.nAD0Z6WX006719@godzilla.ics.uci.edu> (Dan Nicolaescu's message of "Thu, 12 Nov 2009 16:35:06 -0800 (PST)") Lines: 44 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-ICS-MailScanner-Information: Please send mail to helpdesk@ics.uci.edu or more information X-ICS-MailScanner-ID: nAD2fr0o031661 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@godzilla.ics.uci.edu Dan Nicolaescu writes: > Juri Linkov writes: > > > Starting Emacs fails with the error: > > > > Warning (initialization): An error occurred while loading `/home/juri/.emacs': > > > > error: Attempt to modify read-only object > > > > To ensure normal operation, you should investigate and remove the > > cause of the error in your initialization file. Start Emacs with > > the `--debug-init' option to view a complete error backtrace. > > > > Starting Emacs with the `--debug-init' option displays: > > > > Debugger entered--Lisp error: (error "Attempt to modify read-only object") > > delete(("\\`\357\273\277" . utf-8-with-signature) (("\\`BABYL OPTIONS:[ ]*-\\*-[ ]*rmail[ ]*-\\*-" . no-conversion) ("\\`\376\377" . utf-16be-with-signature) ("\\`\377\376" . utf-16le-with-signature) ("\\`\357\273\277" . utf-8-with-signature) ("\\`;ELC" . emacs-mule))) > > (setq auto-coding-regexp-alist (delete (rassoc ... auto-coding-regexp-alist) auto-coding-regexp-alist)) > > > > The reason of this error in .emacs is the lines that remove a match > > for `utf-8-with-signature' from `auto-coding-regexp-alist' that allows > > to always display the BOM (Byte-order mark signature) to be able > > to remove it without the need to visit files literally: > > > > (setq auto-coding-regexp-alist > > (delete (rassoc 'utf-8-with-signature auto-coding-regexp-alist) > > auto-coding-regexp-alist)) > > > > Before yesterday there were no problems with this. > > This is mine, too aggressive use of purecopy. > auto-coding-regexp-alist needs to be changed like this: > > (defcustom auto-coding-regexp-alist > (mapcar (lambda (arg) (cons (purecopy (car arg)) (cdr arg))) > '(("\\`BABYL OPTIONS:[ \t]*-\\*-[ \t]*rmail[ \t]*-\\*-" . no-conversion) > [....] > > I'll check it in when I get a chance. If it's in your way, please feel > free to do it earlier. Fixed. Thanks for catching this. ------------=_1258080604-27598-0--