Subject: bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode

From: Andreas Schwab <[email-masked]>
Date: Tue, 21 Oct 2014 17:20:03 +0200

Boyan Penkov <[email-masked]> writes:

> I have a bunch of stuff like: 
>
>     (nconc auto-mode-alist '(("\\.ctl" . scheme-mode))))
>
> in my .emacs.  

Don't use destructive functions unless you know what you are doing.

Andreas.

-- 
Andreas Schwab, SUSE Labs, [email-masked]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."