From unknown Wed Jun 18 23:11:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#4917 <4917@debbugs.gnu.org> To: bug#4917 <4917@debbugs.gnu.org> Subject: Status: Error: Attempt to modify read-only object Reply-To: bug#4917 <4917@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:11:01 +0000 retitle 4917 Error: Attempt to modify read-only object reassign 4917 emacs submitter 4917 Juri Linkov severity 4917 normal thanks From juri@jurta.org Thu Nov 12 16:06:22 2009 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/ From dann@godzilla.ics.uci.edu Thu Nov 12 16:35:20 2009 Received: (at 4917) by emacsbugs.donarmstrong.com; 13 Nov 2009 00:35:20 +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 nAD0ZJRB011822 for <4917@emacsbugs.donarmstrong.com>; Thu, 12 Nov 2009 16:35:20 -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 nAD0Z69c025453 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Nov 2009 16:35:06 -0800 Received: (from dann@localhost) by godzilla.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id nAD0Z6WX006719; Thu, 12 Nov 2009 16:35:06 -0800 (PST) Date: Thu, 12 Nov 2009 16:35:06 -0800 (PST) Message-Id: <200911130035.nAD0Z6WX006719@godzilla.ics.uci.edu> From: Dan Nicolaescu To: Juri Linkov Cc: 4917@debbugs.gnu.org Subject: Re: bug#4917: Error: Attempt to modify read-only object References: <87pr7nqolw.fsf@mail.jurta.org> X-Debbugs-No-Ack: yes In-Reply-To: <87pr7nqolw.fsf@mail.jurta.org> (Juri Linkov's message of "Fri, 13 Nov 2009 02:01:37 +0200") Lines: 39 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: nAD0Z69c025453 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 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. From dann@godzilla.ics.uci.edu Thu Nov 12 18:42:03 2009 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@debbugs.gnu.org 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. From unknown Wed Jun 18 23:11:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 11 Dec 2009 15:24:15 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator