aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Stallman2023-11-19 12:14:36 +0200
committerEli Zaretskii2023-11-19 12:14:36 +0200
commite521669fb3f5fea6f7b9ee88cbcbcf2750c00f9d (patch)
tree9cf553e3318c3fc68a3623ee4f0043bc63afb92a
parentda946ca6924b5ba1a1c785284406cf894aef12b5 (diff)
downloademacs-e521669fb3f5fea6f7b9ee88cbcbcf2750c00f9d.tar.gz
emacs-e521669fb3f5fea6f7b9ee88cbcbcf2750c00f9d.zip
Fix wording in ELisp Intro manual
* doc/lispintro/emacs-lisp-intro.texi (Lisp macro): Improve wording in description of 'unless'. (Bug#67185)
-rw-r--r--doc/lispintro/emacs-lisp-intro.texi11
1 files changed, 6 insertions, 5 deletions
diff --git a/doc/lispintro/emacs-lisp-intro.texi b/doc/lispintro/emacs-lisp-intro.texi
index c5b33ac5eaa..e4a0f585f69 100644
--- a/doc/lispintro/emacs-lisp-intro.texi
+++ b/doc/lispintro/emacs-lisp-intro.texi
@@ -8165,9 +8165,9 @@ the expectation that all goes well has a @code{when}. The code uses
8165text that exists. 8165text that exists.
8166 8166
8167A @code{when} expression is simply a programmers' convenience. It is 8167A @code{when} expression is simply a programmers' convenience. It is
8168an @code{if} without the possibility of an else clause. In your mind, 8168like an @code{if} without the possibility of an else clause. In your
8169you can replace @code{when} with @code{if} and understand what goes 8169mind, you can replace @code{when} with @code{if} and understand what
8170on. That is what the Lisp interpreter does. 8170goes on. That is what the Lisp interpreter does.
8171 8171
8172Technically speaking, @code{when} is a Lisp macro. A Lisp macro 8172Technically speaking, @code{when} is a Lisp macro. A Lisp macro
8173enables you to define new control constructs and other language 8173enables you to define new control constructs and other language
@@ -8176,8 +8176,9 @@ expression which will in turn compute the value. In this case, the
8176other expression is an @code{if} expression. 8176other expression is an @code{if} expression.
8177 8177
8178The @code{kill-region} function definition also has an @code{unless} 8178The @code{kill-region} function definition also has an @code{unless}
8179macro; it is the converse of @code{when}. The @code{unless} macro is 8179macro; it is the opposite of @code{when}. The @code{unless} macro is
8180an @code{if} without a then clause 8180like an @code{if} except that it has no then-clause, and it supplies
8181an implicit @code{nil} for that.
8181 8182
8182For more about Lisp macros, see @ref{Macros, , Macros, elisp, The GNU 8183For more about Lisp macros, see @ref{Macros, , Macros, elisp, The GNU
8183Emacs Lisp Reference Manual}. The C programming language also 8184Emacs Lisp Reference Manual}. The C programming language also