Fix wording in ELisp Intro manual
* doc/lispintro/emacs-lisp-intro.texi (Lisp macro): Improve wording in description of 'unless'. (Bug#67185)
This commit is contained in:
parent
da946ca692
commit
e521669fb3
1 changed files with 6 additions and 5 deletions
|
@ -8165,9 +8165,9 @@ the expectation that all goes well has a @code{when}. The code uses
|
||||||
text that exists.
|
text that exists.
|
||||||
|
|
||||||
A @code{when} expression is simply a programmers' convenience. It is
|
A @code{when} expression is simply a programmers' convenience. It is
|
||||||
an @code{if} without the possibility of an else clause. In your mind,
|
like an @code{if} without the possibility of an else clause. In your
|
||||||
you can replace @code{when} with @code{if} and understand what goes
|
mind, you can replace @code{when} with @code{if} and understand what
|
||||||
on. That is what the Lisp interpreter does.
|
goes on. That is what the Lisp interpreter does.
|
||||||
|
|
||||||
Technically speaking, @code{when} is a Lisp macro. A Lisp macro
|
Technically speaking, @code{when} is a Lisp macro. A Lisp macro
|
||||||
enables you to define new control constructs and other language
|
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
|
||||||
other expression is an @code{if} expression.
|
other expression is an @code{if} expression.
|
||||||
|
|
||||||
The @code{kill-region} function definition also has an @code{unless}
|
The @code{kill-region} function definition also has an @code{unless}
|
||||||
macro; it is the converse of @code{when}. The @code{unless} macro is
|
macro; it is the opposite of @code{when}. The @code{unless} macro is
|
||||||
an @code{if} without a then clause
|
like an @code{if} except that it has no then-clause, and it supplies
|
||||||
|
an implicit @code{nil} for that.
|
||||||
|
|
||||||
For more about Lisp macros, see @ref{Macros, , Macros, elisp, The GNU
|
For more about Lisp macros, see @ref{Macros, , Macros, elisp, The GNU
|
||||||
Emacs Lisp Reference Manual}. The C programming language also
|
Emacs Lisp Reference Manual}. The C programming language also
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue