diff options
| author | Richard M. Stallman | 2002-04-22 07:50:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-04-22 07:50:23 +0000 |
| commit | 8d60818b54d2a4c76f005423d0949138cb7845fb (patch) | |
| tree | b976ea5c607cb297e218bba3b90cd433e7bcae74 | |
| parent | a50ecc73e3cf13e63969ac805ff52ae2c84b7f5c (diff) | |
| download | emacs-8d60818b54d2a4c76f005423d0949138cb7845fb.tar.gz emacs-8d60818b54d2a4c76f005423d0949138cb7845fb.zip | |
Explain C-x b.
| -rw-r--r-- | etc/TUTORIAL | 34 |
1 files changed, 29 insertions, 5 deletions
diff --git a/etc/TUTORIAL b/etc/TUTORIAL index 4f52bbc6043..22f9498f7cc 100644 --- a/etc/TUTORIAL +++ b/etc/TUTORIAL | |||
| @@ -567,15 +567,39 @@ buffers that currently exist in your Emacs job, type | |||
| 567 | 567 | ||
| 568 | >> Try C-x C-b now. | 568 | >> Try C-x C-b now. |
| 569 | 569 | ||
| 570 | See how each buffer has a name, and it may also have a file name | 570 | See how each buffer has a name, and it may also have a file name for |
| 571 | for the file whose contents it holds. Some buffers do not correspond | 571 | the file whose contents it holds. ANY text you see in an Emacs window |
| 572 | to files. For example, the buffer named "*Buffer List*" does | ||
| 573 | not have any file. It is the buffer which contains the buffer | ||
| 574 | list that was made by C-x C-b. ANY text you see in an Emacs window | ||
| 575 | is always part of some buffer. | 572 | is always part of some buffer. |
| 576 | 573 | ||
| 577 | >> Type C-x 1 to get rid of the buffer list. | 574 | >> Type C-x 1 to get rid of the buffer list. |
| 578 | 575 | ||
| 576 | When you have several buffers, only of of them is "current" at any | ||
| 577 | time. That buffer is the one you edit. If you want to edit another | ||
| 578 | buffer, you need to "switch" to it. If you want to switch to a buffer | ||
| 579 | that corresponds to a file, you can do it by visiting the file again | ||
| 580 | with C-x C-f. But there is an easier way: use the C-x b command. | ||
| 581 | In that command, you have to type the buffer's name. | ||
| 582 | |||
| 583 | >> Type C-x b foo <Return> to go back to the buffer "foo" which holds | ||
| 584 | the text of the file "foo". Then type C-x b TUTORIAL <Return> | ||
| 585 | to come back to this tutorial. | ||
| 586 | |||
| 587 | Most of the time, the buffer's name is the same as the file name | ||
| 588 | (without the file directory part). However, this is not always true. | ||
| 589 | The buffer list you make with C-x C-b always shows you the name of | ||
| 590 | every buffer. | ||
| 591 | |||
| 592 | ANY text you see in an Emacs window is always part of some buffer. | ||
| 593 | Some buffers do not correspond to files. For example, the buffer | ||
| 594 | named "*Buffer List*" does not have any file. It is the buffer which | ||
| 595 | contains the buffer list that you made with C-x C-b. The buffer named | ||
| 596 | "*Messages*" also does not correspond to any file; it contains the | ||
| 597 | messages that have appeared on the bottom line during your Emacs | ||
| 598 | session. | ||
| 599 | |||
| 600 | >> Type C-x b *Messages* <Return> to look at the buffer of messages. | ||
| 601 | Then type C-b TUTORIAL <Return> to come back to this tutorial. | ||
| 602 | |||
| 579 | If you make changes to the text of one file, then find another file, | 603 | If you make changes to the text of one file, then find another file, |
| 580 | this does not save the first file. Its changes remain inside Emacs, | 604 | this does not save the first file. Its changes remain inside Emacs, |
| 581 | in that file's buffer. The creation or editing of the second file's | 605 | in that file's buffer. The creation or editing of the second file's |