aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2011-06-05 02:18:46 +0200
committerJuanma Barranquero2011-06-05 02:18:46 +0200
commit8eda563d1eeece721cb95cfb24e45b701a76c4b2 (patch)
tree479cbfaf65096b01493db38ce3bc6b2ea1c349c3
parent989bf36895ebcac51c94ba4f06cd82a281c9f8c5 (diff)
downloademacs-8eda563d1eeece721cb95cfb24e45b701a76c4b2.tar.gz
emacs-8eda563d1eeece721cb95cfb24e45b701a76c4b2.zip
lisp/doc-view.el: Silence compiler warning.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/doc-view.el5
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ed08474bdcb..91bf8240922 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-06-05 Juanma Barranquero <lekktu@gmail.com>
2
3 * doc-view.el (doc-view-remove-if): Move computation of result out
4 of `dolist' to silence misleading lexical-binding warning.
5
12011-06-04 Chong Yidong <cyd@stupidchicken.com> 62011-06-04 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * emacs-lisp/timer.el (timer-activate): Remove unused arg. 8 * emacs-lisp/timer.el (timer-activate): Remove unused arg.
diff --git a/lisp/doc-view.el b/lisp/doc-view.el
index 7bd1a55011e..06c3b70a3a6 100644
--- a/lisp/doc-view.el
+++ b/lisp/doc-view.el
@@ -614,9 +614,10 @@ It's a subdirectory of `doc-view-cache-directory'."
614(defun doc-view-remove-if (predicate list) 614(defun doc-view-remove-if (predicate list)
615 "Return LIST with all items removed that satisfy PREDICATE." 615 "Return LIST with all items removed that satisfy PREDICATE."
616 (let (new-list) 616 (let (new-list)
617 (dolist (item list (nreverse new-list)) 617 (dolist (item list)
618 (when (not (funcall predicate item)) 618 (when (not (funcall predicate item))
619 (setq new-list (cons item new-list)))))) 619 (setq new-list (cons item new-list))))
620 (nreverse new-list)))
620 621
621;;;###autoload 622;;;###autoload
622(defun doc-view-mode-p (type) 623(defun doc-view-mode-p (type)