shr.el (shr-table-widths): Don't use cl function `reduce'.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 8 Oct 2010 01:26:13 +0000 (01:26 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 8 Oct 2010 01:26:13 +0000 (01:26 +0000)
lisp/ChangeLog
lisp/shr.el

index 0b0ab9f..d953b0e 100644 (file)
@@ -1,3 +1,7 @@
+2010-10-08  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * shr.el (shr-table-widths): Don't use cl function `reduce'.
+
 2010-10-07  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * shr.el (require): Require cl when compiling.
index bb25a6c..ffc27e9 100644 (file)
@@ -548,8 +548,8 @@ Return a string with image data."
          (aset natural-widths i (max (aref natural-widths i)
                                      (cadr column)))
          (setq i (1+ i)))))
-    (let ((extra (- (reduce '+ suggested-widths)
-                   (reduce '+ widths)))
+    (let ((extra (- (apply '+ (append suggested-widths nil))
+                   (apply '+ (append widths nil))))
          (expanded-columns 0))
       (when (> extra 0)
        (dotimes (i length)