diff options
| author | Nicolas Petton | 2015-06-15 12:43:09 +0200 |
|---|---|---|
| committer | Nicolas Petton | 2015-06-15 12:43:09 +0200 |
| commit | c8dc4d680430255895e5654a2634ee6994dde050 (patch) | |
| tree | f7d16e6b97e3d82e2be363f2892235824aba9faa | |
| parent | 08bad175d45dad7bb872c604cd2b8e84cc1cc5bb (diff) | |
| download | emacs-c8dc4d680430255895e5654a2634ee6994dde050.tar.gz emacs-c8dc4d680430255895e5654a2634ee6994dde050.zip | |
* lisp/emacs-lisp/map.el (map-let): Better docstring.
| -rw-r--r-- | lisp/emacs-lisp/map.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el index 85f6bcaa73c..dd7fb9174ef 100644 --- a/lisp/emacs-lisp/map.el +++ b/lisp/emacs-lisp/map.el | |||
| @@ -49,8 +49,11 @@ | |||
| 49 | Matches if the object is a map (list, hash-table or array), and | 49 | Matches if the object is a map (list, hash-table or array), and |
| 50 | binds values from ARGS to their corresponding elements of the map. | 50 | binds values from ARGS to their corresponding elements of the map. |
| 51 | 51 | ||
| 52 | ARGS can be a list elements of the form (KEY PAT) or elements | 52 | ARGS can be a list elements of the form (KEY PAT), in which case |
| 53 | of the form SYMBOL, which stands for ('SYMBOL SYMBOL)." | 53 | KEY in an unquoted form. |
| 54 | |||
| 55 | ARGS can also be a list of symbols, which stands for ('SYMBOL | ||
| 56 | SYMBOL)." | ||
| 54 | `(and (pred map-p) | 57 | `(and (pred map-p) |
| 55 | ,@(map--make-pcase-bindings args))) | 58 | ,@(map--make-pcase-bindings args))) |
| 56 | 59 | ||
| @@ -61,7 +64,7 @@ KEYS can be a list of symbols, in which case each element will be | |||
| 61 | bound to the looked up value in MAP. | 64 | bound to the looked up value in MAP. |
| 62 | 65 | ||
| 63 | KEYS can also be a list of (KEY VARNAME) pairs, in which case | 66 | KEYS can also be a list of (KEY VARNAME) pairs, in which case |
| 64 | KEY is not quoted. | 67 | KEY is an unquoted form. |
| 65 | 68 | ||
| 66 | MAP can be a list, hash-table or array." | 69 | MAP can be a list, hash-table or array." |
| 67 | (declare (indent 2) (debug t)) | 70 | (declare (indent 2) (debug t)) |