* bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode
@ 2014-10-21 13:34 Boyan Penkov
2014-10-21 15:20 ` Andreas Schwab
2014-10-21 16:39 ` Stefan Monnier
0 siblings, 2 replies; 5+ messages in thread
From: Boyan Penkov @ 2014-10-21 13:34 UTC (permalink / raw)
To: 18786
Hey folks,
I have a bunch of stuff like:
(nconc auto-mode-alist '(("\\.ctl" . scheme-mode))))
in my .emacs.
When I launch emacs, the complaint is:
error: Attempt to modify read-only object, ((\.txz\' . tar-mode))
Clearing all the auto-mode-alist additions clears this error, by pulling them out of the .emacs. Can anybody explain what is going on?
This has emerged after upgrading last night to 24.4 using both http://emacsformacosx.com/ and compiling for myself via homebrew. I’m on Mac OS 10.10 Yosemite.
Please let me know how to help debug this.
Cheers!
--
Boyan Penkov
www.boyanpenkov.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode
2014-10-21 13:34 bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode Boyan Penkov
@ 2014-10-21 15:20 ` Andreas Schwab
2014-10-21 15:46 ` Boyan Penkov
2014-10-21 16:39 ` Stefan Monnier
1 sibling, 1 reply; 5+ messages in thread
From: Andreas Schwab @ 2014-10-21 15:20 UTC (permalink / raw)
To: Boyan Penkov; +Cc: 18786
Boyan Penkov <boyan.penkov@gmail.com> 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, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode
2014-10-21 15:20 ` Andreas Schwab
@ 2014-10-21 15:46 ` Boyan Penkov
0 siblings, 0 replies; 5+ messages in thread
From: Boyan Penkov @ 2014-10-21 15:46 UTC (permalink / raw)
To: Andreas Schwab; +Cc: 18786
[-- Attachment #1: Type: text/plain, Size: 743 bytes --]
--
Boyan Penkov
www.boyanpenkov.com
> On Oct 21, 2014, at 11:20 AM, Andreas Schwab <schwab@suse.de> wrote:
>
> Boyan Penkov <boyan.penkov@gmail.com> 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, schwab@suse.de
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
[-- Attachment #2: Type: text/html, Size: 2225 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode
2014-10-21 13:34 bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode Boyan Penkov
2014-10-21 15:20 ` Andreas Schwab
@ 2014-10-21 16:39 ` Stefan Monnier
[not found] ` <9D69294C-9454-4E64-90A8-90AA7FAD076B@gmail.com>
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2014-10-21 16:39 UTC (permalink / raw)
To: Boyan Penkov; +Cc: 18786
> (nconc auto-mode-alist '(("\\.ctl" . scheme-mode))))
Try
(add-to-list 'auto-mode-alist '("\\.ctl\\'" . scheme-mode))
-- Stefan
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-21 18:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-21 13:34 bug#18786: (error "Attempt to modify read-only object" (("\\.txz\\'" . tar-mode))) on adding mode Boyan Penkov
2014-10-21 15:20 ` Andreas Schwab
2014-10-21 15:46 ` Boyan Penkov
2014-10-21 16:39 ` Stefan Monnier
[not found] ` <9D69294C-9454-4E64-90A8-90AA7FAD076B@gmail.com>
2014-10-21 18:02 ` Stefan Monnier
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).