changeset 108365:f51f0593c840

Variable purecopying fix (Bug#6083). * international/mule.el (auto-coding-alist): Only purecopy car or each item, not the whole list (Bug#6083).
author Chong Yidong <cyd@stupidchicken.com>
date Sun, 02 May 2010 21:55:01 -0400
parents 243bfb706af1
children e2da1d33db95
files lisp/ChangeLog lisp/international/mule.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Sun May 02 21:42:50 2010 -0400
+++ b/lisp/ChangeLog	Sun May 02 21:55:01 2010 -0400
@@ -1,3 +1,8 @@
+2010-05-03  Chong Yidong  <cyd@stupidchicken.com>
+
+	* international/mule.el (auto-coding-alist):  Only purecopy
+	car or each item, not the whole list (Bug#6083).
+
 2010-05-02  Chong Yidong  <cyd@stupidchicken.com>
 
 	* progmodes/js.el (js-mode): Make paragraph variables local before
--- a/lisp/international/mule.el	Sun May 02 21:42:50 2010 -0400
+++ b/lisp/international/mule.el	Sun May 02 21:55:01 2010 -0400
@@ -1625,7 +1625,8 @@
 (defcustom auto-coding-alist
   ;; .exe and .EXE are added to support archive-mode looking at DOS
   ;; self-extracting exe archives.
-  (purecopy '(("\\.\\(\
+  (mapcar (lambda (arg) (cons (purecopy (car arg)) (cdr arg)))
+	  '(("\\.\\(\
 arc\\|zip\\|lzh\\|lha\\|zoo\\|[jew]ar\\|xpi\\|rar\\|\
 ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\)\\'"
      . no-conversion-multibyte)