summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorNicolas Petton <nicolas@petton.fr>2015-06-15 12:43:09 +0200
committerNicolas Petton <nicolas@petton.fr>2015-06-15 12:43:09 +0200
commitc8dc4d680430255895e5654a2634ee6994dde050 (patch)
treef7d16e6b97e3d82e2be363f2892235824aba9faa /lisp/emacs-lisp
parent08bad175d45dad7bb872c604cd2b8e84cc1cc5bb (diff)
downloademacs-c8dc4d680430255895e5654a2634ee6994dde050.tar.gz
emacs-c8dc4d680430255895e5654a2634ee6994dde050.tar.bz2
emacs-c8dc4d680430255895e5654a2634ee6994dde050.zip
* lisp/emacs-lisp/map.el (map-let): Better docstring.
Diffstat (limited to 'lisp/emacs-lisp')
-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 @@
Matches if the object is a map (list, hash-table or array), and
binds values from ARGS to their corresponding elements of the map.
-ARGS can be a list elements of the form (KEY PAT) or elements
-of the form SYMBOL, which stands for ('SYMBOL SYMBOL)."
+ARGS can be a list elements of the form (KEY PAT), in which case
+KEY in an unquoted form.
+
+ARGS can also be a list of symbols, which stands for ('SYMBOL
+SYMBOL)."
`(and (pred map-p)
,@(map--make-pcase-bindings args)))
@@ -61,7 +64,7 @@ KEYS can be a list of symbols, in which case each element will be
bound to the looked up value in MAP.
KEYS can also be a list of (KEY VARNAME) pairs, in which case
-KEY is not quoted.
+KEY is an unquoted form.
MAP can be a list, hash-table or array."
(declare (indent 2) (debug t))