+2011-06-05 Juanma Barranquero <lekktu@gmail.com>
+
+ * doc-view.el (doc-view-remove-if): Move computation of result out
+ of `dolist' to silence misleading lexical-binding warning.
+
2011-06-04 Chong Yidong <cyd@stupidchicken.com>
* emacs-lisp/timer.el (timer-activate): Remove unused arg.
(defun doc-view-remove-if (predicate list)
"Return LIST with all items removed that satisfy PREDICATE."
(let (new-list)
- (dolist (item list (nreverse new-list))
+ (dolist (item list)
(when (not (funcall predicate item))
- (setq new-list (cons item new-list))))))
+ (setq new-list (cons item new-list))))
+ (nreverse new-list)))
;;;###autoload
(defun doc-view-mode-p (type)