diff options
| author | Richard Stallman | 2023-11-19 12:14:36 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2023-11-19 12:14:36 +0200 |
| commit | e521669fb3f5fea6f7b9ee88cbcbcf2750c00f9d (patch) | |
| tree | 9cf553e3318c3fc68a3623ee4f0043bc63afb92a | |
| parent | da946ca6924b5ba1a1c785284406cf894aef12b5 (diff) | |
| download | emacs-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.texi | 11 |
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 | |||
| 8165 | text that exists. | 8165 | text that exists. |
| 8166 | 8166 | ||
| 8167 | A @code{when} expression is simply a programmers' convenience. It is | 8167 | A @code{when} expression is simply a programmers' convenience. It is |
| 8168 | an @code{if} without the possibility of an else clause. In your mind, | 8168 | like an @code{if} without the possibility of an else clause. In your |
| 8169 | you can replace @code{when} with @code{if} and understand what goes | 8169 | mind, you can replace @code{when} with @code{if} and understand what |
| 8170 | on. That is what the Lisp interpreter does. | 8170 | goes on. That is what the Lisp interpreter does. |
| 8171 | 8171 | ||
| 8172 | Technically speaking, @code{when} is a Lisp macro. A Lisp macro | 8172 | Technically speaking, @code{when} is a Lisp macro. A Lisp macro |
| 8173 | enables you to define new control constructs and other language | 8173 | enables 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 | |||
| 8176 | other expression is an @code{if} expression. | 8176 | other expression is an @code{if} expression. |
| 8177 | 8177 | ||
| 8178 | The @code{kill-region} function definition also has an @code{unless} | 8178 | The @code{kill-region} function definition also has an @code{unless} |
| 8179 | macro; it is the converse of @code{when}. The @code{unless} macro is | 8179 | macro; it is the opposite of @code{when}. The @code{unless} macro is |
| 8180 | an @code{if} without a then clause | 8180 | like an @code{if} except that it has no then-clause, and it supplies |
| 8181 | an implicit @code{nil} for that. | ||
| 8181 | 8182 | ||
| 8182 | For more about Lisp macros, see @ref{Macros, , Macros, elisp, The GNU | 8183 | For more about Lisp macros, see @ref{Macros, , Macros, elisp, The GNU |
| 8183 | Emacs Lisp Reference Manual}. The C programming language also | 8184 | Emacs Lisp Reference Manual}. The C programming language also |