From 863b61d662deede3e01d1b0cba8c110064a7407b Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Fri, 8 Oct 2010 01:51:08 +0000 Subject: [PATCH] shr.el (shr-table-widths): Don't use cl function `reduce'. --- lisp/gnus/ChangeLog | 4 ++++ lisp/gnus/shr.el | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index 22378d6f372..3a3c72572ac 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,3 +1,7 @@ +2010-10-08 Katsumi Yamaoka + + * shr.el (shr-table-widths): Don't use cl function `reduce'. + 2010-10-07 Lars Magne Ingebrigtsen * shr.el (require): Require cl when compiling. diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el index bb25a6c802d..ffc27e92ccd 100644 --- a/lisp/gnus/shr.el +++ b/lisp/gnus/shr.el @@ -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) -- 2.39.5