From: Nicolas Petton Date: Mon, 15 Jun 2015 10:43:09 +0000 (+0200) Subject: * lisp/emacs-lisp/map.el (map-let): Better docstring. X-Git-Tag: emacs-25.0.90~1762 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c8dc4d680430255895e5654a2634ee6994dde050;p=emacs.git * lisp/emacs-lisp/map.el (map-let): Better docstring. --- 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))