unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#4917: Error: Attempt to modify read-only object
@ 2009-11-13  0:01 ` Juri Linkov
  2009-11-13  0:35   ` Dan Nicolaescu
  2009-11-13  2:50   ` bug#4917: marked as done (Error: Attempt to modify read-only object) Emacs bug Tracking System
  0 siblings, 2 replies; 3+ messages in thread
From: Juri Linkov @ 2009-11-13  0:01 UTC (permalink / raw)
  To: bug-gnu-emacs

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/






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4917: Error: Attempt to modify read-only object
  2009-11-13  0:01 ` bug#4917: Error: Attempt to modify read-only object Juri Linkov
@ 2009-11-13  0:35   ` Dan Nicolaescu
  2009-11-13  2:50   ` bug#4917: marked as done (Error: Attempt to modify read-only object) Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Dan Nicolaescu @ 2009-11-13  0:35 UTC (permalink / raw)
  To: Juri Linkov; +Cc: 4917

Juri Linkov <juri@jurta.org> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#4917: marked as done (Error: Attempt to modify read-only object)
  2009-11-13  0:01 ` bug#4917: Error: Attempt to modify read-only object Juri Linkov
  2009-11-13  0:35   ` Dan Nicolaescu
@ 2009-11-13  2:50   ` Emacs bug Tracking System
  1 sibling, 0 replies; 3+ messages in thread
From: Emacs bug Tracking System @ 2009-11-13  2:50 UTC (permalink / raw)
  To: Dan Nicolaescu

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

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.)


-- 
4917: http://emacsbugs.donarmstrong.com/cgi-bin/bugreport.cgi?bug=4917
Emacs Bug Tracking System
Contact owner@emacsbugs.donarmstrong.com with problems

[-- Attachment #2: Type: message/rfc822, Size: 3428 bytes --]

From: Juri Linkov <juri@jurta.org>
To: bug-gnu-emacs@gnu.org
Subject: Error: Attempt to modify read-only object
Date: Fri, 13 Nov 2009 02:01:37 +0200
Message-ID: <87pr7nqolw.fsf@mail.jurta.org>

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/



[-- Attachment #3: Type: message/rfc822, Size: 4138 bytes --]

From: Dan Nicolaescu <dann@ics.uci.edu>
To: 4917-done@emacsbugs.donarmstrong.com
Cc: Juri Linkov <juri@jurta.org>
Subject: Re: bug#4917: Error: Attempt to modify read-only object
Date: Thu, 12 Nov 2009 18:41:53 -0800 (PST)
Message-ID: <200911130241.nAD2frbG007723@godzilla.ics.uci.edu>

Dan Nicolaescu <dann@ics.uci.edu> writes:

  > Juri Linkov <juri@jurta.org> 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.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-13  2:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <200911130241.nAD2frbG007723@godzilla.ics.uci.edu>
2009-11-13  0:01 ` bug#4917: Error: Attempt to modify read-only object Juri Linkov
2009-11-13  0:35   ` Dan Nicolaescu
2009-11-13  2:50   ` bug#4917: marked as done (Error: Attempt to modify read-only object) Emacs bug Tracking System

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).