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

From: Boyan Penkov <[email-masked]>
Date: Tue, 21 Oct 2014 11:46:34 -0400

--
Boyan Penkov
www.boyanpenkov.com

> On Oct 21, 2014, at 11:20 AM, Andreas Schwab <[email-masked]> wrote:
> 
> 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.

Yeah, predictably, emacs is fine and I’m the idiot: nconc’s have been replaced with add-to-list, documentation read and lesson learned.

Thanks for the pointer!

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