gnus-util.el (gnus-macroexpand-all): Don't modify argument.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 3 Dec 2010 04:38:37 +0000 (04:38 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 3 Dec 2010 04:38:37 +0000 (04:38 +0000)
lisp/ChangeLog
lisp/gnus-util.el

index f5185c5..50e9f34 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-03  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-util.el (gnus-macroexpand-all): Don't modify argument.
+
 2010-12-03  Glenn Morris  <rgm@gnu.org>
 
        * mm-extern.el (message-goto-body): Update declaration.
index af5159e..1f391f0 100644 (file)
@@ -2041,7 +2041,7 @@ Same as `string-match' except this function does not change the match data."
 If no macros are expanded, FORM is returned unchanged."
     (if (consp form)
        (let ((idx 1)
-             (len (length form))
+             (len (length (setq form (copy-sequence form))))
              expanded)
          (while (< idx len)
            (setcar (nthcdr idx form) (gnus-macroexpand-all (nth idx form)))