diff options
| author | Juanma Barranquero | 2011-06-05 02:18:46 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-06-05 02:18:46 +0200 |
| commit | 8eda563d1eeece721cb95cfb24e45b701a76c4b2 (patch) | |
| tree | 479cbfaf65096b01493db38ce3bc6b2ea1c349c3 | |
| parent | 989bf36895ebcac51c94ba4f06cd82a281c9f8c5 (diff) | |
| download | emacs-8eda563d1eeece721cb95cfb24e45b701a76c4b2.tar.gz emacs-8eda563d1eeece721cb95cfb24e45b701a76c4b2.zip | |
lisp/doc-view.el: Silence compiler warning.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/doc-view.el | 5 |
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 @@ | |||
| 1 | 2011-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 | |||
| 1 | 2011-06-04 Chong Yidong <cyd@stupidchicken.com> | 6 | 2011-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) |