changeset 111803:6b5648605b51

gnus-util.el (gnus-macroexpand-all): Don't modify argument.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Fri, 03 Dec 2010 04:39:36 +0000
parents ec305a5ef324
children cd612a84ed02
files lisp/gnus/ChangeLog lisp/gnus/gnus-util.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Thu Dec 02 19:13:24 2010 -0800
+++ b/lisp/gnus/ChangeLog	Fri Dec 03 04:39:36 2010 +0000
@@ -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.
--- a/lisp/gnus/gnus-util.el	Thu Dec 02 19:13:24 2010 -0800
+++ b/lisp/gnus/gnus-util.el	Fri Dec 03 04:39:36 2010 +0000
@@ -2041,7 +2041,7 @@
 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)))