diff options
| author | Glenn Morris | 2014-03-05 20:59:47 -0500 |
|---|---|---|
| committer | Glenn Morris | 2014-03-05 20:59:47 -0500 |
| commit | 4da3a85d6c2e9902f5964bff2d5c5ce02b4ba462 (patch) | |
| tree | 438768435e52c992ad90b588cbd1cb7c377f3e5b /etc/tutorials | |
| parent | 45715926243900484bb1fa4dc1ca1c6960795354 (diff) | |
| download | emacs-4da3a85d6c2e9902f5964bff2d5c5ce02b4ba462.tar.gz emacs-4da3a85d6c2e9902f5964bff2d5c5ce02b4ba462.zip | |
* etc/tutorials/TUTORIAL: Mention electric behavior of RET.
Note that I had to change "\" to `\', because otherwise Emacs thought
that everything after that point was inside a string and so did not
indent anything.
So translators should check for anything similar in their translated
versions.
Diffstat (limited to 'etc/tutorials')
| -rw-r--r-- | etc/tutorials/TUTORIAL | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/etc/tutorials/TUTORIAL b/etc/tutorials/TUTORIAL index 106c67ef1a7..fbe631a90aa 100644 --- a/etc/tutorials/TUTORIAL +++ b/etc/tutorials/TUTORIAL | |||
| @@ -312,7 +312,7 @@ of text is "continued" onto a second screen line. If you're using a | |||
| 312 | graphical display, little curved arrows appear in the narrow spaces on | 312 | graphical display, little curved arrows appear in the narrow spaces on |
| 313 | each side of the text area (the left and right "fringes"), to indicate | 313 | each side of the text area (the left and right "fringes"), to indicate |
| 314 | where a line has been continued. If you're using a text terminal, the | 314 | where a line has been continued. If you're using a text terminal, the |
| 315 | continued line is indicated by a backslash ("\") on the rightmost | 315 | continued line is indicated by a backslash (`\') on the rightmost |
| 316 | screen column. | 316 | screen column. |
| 317 | 317 | ||
| 318 | >> Insert text until you reach the right margin, and keep on inserting. | 318 | >> Insert text until you reach the right margin, and keep on inserting. |
| @@ -331,6 +331,19 @@ screen width, it will be displayed with a continuation line. | |||
| 331 | 331 | ||
| 332 | >> Type <Return> to reinsert the Newline you deleted. | 332 | >> Type <Return> to reinsert the Newline you deleted. |
| 333 | 333 | ||
| 334 | The <Return> key is special, in that pressing it may do more than | ||
| 335 | just insert a Newline character. Depending on the surrounding text, | ||
| 336 | it may insert whitespace after the Newline character, so that when | ||
| 337 | you start typing on the newly created line, the text lines up with | ||
| 338 | that on the previous line. We call this behavior (where pressing a | ||
| 339 | key does more than simply inserting the relevant character) "electric". | ||
| 340 | |||
| 341 | >> Here is an example of <Return> being electric. | ||
| 342 | Type <Return> at the end of this line. | ||
| 343 | |||
| 344 | You should see that after inserting the Newline, Emacs inserts spaces | ||
| 345 | so that the cursor moves under the "T" of "Type". | ||
| 346 | |||
| 334 | Remember that most Emacs commands can be given a repeat count; | 347 | Remember that most Emacs commands can be given a repeat count; |
| 335 | this includes text characters. Repeating a text character inserts | 348 | this includes text characters. Repeating a text character inserts |
| 336 | it several times. | 349 | it several times. |
| @@ -391,7 +404,7 @@ Note that a single C-k kills the contents of the line, and a second | |||
| 391 | C-k kills the line itself, and makes all the other lines move up. C-k | 404 | C-k kills the line itself, and makes all the other lines move up. C-k |
| 392 | treats a numeric argument specially: it kills that many lines AND | 405 | treats a numeric argument specially: it kills that many lines AND |
| 393 | their contents. This is not mere repetition. C-u 2 C-k kills two | 406 | their contents. This is not mere repetition. C-u 2 C-k kills two |
| 394 | lines and their newlines; typing C-k twice would not do that. | 407 | lines and their Newlines; typing C-k twice would not do that. |
| 395 | 408 | ||
| 396 | You can yank the killed text either at the same place where it was | 409 | You can yank the killed text either at the same place where it was |
| 397 | killed, or at some other place in the text you are editing, or even in | 410 | killed, or at some other place in the text you are editing, or even in |