aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-04-22 07:50:23 +0000
committerRichard M. Stallman2002-04-22 07:50:23 +0000
commit8d60818b54d2a4c76f005423d0949138cb7845fb (patch)
treeb976ea5c607cb297e218bba3b90cd433e7bcae74
parenta50ecc73e3cf13e63969ac805ff52ae2c84b7f5c (diff)
downloademacs-8d60818b54d2a4c76f005423d0949138cb7845fb.tar.gz
emacs-8d60818b54d2a4c76f005423d0949138cb7845fb.zip
Explain C-x b.
-rw-r--r--etc/TUTORIAL34
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
570See how each buffer has a name, and it may also have a file name 570See how each buffer has a name, and it may also have a file name for
571for the file whose contents it holds. Some buffers do not correspond 571the file whose contents it holds. ANY text you see in an Emacs window
572to files. For example, the buffer named "*Buffer List*" does
573not have any file. It is the buffer which contains the buffer
574list that was made by C-x C-b. ANY text you see in an Emacs window
575is always part of some buffer. 572is 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
576When you have several buffers, only of of them is "current" at any
577time. That buffer is the one you edit. If you want to edit another
578buffer, you need to "switch" to it. If you want to switch to a buffer
579that corresponds to a file, you can do it by visiting the file again
580with C-x C-f. But there is an easier way: use the C-x b command.
581In 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
587Most 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.
589The buffer list you make with C-x C-b always shows you the name of
590every buffer.
591
592ANY text you see in an Emacs window is always part of some buffer.
593Some buffers do not correspond to files. For example, the buffer
594named "*Buffer List*" does not have any file. It is the buffer which
595contains 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
597messages that have appeared on the bottom line during your Emacs
598session.
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
579If you make changes to the text of one file, then find another file, 603If you make changes to the text of one file, then find another file,
580this does not save the first file. Its changes remain inside Emacs, 604this does not save the first file. Its changes remain inside Emacs,
581in that file's buffer. The creation or editing of the second file's 605in that file's buffer. The creation or editing of the second file's