diff options
| author | Robert J. Chassell | 2002-04-27 13:10:05 +0000 |
|---|---|---|
| committer | Robert J. Chassell | 2002-04-27 13:10:05 +0000 |
| commit | e601d8fd57f143f90ad8e8be65d8677a45283f26 (patch) | |
| tree | 8d78375b466515c84d0e0854b3429ceee976d6b1 | |
| parent | 82e119fb4dd9baffd2475b8f925e2e8b819bbe5e (diff) | |
| download | emacs-e601d8fd57f143f90ad8e8be65d8677a45283f26.tar.gz emacs-e601d8fd57f143f90ad8e8be65d8677a45283f26.zip | |
Fixed typographic errors.
| -rw-r--r-- | lispintro/emacs-lisp-intro.texi | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/lispintro/emacs-lisp-intro.texi b/lispintro/emacs-lisp-intro.texi index 26cb66e1bcc..744069caffd 100644 --- a/lispintro/emacs-lisp-intro.texi +++ b/lispintro/emacs-lisp-intro.texi | |||
| @@ -1331,7 +1331,7 @@ commands to format the Lisp expression so it is easy to read. For | |||
| 1331 | example, pressing the @key{TAB} key automatically indents the line the | 1331 | example, pressing the @key{TAB} key automatically indents the line the |
| 1332 | cursor is on by the right amount. A command to properly indent the | 1332 | cursor is on by the right amount. A command to properly indent the |
| 1333 | code in a region is customarily bound to @kbd{M-C-\}. Indentation is | 1333 | code in a region is customarily bound to @kbd{M-C-\}. Indentation is |
| 1334 | designed so that you can see which elements of a list belongs to which | 1334 | designed so that you can see which elements of a list belong to which |
| 1335 | list---elements of a sub-list are indented more than the elements of | 1335 | list---elements of a sub-list are indented more than the elements of |
| 1336 | the enclosing list. | 1336 | the enclosing list. |
| 1337 | 1337 | ||
| @@ -3690,7 +3690,7 @@ variables have no effect outside the @code{let} expression. | |||
| 3690 | Another way to think about @code{let} is that it is like a @code{setq} | 3690 | Another way to think about @code{let} is that it is like a @code{setq} |
| 3691 | that is temporary and local. The values set by @code{let} are | 3691 | that is temporary and local. The values set by @code{let} are |
| 3692 | automatically undone when the @code{let} is finished. The setting | 3692 | automatically undone when the @code{let} is finished. The setting |
| 3693 | only effects expressions that are inside the bounds of the @code{let} | 3693 | only affects expressions that are inside the bounds of the @code{let} |
| 3694 | expression. In computer science jargon, we would say ``the binding of | 3694 | expression. In computer science jargon, we would say ``the binding of |
| 3695 | a symbol is visible only in functions called in the @code{let} form; | 3695 | a symbol is visible only in functions called in the @code{let} form; |
| 3696 | in Emacs Lisp, scoping is dynamic, not lexical.'' | 3696 | in Emacs Lisp, scoping is dynamic, not lexical.'' |
| @@ -4737,7 +4737,7 @@ In another section, we will describe the entire function. | |||
| 4737 | Before looking at the code, let's consider what the function | 4737 | Before looking at the code, let's consider what the function |
| 4738 | definition has to contain: it must include an expression that makes | 4738 | definition has to contain: it must include an expression that makes |
| 4739 | the function interactive so it can be called by typing @kbd{M-x | 4739 | the function interactive so it can be called by typing @kbd{M-x |
| 4740 | beginning-of-buffer} or by typing a keychord such as @kbd{C-<}; it | 4740 | beginning-of-buffer} or by typing a keychord such as @kbd{M-<}; it |
| 4741 | must include code to leave a mark at the original position in the | 4741 | must include code to leave a mark at the original position in the |
| 4742 | buffer; and it must include code to move the cursor to the beginning | 4742 | buffer; and it must include code to move the cursor to the beginning |
| 4743 | of the buffer. | 4743 | of the buffer. |
| @@ -5571,13 +5571,13 @@ buffer:@: }. | |||
| 5571 | @cindex Asterisk for read-only buffer | 5571 | @cindex Asterisk for read-only buffer |
| 5572 | @findex * @r{for read-only buffer} | 5572 | @findex * @r{for read-only buffer} |
| 5573 | 5573 | ||
| 5574 | The asterisk is for the situation when the buffer is a read-only | 5574 | The asterisk is for the situation when the current buffer is a |
| 5575 | buffer---a buffer that cannot be modified. If @code{insert-buffer} is | 5575 | read-only buffer---a buffer that cannot be modified. If |
| 5576 | called on a buffer that is read-only, a message to this effect is | 5576 | @code{insert-buffer} is called when the current buffer is read-only, a |
| 5577 | printed in the echo area and the terminal may beep or blink at you; | 5577 | message to this effect is printed in the echo area and the terminal |
| 5578 | you will not be permitted to insert anything into current buffer. The | 5578 | may beep or blink at you; you will not be permitted to insert anything |
| 5579 | asterisk does not need to be followed by a newline to separate it from | 5579 | into current buffer. The asterisk does not need to be followed by a |
| 5580 | the next argument. | 5580 | newline to separate it from the next argument. |
| 5581 | 5581 | ||
| 5582 | @node b for interactive, , Read-only buffer, insert-buffer interactive | 5582 | @node b for interactive, , Read-only buffer, insert-buffer interactive |
| 5583 | @comment node-name, next, previous, up | 5583 | @comment node-name, next, previous, up |
| @@ -7142,6 +7142,7 @@ Construct a list of four birds by evaluating several expressions with | |||
| 7142 | @code{cons}. Find out what happens when you @code{cons} a list onto | 7142 | @code{cons}. Find out what happens when you @code{cons} a list onto |
| 7143 | itself. Replace the first element of the list of four birds with a | 7143 | itself. Replace the first element of the list of four birds with a |
| 7144 | fish. Replace the rest of that list with a list of other fish. | 7144 | fish. Replace the rest of that list with a list of other fish. |
| 7145 | |||
| 7145 | @node Cutting & Storing Text, List Implementation, car cdr & cons, Top | 7146 | @node Cutting & Storing Text, List Implementation, car cdr & cons, Top |
| 7146 | @comment node-name, next, previous, up | 7147 | @comment node-name, next, previous, up |
| 7147 | @chapter Cutting and Storing Text | 7148 | @chapter Cutting and Storing Text |
| @@ -10369,7 +10370,7 @@ list': @code{dolist} automatically shortens the list each time it | |||
| 10369 | loops---takes the @sc{cdr} of the list---and binds the @sc{car} of | 10370 | loops---takes the @sc{cdr} of the list---and binds the @sc{car} of |
| 10370 | each shorter version of the list to the first of its arguments. | 10371 | each shorter version of the list to the first of its arguments. |
| 10371 | 10372 | ||
| 10372 | @code{dotimes} loops a specific number of time: you specify the number. | 10373 | @code{dotimes} loops a specific number of times: you specify the number. |
| 10373 | 10374 | ||
| 10374 | @menu | 10375 | @menu |
| 10375 | * dolist:: | 10376 | * dolist:: |
| @@ -16080,7 +16081,7 @@ initialization file. | |||
| 16080 | @findex defcustom | 16081 | @findex defcustom |
| 16081 | 16082 | ||
| 16082 | You can specify variables using @code{defcustom} so that you and | 16083 | You can specify variables using @code{defcustom} so that you and |
| 16083 | others can then can use Emacs' @code{customize} feature to set their | 16084 | others can then use Emacs' @code{customize} feature to set their |
| 16084 | values. (You cannot use @code{customize} to write function | 16085 | values. (You cannot use @code{customize} to write function |
| 16085 | definitions; but you can write @code{defuns} in your @file{.emacs} | 16086 | definitions; but you can write @code{defuns} in your @file{.emacs} |
| 16086 | file. Indeed, you can write any Lisp expression in your @file{.emacs} | 16087 | file. Indeed, you can write any Lisp expression in your @file{.emacs} |
| @@ -18636,7 +18637,7 @@ argument, as they quite well may? | |||
| 18636 | The answers can be found by a quick test. When @code{(% -1 5)} is | 18637 | The answers can be found by a quick test. When @code{(% -1 5)} is |
| 18637 | evaluated, a negative number is returned; and if @code{nthcdr} is | 18638 | evaluated, a negative number is returned; and if @code{nthcdr} is |
| 18638 | called with a negative number, it returns the same value as if it were | 18639 | called with a negative number, it returns the same value as if it were |
| 18639 | called with a first argument of zero. This can be seen be evaluating | 18640 | called with a first argument of zero. This can be seen by evaluating |
| 18640 | the following code. | 18641 | the following code. |
| 18641 | 18642 | ||
| 18642 | Here the @samp{@result{}} points to the result of evaluating the code | 18643 | Here the @samp{@result{}} points to the result of evaluating the code |