(erc-put-text-properties): Replace use of cl mapcar*.
authorGlenn Morris <rgm@gnu.org>
Sun, 27 Apr 2008 18:23:50 +0000 (18:23 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 27 Apr 2008 18:23:50 +0000 (18:23 +0000)
lisp/erc/ChangeLog
lisp/erc/erc.el

index 35e9f57..637e6aa 100644 (file)
@@ -1,3 +1,7 @@
+2008-04-27  Glenn Morris  <rgm@gnu.org>
+
+       * erc.el (erc-put-text-properties): Replace use of cl mapcar*.
+
 2008-04-14  Michael Olson  <mwolson@gnu.org>
 
        * erc.el (erc-remove-text-properties-region): Disable this command
index 1dae356..cadc6fe 100644 (file)
@@ -5043,9 +5043,9 @@ each property to the corresponding value in VALUE-LIST."
     (setq value-list (mapcar (lambda (x)
                               t)
                             properties)))
-  (mapcar* (lambda (prop value)
-            (erc-put-text-property start end prop value object))
-          properties value-list))
+  (dotimes (i (min (length properties) (length value-list)))
+    (erc-put-text-property start end (nth i properties)
+                          (nth i value-list) object)))
 
 ;;; Input area handling: