diff options
| author | Glenn Morris | 2009-07-08 02:31:02 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-07-08 02:31:02 +0000 |
| commit | 45ea35bfae85db145cad40f6e43effb57e80f2db (patch) | |
| tree | 2d73417205e7bf31627863318a50f521de06d8f2 /etc/tutorials/TUTORIAL | |
| parent | edb61b39fd80ced68dee7460716d2db6857fab28 (diff) | |
| download | emacs-45ea35bfae85db145cad40f6e43effb57e80f2db.tar.gz emacs-45ea35bfae85db145cad40f6e43effb57e80f2db.zip | |
Standardize the way M-x commands are written:
dashes inside command names, not spaces; spaces before <Return>.
(Summary): Describe the new behavior of C-l.
(Basic Cursor Control): Don't say that files "ought" to end in newlines.
Try to distinguish scroll bar from fringes.
You can also scroll with a wheel mouse.
(If Emacs Stops Responding): Rename from "When Emacs is hung".
(Inserting And Deleting): Continuation marks appear in the fringe.
Clarify that deletion can be undone. Mention cut and paste, and the Glossary.
(Files, Mode Line): Update mode-line format.
(Extending The Command Set): Downplay C-z, since using Emacs on a
text-only terminal is less common these days.
(Searching): Incremental searching is no longer atypical.
Downplay flow control issues, remove reference to deleted FAQ node.
(Multiple Windows): Mention frames.
(Multiple Frames): New section.
(Getting More Help): Downplay C-h having a different binding.
Don't say help is "on-line", since the meaning has changed.
(More Features): Replace "on-line". Use C-h rather than F10 h.
Say a little more about completion.
(Conclusion): Don't mention C-z again here.
Diffstat (limited to 'etc/tutorials/TUTORIAL')
| -rw-r--r-- | etc/tutorials/TUTORIAL | 187 |
1 files changed, 105 insertions, 82 deletions
diff --git a/etc/tutorials/TUTORIAL b/etc/tutorials/TUTORIAL index 4005523374c..94ed19d413b 100644 --- a/etc/tutorials/TUTORIAL +++ b/etc/tutorials/TUTORIAL | |||
| @@ -45,10 +45,11 @@ The following commands are useful for viewing screenfuls: | |||
| 45 | to the center of the screen. | 45 | to the center of the screen. |
| 46 | (That's CONTROL-L, not CONTROL-1.) | 46 | (That's CONTROL-L, not CONTROL-1.) |
| 47 | 47 | ||
| 48 | >> Find the cursor, and note what text is near it. | 48 | >> Find the cursor, and note what text is near it. Then type C-l. |
| 49 | Then type C-l. | 49 | Find the cursor again and notice that the same text is still near |
| 50 | Find the cursor again and notice that the same text | 50 | the cursor, but now it is in the center of the screen. |
| 51 | is near the cursor now. | 51 | If you press C-l again, this piece of text will move to the top of |
| 52 | the screen. Press C-l again, and it moves to the bottom. | ||
| 52 | 53 | ||
| 53 | You can also use the PageUp and PageDn keys to move by screenfuls, if | 54 | You can also use the PageUp and PageDn keys to move by screenfuls, if |
| 54 | your terminal has them, but you can edit more efficiently if you use | 55 | your terminal has them, but you can edit more efficiently if you use |
| @@ -88,9 +89,8 @@ will be using these basic cursor positioning commands all the time. | |||
| 88 | See what C-p does when the cursor is in the middle of the line. | 89 | See what C-p does when the cursor is in the middle of the line. |
| 89 | 90 | ||
| 90 | Each line of text ends with a Newline character, which serves to | 91 | Each line of text ends with a Newline character, which serves to |
| 91 | separate it from the following line. The last line in your file ought | 92 | separate it from the following line. (Normally, the last line in |
| 92 | to have a Newline at the end (but Emacs does not require it to have | 93 | a file will have a Newline at the end, but Emacs does not require it.) |
| 93 | one). | ||
| 94 | 94 | ||
| 95 | >> Try to C-b at the beginning of a line. It should move to | 95 | >> Try to C-b at the beginning of a line. It should move to |
| 96 | the end of the previous line. This is because it moves back | 96 | the end of the previous line. This is because it moves back |
| @@ -217,10 +217,13 @@ screenful. For example, C-u 8 C-v scrolls the screen by 8 lines. | |||
| 217 | This should have scrolled the screen up by 8 lines. If you would like | 217 | This should have scrolled the screen up by 8 lines. If you would like |
| 218 | to scroll it down again, you can give an argument to M-v. | 218 | to scroll it down again, you can give an argument to M-v. |
| 219 | 219 | ||
| 220 | If you are using a windowed display, such as X11 or MS-Windows, there | 220 | If you are using a windowed display, such as X or MS-Windows, there |
| 221 | should be a tall rectangular area called a scroll bar at the | 221 | should be a tall rectangular area called a scroll bar on one side of |
| 222 | side of the Emacs window. You can scroll the text by clicking the | 222 | the Emacs window. (There are other tall rectangles on either side of |
| 223 | mouse in the scroll bar. | 223 | the Emacs display. These "fringes" are used for displaying |
| 224 | continuation characters and other symbols. The scroll bar appears on | ||
| 225 | only one side, and is the outermost column on that side.) | ||
| 226 | You can scroll the text by clicking the mouse in the scroll bar. | ||
| 224 | 227 | ||
| 225 | >> Try pressing the middle button at the top of the highlighted area | 228 | >> Try pressing the middle button at the top of the highlighted area |
| 226 | within the scroll bar. This should scroll the text to a position | 229 | within the scroll bar. This should scroll the text to a position |
| @@ -230,9 +233,11 @@ mouse in the scroll bar. | |||
| 230 | pressed down. You'll see that the text scrolls up and down as | 233 | pressed down. You'll see that the text scrolls up and down as |
| 231 | you move the mouse. | 234 | you move the mouse. |
| 232 | 235 | ||
| 236 | If your mouse has a wheel button, you can also use this to scroll. | ||
| 233 | 237 | ||
| 234 | * WHEN EMACS IS HUNG | 238 | |
| 235 | -------------------- | 239 | * IF EMACS STOPS RESPONDING |
| 240 | --------------------------- | ||
| 236 | 241 | ||
| 237 | If Emacs stops responding to your commands, you can stop it safely by | 242 | If Emacs stops responding to your commands, you can stop it safely by |
| 238 | typing C-g. You can use C-g to stop a command which is taking too | 243 | typing C-g. You can use C-g to stop a command which is taking too |
| @@ -241,12 +246,11 @@ long to execute. | |||
| 241 | You can also use C-g to discard a numeric argument or the beginning of | 246 | You can also use C-g to discard a numeric argument or the beginning of |
| 242 | a command that you do not want to finish. | 247 | a command that you do not want to finish. |
| 243 | 248 | ||
| 244 | >> Type C-u 100 to make a numeric arg of 100, then type C-g. | 249 | >> Type C-u 100 to make a numeric argument of 100, then type C-g. |
| 245 | Now type C-f. It should move just one character, | 250 | Now type C-f. It should move just one character, |
| 246 | because you canceled the argument with C-g. | 251 | because you canceled the argument with C-g. |
| 247 | 252 | ||
| 248 | If you have typed an <ESC> by mistake, you can get rid of it | 253 | If you have typed an <ESC> by mistake, you can get rid of it with a C-g. |
| 249 | with a C-g. | ||
| 250 | 254 | ||
| 251 | 255 | ||
| 252 | * DISABLED COMMANDS | 256 | * DISABLED COMMANDS |
| @@ -324,7 +328,8 @@ current cursor position. | |||
| 324 | When a line of text gets too big for one line on the screen, the line | 328 | When a line of text gets too big for one line on the screen, the line |
| 325 | of text is "continued" onto a second screen line. A backslash ("\") | 329 | of text is "continued" onto a second screen line. A backslash ("\") |
| 326 | (or, if you're using a windowed display, a little curved arrow) at the | 330 | (or, if you're using a windowed display, a little curved arrow) at the |
| 327 | right margin indicates a line which has been continued. | 331 | right margin (actually, in the right "fringe") indicates a line which |
| 332 | has been continued. | ||
| 328 | 333 | ||
| 329 | >> Insert text until you reach the right margin, and keep on inserting. | 334 | >> Insert text until you reach the right margin, and keep on inserting. |
| 330 | You'll see a continuation line appear. | 335 | You'll see a continuation line appear. |
| @@ -364,7 +369,7 @@ as well. Here is a summary of the delete operations: | |||
| 364 | Notice that <Delback> and C-d vs M-<Delback> and M-d extend the parallel | 369 | Notice that <Delback> and C-d vs M-<Delback> and M-d extend the parallel |
| 365 | started by C-f and M-f (well, <Delback> is not really a control | 370 | started by C-f and M-f (well, <Delback> is not really a control |
| 366 | character, but let's not worry about that). C-k and M-k are like C-e | 371 | character, but let's not worry about that). C-k and M-k are like C-e |
| 367 | and M-e, sort of, in that lines are opposite sentences. | 372 | and M-e, sort of, in that lines are paired with sentences. |
| 368 | 373 | ||
| 369 | You can also kill any part of the text with one uniform method. Move | 374 | You can also kill any part of the text with one uniform method. Move |
| 370 | to one end of that part, and type C-@ or C-<SPC> (either one). (<SPC> | 375 | to one end of that part, and type C-@ or C-<SPC> (either one). (<SPC> |
| @@ -380,9 +385,10 @@ That kills all the text between the two positions. | |||
| 380 | and ending just before the n. | 385 | and ending just before the n. |
| 381 | 386 | ||
| 382 | The difference between "killing" and "deleting" is that "killed" text | 387 | The difference between "killing" and "deleting" is that "killed" text |
| 383 | can be reinserted, whereas "deleted" things cannot be reinserted. | 388 | can be reinserted (at any position), whereas "deleted" things cannot |
| 389 | be reinserted in this way (you can, however, undo a deletion--see below). | ||
| 384 | Reinsertion of killed text is called "yanking". Generally, the | 390 | Reinsertion of killed text is called "yanking". Generally, the |
| 385 | commands that can remove a lot of text kill the text (they set up so | 391 | commands that can remove a lot of text kill the text (they are set up so |
| 386 | that you can yank the text), while the commands that remove just one | 392 | that you can yank the text), while the commands that remove just one |
| 387 | character, or only remove blank lines and spaces, do deletion (so you | 393 | character, or only remove blank lines and spaces, do deletion (so you |
| 388 | cannot yank that text). <Delback> and C-d do deletion in the simplest | 394 | cannot yank that text). <Delback> and C-d do deletion in the simplest |
| @@ -404,7 +410,8 @@ yanking back, or pulling back, some text that was taken away.) You | |||
| 404 | can yank the killed text either at the same place where it was killed, | 410 | can yank the killed text either at the same place where it was killed, |
| 405 | or at some other place in the text you are editing, or even in a | 411 | or at some other place in the text you are editing, or even in a |
| 406 | different file. You can yank the same text several times; that makes | 412 | different file. You can yank the same text several times; that makes |
| 407 | multiple copies of it. | 413 | multiple copies of it. Some other editors call killing and yanking |
| 414 | "cutting" and "pasting" (see the Glossary in the Emacs manual). | ||
| 408 | 415 | ||
| 409 | The command for yanking is C-y. It reinserts the last killed text, | 416 | The command for yanking is C-y. It reinserts the last killed text, |
| 410 | at the current cursor position. | 417 | at the current cursor position. |
| @@ -455,7 +462,7 @@ additional command. | |||
| 455 | 462 | ||
| 456 | But there are two exceptions: commands that do not change the text do | 463 | But there are two exceptions: commands that do not change the text do |
| 457 | not count (this includes cursor motion commands and scrolling | 464 | not count (this includes cursor motion commands and scrolling |
| 458 | command), and self-inserting characters are usually handled in groups | 465 | commands), and self-inserting characters are usually handled in groups |
| 459 | of up to 20. (This is to reduce the number of C-x u's you have to | 466 | of up to 20. (This is to reduce the number of C-x u's you have to |
| 460 | type to undo insertion of text.) | 467 | type to undo insertion of text.) |
| 461 | 468 | ||
| @@ -491,7 +498,7 @@ you save, Emacs leaves the original file under a changed name in case | |||
| 491 | you later decide that your changes were a mistake. | 498 | you later decide that your changes were a mistake. |
| 492 | 499 | ||
| 493 | If you look near the bottom of the screen you will see a line that | 500 | If you look near the bottom of the screen you will see a line that |
| 494 | begins and ends with dashes, and starts with "--:-- TUTORIAL" or | 501 | begins and ends with dashes, and starts with "--:--- TUTORIAL" or |
| 495 | something like that. This part of the screen normally shows the name | 502 | something like that. This part of the screen normally shows the name |
| 496 | of the file that you are visiting. Right now, you are visiting a file | 503 | of the file that you are visiting. Right now, you are visiting a file |
| 497 | called "TUTORIAL" which is your personal scratch copy of the Emacs | 504 | called "TUTORIAL" which is your personal scratch copy of the Emacs |
| @@ -518,7 +525,7 @@ you can cancel the command with C-g. | |||
| 518 | minibuffer. So you do not find any file. | 525 | minibuffer. So you do not find any file. |
| 519 | 526 | ||
| 520 | When you have finished entering the file name, type <Return> to | 527 | When you have finished entering the file name, type <Return> to |
| 521 | terminate it. Then C-x C-f command goes to work, and finds the file | 528 | terminate it. The C-x C-f command goes to work, and finds the file |
| 522 | you chose. The minibuffer disappears when the C-x C-f command is | 529 | you chose. The minibuffer disappears when the C-x C-f command is |
| 523 | finished. | 530 | finished. |
| 524 | 531 | ||
| @@ -535,7 +542,7 @@ original file's name. | |||
| 535 | 542 | ||
| 536 | When saving is finished, Emacs displays the name of the file written. | 543 | When saving is finished, Emacs displays the name of the file written. |
| 537 | You should save fairly often, so that you will not lose very much | 544 | You should save fairly often, so that you will not lose very much |
| 538 | work if the system should crash. | 545 | work if the system should crash (see the section "Auto Save" below). |
| 539 | 546 | ||
| 540 | >> Type C-x C-s, saving your copy of the tutorial. | 547 | >> Type C-x C-s, saving your copy of the tutorial. |
| 541 | This should show "Wrote ...TUTORIAL" at the bottom of the screen. | 548 | This should show "Wrote ...TUTORIAL" at the bottom of the screen. |
| @@ -631,13 +638,13 @@ the X (eXtend) command. This comes in two flavors: | |||
| 631 | C-x Character eXtend. Followed by one character. | 638 | C-x Character eXtend. Followed by one character. |
| 632 | M-x Named command eXtend. Followed by a long name. | 639 | M-x Named command eXtend. Followed by a long name. |
| 633 | 640 | ||
| 634 | These are commands that are generally useful but used less than the | 641 | These are commands that are generally useful but are used less than the |
| 635 | commands you have already learned about. You have already seen a few | 642 | commands you have already learned about. You have already seen a few |
| 636 | of them: the file commands C-x C-f to Find and C-x C-s to Save, for | 643 | of them: the file commands C-x C-f to Find and C-x C-s to Save, for |
| 637 | example. Another example is the command to end the Emacs | 644 | example. Another example is the command to end the Emacs |
| 638 | session--this is the command C-x C-c. (Do not worry about losing | 645 | session--this is the command C-x C-c. (Do not worry about losing |
| 639 | changes you have made; C-x C-c offers to save each changed file before | 646 | changes you have made; C-x C-c offers to save each changed file before |
| 640 | it kills the Emacs.) | 647 | it kills Emacs.) |
| 641 | 648 | ||
| 642 | If you are using a graphical display that supports multiple | 649 | If you are using a graphical display that supports multiple |
| 643 | applications in parallel, you don't need any special command to move | 650 | applications in parallel, you don't need any special command to move |
| @@ -655,9 +662,7 @@ resume Emacs with the `fg' command or with `%emacs'. | |||
| 655 | The time to use C-x C-c is when you are about to log out. It's also | 662 | The time to use C-x C-c is when you are about to log out. It's also |
| 656 | the right thing to use to exit an Emacs invoked under mail handling | 663 | the right thing to use to exit an Emacs invoked under mail handling |
| 657 | programs and other miscellaneous utilities, since they may not know | 664 | programs and other miscellaneous utilities, since they may not know |
| 658 | how to cope with suspension of Emacs. In ordinary circumstances, | 665 | how to cope with suspension of Emacs. |
| 659 | though, if you are not about to log out, it is better to suspend Emacs | ||
| 660 | with C-z instead of exiting Emacs. | ||
| 661 | 666 | ||
| 662 | There are many C-x commands. Here is a list of the ones you have learned: | 667 | There are many C-x commands. Here is a list of the ones you have learned: |
| 663 | 668 | ||
| @@ -705,7 +710,7 @@ Emacs deletes its auto save file. | |||
| 705 | 710 | ||
| 706 | If the computer crashes, you can recover your auto-saved editing by | 711 | If the computer crashes, you can recover your auto-saved editing by |
| 707 | finding the file normally (the file you were editing, not the auto | 712 | finding the file normally (the file you were editing, not the auto |
| 708 | save file) and then typing M-x recover file<Return>. When it asks for | 713 | save file) and then typing M-x recover-file <Return>. When it asks for |
| 709 | confirmation, type yes<Return> to go ahead and recover the auto-save | 714 | confirmation, type yes<Return> to go ahead and recover the auto-save |
| 710 | data. | 715 | data. |
| 711 | 716 | ||
| @@ -724,7 +729,7 @@ shows them to you at the bottom of the screen in an area called the | |||
| 724 | The line immediately above the echo area is called the "mode line". | 729 | The line immediately above the echo area is called the "mode line". |
| 725 | The mode line says something like this: | 730 | The mode line says something like this: |
| 726 | 731 | ||
| 727 | --:** TUTORIAL 63% L749 (Fundamental)----------------------- | 732 | --:**- TUTORIAL 63% L749 (Fundamental)----------------------- |
| 728 | 733 | ||
| 729 | This line gives useful information about the status of Emacs and | 734 | This line gives useful information about the status of Emacs and |
| 730 | the text you are editing. | 735 | the text you are editing. |
| @@ -765,9 +770,9 @@ switch to Fundamental mode. | |||
| 765 | If you are going to be editing human-language text, such as this file, you | 770 | If you are going to be editing human-language text, such as this file, you |
| 766 | should probably use Text Mode. | 771 | should probably use Text Mode. |
| 767 | 772 | ||
| 768 | >> Type M-x text mode<Return>. | 773 | >> Type M-x text-mode <Return>. |
| 769 | 774 | ||
| 770 | Don't worry, none of the Emacs commands you have learned changes in | 775 | Don't worry, none of the Emacs commands you have learned changes in |
| 771 | any great way. But you can observe that M-f and M-b now treat | 776 | any great way. But you can observe that M-f and M-b now treat |
| 772 | apostrophes as part of words. Previously, in Fundamental mode, | 777 | apostrophes as part of words. Previously, in Fundamental mode, |
| 773 | M-f and M-b treated apostrophes as word-separators. | 778 | M-f and M-b treated apostrophes as word-separators. |
| @@ -794,13 +799,13 @@ human-language text, is Auto Fill mode. When this mode is on, Emacs | |||
| 794 | breaks the line in between words automatically whenever you insert | 799 | breaks the line in between words automatically whenever you insert |
| 795 | text and make a line that is too wide. | 800 | text and make a line that is too wide. |
| 796 | 801 | ||
| 797 | You can turn Auto Fill mode on by doing M-x auto fill mode<Return>. | 802 | You can turn Auto Fill mode on by doing M-x auto-fill-mode <Return>. |
| 798 | When the mode is on, you can turn it off again by doing M-x | 803 | When the mode is on, you can turn it off again by doing |
| 799 | auto fill mode<Return>. If the mode is off, this command turns it on, | 804 | M-x auto-fill-mode <Return>. If the mode is off, this command turns |
| 800 | and if the mode is on, this command turns it off. We say that the | 805 | it on, and if the mode is on, this command turns it off. We say that |
| 801 | command "toggles the mode". | 806 | the command "toggles the mode". |
| 802 | 807 | ||
| 803 | >> Type M-x auto fill mode<Return> now. Then insert a line of "asdf " | 808 | >> Type M-x auto-fill-mode <Return> now. Then insert a line of "asdf " |
| 804 | over again until you see it divide into two lines. You must put in | 809 | over again until you see it divide into two lines. You must put in |
| 805 | spaces between them because Auto Fill breaks lines only at spaces. | 810 | spaces between them because Auto Fill breaks lines only at spaces. |
| 806 | 811 | ||
| @@ -829,8 +834,7 @@ characters or words) either forward through the text or backward | |||
| 829 | through it. Searching for a string is a cursor motion command; | 834 | through it. Searching for a string is a cursor motion command; |
| 830 | it moves the cursor to the next place where that string appears. | 835 | it moves the cursor to the next place where that string appears. |
| 831 | 836 | ||
| 832 | The Emacs search command is different from the search commands | 837 | The Emacs search command is "incremental". This means that the |
| 833 | of most editors, in that it is "incremental". This means that the | ||
| 834 | search happens while you type in the string to search for. | 838 | search happens while you type in the string to search for. |
| 835 | 839 | ||
| 836 | The command to initiate a search is C-s for forward search, and C-r | 840 | The command to initiate a search is C-s for forward search, and C-r |
| @@ -855,12 +859,11 @@ go to the next occurrence of 'cursor' just type C-s again. If no such | |||
| 855 | occurrence exists, Emacs beeps and tells you the search is currently | 859 | occurrence exists, Emacs beeps and tells you the search is currently |
| 856 | "failing". C-g would also terminate the search. | 860 | "failing". C-g would also terminate the search. |
| 857 | 861 | ||
| 858 | NOTE: On some systems, typing C-s will freeze the screen and you will | 862 | (Note that on some systems, typing C-s will freeze the screen and you |
| 859 | see no further output from Emacs. This indicates that an operating | 863 | will see no further output from Emacs. This indicates that an |
| 860 | system "feature" called "flow control" is intercepting the C-s and not | 864 | operating system "feature" called "flow control" is intercepting the |
| 861 | letting it get through to Emacs. To unfreeze the screen, type C-q. | 865 | C-s and not letting it get through to Emacs. To unfreeze the screen, |
| 862 | Then see the section "Spontaneous Entry to Incremental Search" in the | 866 | type C-q.) |
| 863 | Emacs manual for advice on dealing with this "feature". | ||
| 864 | 867 | ||
| 865 | If you are in the middle of an incremental search and type <Delback>, | 868 | If you are in the middle of an incremental search and type <Delback>, |
| 866 | you'll notice that the last character in the search string is erased | 869 | you'll notice that the last character in the search string is erased |
| @@ -886,7 +889,10 @@ the search is reversed. | |||
| 886 | ------------------ | 889 | ------------------ |
| 887 | 890 | ||
| 888 | One of the nice features of Emacs is that you can display more than one | 891 | One of the nice features of Emacs is that you can display more than one |
| 889 | window on the screen at the same time. | 892 | window on the screen at the same time. (Note that Emacs uses the term |
| 893 | "frames"--described in the next section--for what some other | ||
| 894 | applications call "windows". The Emacs manual contains a Glossary of | ||
| 895 | Emacs terms.) | ||
| 890 | 896 | ||
| 891 | >> Move the cursor to this line and type C-u 0 C-l (that's CONTROL-L, not | 897 | >> Move the cursor to this line and type C-u 0 C-l (that's CONTROL-L, not |
| 892 | CONTROL-1). | 898 | CONTROL-1). |
| @@ -934,8 +940,7 @@ You do not have to display the same buffer in both windows. If you | |||
| 934 | use C-x C-f to find a file in one window, the other window does not | 940 | use C-x C-f to find a file in one window, the other window does not |
| 935 | change. You can find a file in each window independently. | 941 | change. You can find a file in each window independently. |
| 936 | 942 | ||
| 937 | Here is another way to use two windows to display two different | 943 | Here is another way to use two windows to display two different things: |
| 938 | things: | ||
| 939 | 944 | ||
| 940 | >> Type C-x 4 C-f followed by the name of one of your files. | 945 | >> Type C-x 4 C-f followed by the name of one of your files. |
| 941 | End with <Return>. See the specified file appear in the bottom | 946 | End with <Return>. See the specified file appear in the bottom |
| @@ -945,6 +950,29 @@ things: | |||
| 945 | the bottom window. | 950 | the bottom window. |
| 946 | 951 | ||
| 947 | 952 | ||
| 953 | * MULTIPLE FRAMES | ||
| 954 | ------------------ | ||
| 955 | |||
| 956 | Emacs can also create multiple "frames" (unless you are using a | ||
| 957 | text-only terminal). A frame is what we call one collection of | ||
| 958 | windows, together with its menus, scroll bars, echo area, etc. | ||
| 959 | (Some other applications call a frame a "window".) | ||
| 960 | |||
| 961 | >> Type M-x make-frame <Return>. | ||
| 962 | See a new frame appear on your screen. | ||
| 963 | |||
| 964 | You can do everything you did in the original frame in the new frame. | ||
| 965 | There is nothing special about the first frame. | ||
| 966 | |||
| 967 | >> Type M-x delete-frame <Return>. | ||
| 968 | This removes the selected frame. | ||
| 969 | |||
| 970 | You can also remove a frame by using the normal method provided by | ||
| 971 | your window manager (often clicking a button with an "X" at a top | ||
| 972 | corner of the frame). No information is lost when you close a frame | ||
| 973 | (or window), it is simply removed from sight and can be restored later. | ||
| 974 | |||
| 975 | |||
| 948 | * RECURSIVE EDITING LEVELS | 976 | * RECURSIVE EDITING LEVELS |
| 949 | -------------------------- | 977 | -------------------------- |
| 950 | 978 | ||
| @@ -982,11 +1010,8 @@ type C-h ? and Emacs will tell you what kinds of help it can give. | |||
| 982 | If you have typed C-h and decide you do not want any help, just | 1010 | If you have typed C-h and decide you do not want any help, just |
| 983 | type C-g to cancel it. | 1011 | type C-g to cancel it. |
| 984 | 1012 | ||
| 985 | (Some sites change the meaning of the character C-h. They really | 1013 | (If C-h does not display a message about help at the bottom of the |
| 986 | should not do this as a blanket measure for all users, so you have | 1014 | screen, try typing the F1 key or M-x help <Return> instead.) |
| 987 | grounds to complain to the system administrator. Meanwhile, if C-h | ||
| 988 | does not display a message about help at the bottom of the screen, try | ||
| 989 | typing the F1 key or M-x help <Return> instead.) | ||
| 990 | 1015 | ||
| 991 | The most basic HELP feature is C-h c. Type C-h, the character c, and | 1016 | The most basic HELP feature is C-h c. Type C-h, the character c, and |
| 992 | a command character or sequence; then Emacs displays a very brief | 1017 | a command character or sequence; then Emacs displays a very brief |
| @@ -998,9 +1023,8 @@ The message should be something like this: | |||
| 998 | 1023 | ||
| 999 | C-p runs the command previous-line | 1024 | C-p runs the command previous-line |
| 1000 | 1025 | ||
| 1001 | This tells you the "name of the function". Function names are used | 1026 | This tells you the "name of the function". Since function names |
| 1002 | mainly for customizing and extending Emacs. But since function names | 1027 | are chosen to indicate what the command does, they can serve as |
| 1003 | are chosen to indicate what the command does, they can serve also as | ||
| 1004 | very brief documentation--sufficient to remind you of commands you | 1028 | very brief documentation--sufficient to remind you of commands you |
| 1005 | have already learned. | 1029 | have already learned. |
| 1006 | 1030 | ||
| @@ -1022,13 +1046,13 @@ Here are some other useful C-h options: | |||
| 1022 | C-h f Describe a function. You type in the name of the | 1046 | C-h f Describe a function. You type in the name of the |
| 1023 | function. | 1047 | function. |
| 1024 | 1048 | ||
| 1025 | >> Try typing C-h f previous-line<Return>. | 1049 | >> Try typing C-h f previous-line <Return>. |
| 1026 | This displays all the information Emacs has about the | 1050 | This displays all the information Emacs has about the |
| 1027 | function which implements the C-p command. | 1051 | function which implements the C-p command. |
| 1028 | 1052 | ||
| 1029 | A similar command C-h v displays the documentation of variables whose | 1053 | A similar command C-h v displays the documentation of variables, |
| 1030 | values you can set to customize Emacs behavior. You need to type in | 1054 | including those whose values you can set to customize Emacs behavior. |
| 1031 | the name of the variable when Emacs prompts for it. | 1055 | You need to type in the name of the variable when Emacs prompts for it. |
| 1032 | 1056 | ||
| 1033 | C-h a Command Apropos. Type in a keyword and Emacs will list | 1057 | C-h a Command Apropos. Type in a keyword and Emacs will list |
| 1034 | all the commands whose names contain that keyword. | 1058 | all the commands whose names contain that keyword. |
| @@ -1036,7 +1060,7 @@ the name of the variable when Emacs prompts for it. | |||
| 1036 | For some commands, Command Apropos will also list a one | 1060 | For some commands, Command Apropos will also list a one |
| 1037 | or two character sequence which runs the same command. | 1061 | or two character sequence which runs the same command. |
| 1038 | 1062 | ||
| 1039 | >> Type C-h a file<Return>. | 1063 | >> Type C-h a file <Return>. |
| 1040 | 1064 | ||
| 1041 | This displays in another window a list of all M-x commands with "file" | 1065 | This displays in another window a list of all M-x commands with "file" |
| 1042 | in their names. You will see character-commands like C-x C-f listed | 1066 | in their names. You will see character-commands like C-x C-f listed |
| @@ -1046,35 +1070,35 @@ beside the corresponding command names such as find-file. | |||
| 1046 | 1070 | ||
| 1047 | >> Type C-x 1 to delete the help window. | 1071 | >> Type C-x 1 to delete the help window. |
| 1048 | 1072 | ||
| 1049 | C-h i Read On-line Manuals (a.k.a. Info). This command puts | 1073 | C-h i Read included Manuals (a.k.a. Info). This command puts |
| 1050 | you into a special buffer called `*info*' where you | 1074 | you into a special buffer called `*info*' where you |
| 1051 | can read on-line manuals for the packages installed on | 1075 | can read manuals for the packages installed on your system. |
| 1052 | your system. Type m emacs <Return> to read the Emacs | 1076 | Type m emacs <Return> to read the Emacs manual. |
| 1053 | manual. If you have never before used Info, type ? | 1077 | If you have never before used Info, type ? and Emacs |
| 1054 | and Emacs will take you on a guided tour of Info mode | 1078 | will take you on a guided tour of Info mode facilities. |
| 1055 | facilities. Once you are through with this tutorial, | 1079 | Once you are through with this tutorial, you should |
| 1056 | you should consult the Emacs Info manual as your | 1080 | consult the Emacs Info manual as your primary documentation. |
| 1057 | primary documentation. | ||
| 1058 | 1081 | ||
| 1059 | 1082 | ||
| 1060 | * MORE FEATURES | 1083 | * MORE FEATURES |
| 1061 | --------------- | 1084 | --------------- |
| 1062 | 1085 | ||
| 1063 | You can learn more about Emacs by reading its manual, either as a book | 1086 | You can learn more about Emacs by reading its manual, either as a |
| 1064 | or on-line in Info (use the Help menu or type F10 h r). Two features | 1087 | printed book, or inside Emacs (use the Help menu or type C-h r). |
| 1065 | that you may like especially are completion, which saves typing, and | 1088 | Two features that you may like especially are completion, which saves |
| 1066 | dired, which simplifies file handling. | 1089 | typing, and dired, which simplifies file handling. |
| 1067 | 1090 | ||
| 1068 | Completion is a way to avoid unnecessary typing. For instance, if you | 1091 | Completion is a way to avoid unnecessary typing. For instance, if you |
| 1069 | want to switch to the *Messages* buffer, you can type C-x b *M<Tab> | 1092 | want to switch to the *Messages* buffer, you can type C-x b *M<Tab> |
| 1070 | and Emacs will fill in the rest of the buffer name as far as it can | 1093 | and Emacs will fill in the rest of the buffer name as far as it can |
| 1071 | determine from what you have already typed. Completion is described | 1094 | determine from what you have already typed. Completion also works for |
| 1072 | in Info in the Emacs manual in the node called "Completion". | 1095 | command names and file names. Completion is described in the Emacs |
| 1096 | manual in the node called "Completion". | ||
| 1073 | 1097 | ||
| 1074 | Dired enables you to list files in a directory (and optionally its | 1098 | Dired enables you to list files in a directory (and optionally its |
| 1075 | subdirectories), move around that list, visit, rename, delete and | 1099 | subdirectories), move around that list, visit, rename, delete and |
| 1076 | otherwise operate on the files. Dired is described in Info in the | 1100 | otherwise operate on the files. Dired is described in the Emacs |
| 1077 | Emacs manual in the node called "Dired". | 1101 | manual in the node called "Dired". |
| 1078 | 1102 | ||
| 1079 | The manual also describes many other Emacs features. | 1103 | The manual also describes many other Emacs features. |
| 1080 | 1104 | ||
| @@ -1082,8 +1106,7 @@ The manual also describes many other Emacs features. | |||
| 1082 | * CONCLUSION | 1106 | * CONCLUSION |
| 1083 | ------------ | 1107 | ------------ |
| 1084 | 1108 | ||
| 1085 | Remember, to exit Emacs permanently use C-x C-c. To exit to a shell | 1109 | To exit Emacs use C-x C-c. |
| 1086 | temporarily, so that you can come back to Emacs afterward, use C-z. | ||
| 1087 | 1110 | ||
| 1088 | This tutorial is meant to be understandable to all new users, so if | 1111 | This tutorial is meant to be understandable to all new users, so if |
| 1089 | you found something unclear, don't sit and blame yourself - complain! | 1112 | you found something unclear, don't sit and blame yourself - complain! |