=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mg/tutorial,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/mg/tutorial 2000/02/25 19:08:52 1.1 +++ src/usr.bin/mg/tutorial 2001/05/24 03:05:27 1.2 @@ -60,7 +60,7 @@ machines that do support Emacs. Emacs runs on everything from a CP/M machine to large mainframes. Here then, in a more graphical form are the commands: - + Previous line, C-p : : @@ -145,10 +145,10 @@ Like all other commands in Emacs, these commands can be given arguments which cause them to be executed repeatedly. The way you give a command a repeat count is by typing C-u and then the digits -before you type the command. +before you type the command. For instance, C-u 8 C-f moves forward eight characters. - + >> Try giving a suitable argument to C-n or C-p to come as close as you can to this line in one jump. @@ -241,7 +241,7 @@ as well. Here is a summary of the delete operations: delete the character just before the cursor - C-d delete the next character after the cursor + C-d delete the next character after the cursor M- kill the word immediately before the cursor M-d kill the next word after the cursor @@ -326,9 +326,9 @@ C-x C-f Find a file Emacs asks you to type the file name. It echoes on the bottom line of -the screen. When you type to end the file name it disappears. +the screen. When you type to end the file name it disappears. ->> Type C-x C-f, then type C-g. This cancels the C-x C-f command +>> Type C-x C-f, then type C-g. This cancels the C-x C-f command that was using the minibuffer. So you do not find any file. In a little while the file contents appear on the screen. You can @@ -337,7 +337,7 @@ C-x C-s Save the file -The contents of Emacs are written into the file. +The contents of Emacs are written into the file. When saving is finished, Emacs prints the name of the file written. You should save fairly often, so that you will not lose very much @@ -357,7 +357,7 @@ ------- If you find a second file with C-x C-f, the first file remains inside -Emacs. This way you can get quite a number of files inside Emacs. +Emacs. This way you can get quite a number of files inside Emacs. The object inside Emacs which holds the text read from one file is called a "buffer." Finding a file makes a new buffer inside Emacs. @@ -417,7 +417,7 @@ You would use C-x C-c if you were running out of memory. You would also use it to exit an Emacs invoked under mail handling programs and other random utilities, since they may not believe you have really -finished using the Emacs if it continues to exist. +finished using the Emacs if it continues to exist. There are many C-x commands. The ones you know are: @@ -453,7 +453,7 @@ area contains the bottom line of the screen. The line immediately above it is called the MODE LINE. The mode line says something like ---**-Mg: TUTORIAL (fundamental)------------------------ +--**-Mg: TUTORIAL (fundamental)------------------------ This is a very useful "information" line. @@ -530,7 +530,7 @@ the 'u' on the search line is erased and you'll be repositioned in the text to the occurrence of 'c' where the search took you before you typed the 'u'. This provides a useful means for backing up while you -are searching. +are searching. If you are in the middle of a search and happen to type a control character (other than a C-s or C-r, which tell Emacs to search for the @@ -550,7 +550,7 @@ get you started using Emacs. There is so much available in Emacs that it would be impossible to explain it all here. However, you may want to learn more about Emacs since it has numerous desirable features -that you don't know about yet. +that you don't know about yet. CONCLUSION