From: Chong Yidong <cyd@stupidchicken.com>
To: Juri Linkov <juri@jurta.org>
Cc: 6083-done@debbugs.gnu.org
Subject: bug#6083: Regression bug in auto-coding-alist
Date: Sun, 02 May 2010 22:02:59 -0400 [thread overview]
Message-ID: <87y6g1spws.fsf@stupidchicken.com> (raw)
In-Reply-To: <87k4rlx1qf.fsf@mail.jurta.org> (Juri Linkov's message of "Mon, 03 May 2010 03:34:00 +0300")
Juri Linkov <juri@jurta.org> writes:
> ;; By default, Emacs thinks .arc is an archive extension.
> ;; This makes it normal.
> (dolist (coding auto-coding-alist)
> (when (and (string-match "[Aa][Rr][Cc]\\\\|" (car coding))
> (or (eq (cdr coding) 'no-conversion)
> (eq (cdr coding) 'no-conversion-multibyte)))
> (setcar coding (replace-match "" nil nil (car coding)))))
>
> This code fails with
>
> (error "Attempt to modify read-only object")
>
> A similar bug#4917 http://debbugs.gnu.org/4917
> for `auto-coding-regexp-alist' was fixed 2009-11-13
> by using purecopy only for car or each item,
> not the whole list.
>
> To make the code above to not fail, purecopy should be removed
> from `auto-coding-alist'.
Thanks, I've fixed it in the branch.
prev parent reply other threads:[~2010-05-03 2:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-03 0:34 bug#6083: Regression bug in auto-coding-alist Juri Linkov
2010-05-03 2:02 ` Chong Yidong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y6g1spws.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=6083-done@debbugs.gnu.org \
--cc=juri@jurta.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).