diff options
author | Alex Branham <alex.branham@gmail.com> | 2019-06-23 22:55:40 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-06-23 22:55:40 +0200 |
commit | 0b7494414a1a921cdaa399159d30e56e71f99885 (patch) | |
tree | 1e1631bbdd6960e3f3cb5db1cc89ab0e5b2c3c90 /lisp/emacs-lisp | |
parent | a74f1e93a6b640f7778addd4a5d076bed35e3f0f (diff) | |
download | emacs-0b7494414a1a921cdaa399159d30e56e71f99885.tar.gz emacs-0b7494414a1a921cdaa399159d30e56e71f99885.tar.bz2 emacs-0b7494414a1a921cdaa399159d30e56e71f99885.zip |
(if-let): Improve docstring by mentioning let*
* lisp/emacs-lisp/subr-x.el (if-let): Clarify that if-let is like
let*, not like let (bug#33550).
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/subr-x.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el index b9ffe6a6fc6..f76409c4de8 100644 --- a/lisp/emacs-lisp/subr-x.el +++ b/lisp/emacs-lisp/subr-x.el @@ -158,8 +158,9 @@ are non-nil, then the result is non-nil." (defmacro if-let (spec then &rest else) "Bind variables according to SPEC and evaluate THEN or ELSE. -Evaluate each binding in turn, stopping if a binding value is nil. -If all are non-nil return the value of THEN, otherwise the last form in ELSE. +Evaluate each binding in turn, as in `let*', stopping if a +binding value is nil. If all are non-nil return the value of +THEN, otherwise the last form in ELSE. Each element of SPEC is a list (SYMBOL VALUEFORM) that binds SYMBOL to the value of VALUEFORM. An element can additionally be |