aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Petton2015-06-15 12:43:09 +0200
committerNicolas Petton2015-06-15 12:43:09 +0200
commitc8dc4d680430255895e5654a2634ee6994dde050 (patch)
treef7d16e6b97e3d82e2be363f2892235824aba9faa
parent08bad175d45dad7bb872c604cd2b8e84cc1cc5bb (diff)
downloademacs-c8dc4d680430255895e5654a2634ee6994dde050.tar.gz
emacs-c8dc4d680430255895e5654a2634ee6994dde050.zip
* lisp/emacs-lisp/map.el (map-let): Better docstring.
-rw-r--r--lisp/emacs-lisp/map.el9
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 @@
49Matches if the object is a map (list, hash-table or array), and 49Matches if the object is a map (list, hash-table or array), and
50binds values from ARGS to their corresponding elements of the map. 50binds values from ARGS to their corresponding elements of the map.
51 51
52ARGS can be a list elements of the form (KEY PAT) or elements 52ARGS can be a list elements of the form (KEY PAT), in which case
53of the form SYMBOL, which stands for ('SYMBOL SYMBOL)." 53KEY in an unquoted form.
54
55ARGS can also be a list of symbols, which stands for ('SYMBOL
56SYMBOL)."
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
61bound to the looked up value in MAP. 64bound to the looked up value in MAP.
62 65
63KEYS can also be a list of (KEY VARNAME) pairs, in which case 66KEYS can also be a list of (KEY VARNAME) pairs, in which case
64KEY is not quoted. 67KEY is an unquoted form.
65 68
66MAP can be a list, hash-table or array." 69MAP can be a list, hash-table or array."
67 (declare (indent 2) (debug t)) 70 (declare (indent 2) (debug t))