diff options
| author | Nicolas Petton | 2015-04-18 20:04:17 +0200 |
|---|---|---|
| committer | Nicolas Petton | 2015-04-18 20:04:17 +0200 |
| commit | 924ea3ff9d8680f4136fe64fc2467460867dd2fe (patch) | |
| tree | facfe4f2eac06635361e5820c8c8e4900e138f53 | |
| parent | 35c27cd5818bede77279dc7e5cf1beec93766baa (diff) | |
| download | emacs-924ea3ff9d8680f4136fe64fc2467460867dd2fe.tar.gz emacs-924ea3ff9d8680f4136fe64fc2467460867dd2fe.zip | |
* lisp/emacs-lisp/map.el: Removes byte-compilation warnings.
| -rw-r--r-- | lisp/emacs-lisp/map.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el index 7d839f822d2..9d2b4f718b5 100644 --- a/lisp/emacs-lisp/map.el +++ b/lisp/emacs-lisp/map.el | |||
| @@ -86,11 +86,11 @@ Map can be a nested map composed of alists, hash-tables and arrays." | |||
| 86 | 86 | ||
| 87 | (defun map-keys (map) | 87 | (defun map-keys (map) |
| 88 | "Return the list of keys in MAP." | 88 | "Return the list of keys in MAP." |
| 89 | (map-apply (lambda (key value) key) map)) | 89 | (map-apply (lambda (key _) key) map)) |
| 90 | 90 | ||
| 91 | (defun map-values (map) | 91 | (defun map-values (map) |
| 92 | "Return the list of values in MAP." | 92 | "Return the list of values in MAP." |
| 93 | (map-apply (lambda (key value) value) map)) | 93 | (map-apply (lambda (_ value) value) map)) |
| 94 | 94 | ||
| 95 | (defun map-pairs (map) | 95 | (defun map-pairs (map) |
| 96 | "Return the elements of MAP as key/value association lists." | 96 | "Return the elements of MAP as key/value association lists." |
| @@ -121,13 +121,13 @@ FUNCTION is called with two arguments, the key and the value." | |||
| 121 | 121 | ||
| 122 | (defun map-keys-apply (function map) | 122 | (defun map-keys-apply (function map) |
| 123 | "Return the result of applying FUNCTION to each key of MAP." | 123 | "Return the result of applying FUNCTION to each key of MAP." |
| 124 | (map-apply (lambda (key val) | 124 | (map-apply (lambda (key _) |
| 125 | (funcall function key)) | 125 | (funcall function key)) |
| 126 | map)) | 126 | map)) |
| 127 | 127 | ||
| 128 | (defun map-values-apply (function map) | 128 | (defun map-values-apply (function map) |
| 129 | "Return the result of applying FUNCTION to each value of MAP." | 129 | "Return the result of applying FUNCTION to each value of MAP." |
| 130 | (map-apply (lambda (key val) | 130 | (map-apply (lambda (_ val) |
| 131 | (funcall function val)) | 131 | (funcall function val)) |
| 132 | map)) | 132 | map)) |
| 133 | 133 | ||