home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume8 / jove / part13 < prev    next >
Encoding:
Internet Message Format  |  1987-02-03  |  25.9 KB

  1. Subject:  v08i032:  The JOVE text editor, Part13/13
  2. Newsgroups: mod.sources
  3. Approved: mirror!rs
  4.  
  5. Submitted by: seismo!rochester!jpayne (Jonathan Payne)
  6. Mod.sources: Volume 8, Issue 32
  7. Archive-name: jove/Part13
  8.  
  9. [  Now that you've got all the pieces, I'd like comments on the
  10.    way the shell archives were put together into the series.
  11.    Is this worthwhile, or not?  --r$  ]
  12.  
  13. #! /bin/sh
  14. # This is a shell archive.  Remove anything before this line,
  15. # then unpack it by saving it in a file and typing "sh file".
  16. # If all goes well, you will see the message "End of archive 13 (of 13)."
  17. # Contents:  doc/teach-jove
  18. PATH=/bin:/usr/bin:/usr/ucb; export PATH
  19. echo shar: extracting "'doc/teach-jove'" '(24421 characters)'
  20. if test -f 'doc/teach-jove' ; then 
  21.   echo shar: will not over-write existing file "'doc/teach-jove'"
  22. else
  23. sed 's/^X//' >doc/teach-jove <<'@//E*O*F doc/teach-jove//'
  24. XYou are looking at the JOVE tutorial.  This was written by Richard Stallman
  25. Xand modified by Doug Kingston and Jonathan Payne.  Comments on this document
  26. Xshould be sent to payne@rochester. (12 February '86)
  27. X
  28. XJOVE commands generally involve the CONTROL key (sometimes labelled
  29. XCTRL or CTL) or the META key (generally labelled ESCAPE).  Rather than
  30. Xwrite out META or CONTROL each time we want you to prefix a character,
  31. Xwe'll use the following abbreviations:
  32. X
  33. X C-<chr>  means hold the CONTROL key while typing the character <chr>
  34. X      Thus, C-F would be: hold the CONTROL key and type F.
  35. X M-<chr>  means type the META (ESCAPE) key and release it, then type
  36. X      the character <chr>.  The <chr> can be upper or lower case
  37. X      and it will have the same meaning.
  38. X
  39. XImportant note: if you must exit at some point, type C-X C-C.
  40. XThe characters ">>" at the left margin indicate directions for you to
  41. Xtry using a command.  For instance:
  42. X
  43. X>>  Now type C-V (View next screen) to move to the next screen.
  44. X    (go ahead, do it by depressing the control key and V together).
  45. X    From now on, you'll be expected to do this whenever you finish
  46. X    reading the screen.
  47. X
  48. XNote that there is an overlap when going from screen to screen; this
  49. Xprovides some continuity when moving through the file.
  50. X
  51. XThe first thing that you need to know is how to move around from
  52. Xplace to place in the file.  You already know how to move forward a
  53. Xscreen, with C-V.  To move backwards a screen, type M-V (depress the
  54. XMETA key and type V, or type <ESC>V if you don't have a META or EDIT
  55. Xkey).
  56. X
  57. X>>  Try typing M-V and then C-V to move back and forth a few times.
  58. X
  59. X
  60. XSUMMARY
  61. X-------
  62. X
  63. XThe following commands are useful for viewing screenfuls:
  64. X
  65. X    C-V    Move forward one screenful
  66. X    M-V    Move backward one screenful
  67. X    C-L    Center the current line--clear screen and redisplay
  68. X        everything if current line is already at center.
  69. X    
  70. X>> find the cursor and remember what text is near it.
  71. X   Then type a C-L.
  72. X   Find the cursor again and see what text is near it now.
  73. X
  74. X
  75. XBASIC CURSOR CONTROL
  76. X--------------------
  77. X
  78. XGetting from screenful to screenful is useful, but how do you
  79. Xreposition yourself within a given screen to a specific place?  There
  80. Xare several ways you can do this.  One way (not the best, but the most
  81. Xbasic) is to use the commands previous, backward, forward and next.
  82. XAs you can imagine these commands (which are given to JOVE as C-P,
  83. XC-B, C-F, and C-N respectively) move the cursor from where it
  84. Xcurrently is to a new place in the given direction.  Here, in a more
  85. Xgraphical form are the commands:
  86. X              Previous line, C-P
  87. X                  :
  88. X                  :
  89. X   Backward, C-B .... Current cursor position .... Forward, C-F
  90. X                  :
  91. X                  :
  92. X              Next line, C-N
  93. X
  94. XYou'll probably find it easy to think of these by letter.  P for
  95. Xprevious, N for next, B for backward and F for forward.  These are the
  96. Xbasic cursor positioning commands and you'll be using them ALL the
  97. Xtime so it would be of great benefit if you learn them now.
  98. X
  99. X>> Do a few C-N's to bring the cursor down to this line.
  100. X
  101. X>> Move into the line with C-F's and then up with several C-P's.  See
  102. X   what C-P does when the cursor is in the middle of the line.
  103. X
  104. XLines are separated by a single Linefeed character, which is what Unix
  105. Xcalls a Newline.
  106. X
  107. X>> Try to C-B at the beginning of a line.  Do a few more C-B's.
  108. X   Then do C-F's back to the end of the line and beyond.
  109. X
  110. XWhen you go off the top or bottom of the screen, the text beyond the
  111. Xedge is shifted onto the screen so that your instructions can be
  112. Xcarried out while keeping the cursor on the screen.
  113. X
  114. X>> Try to move the cursor off the bottom of the screen with C-N and
  115. X   see what happens.
  116. X
  117. XIf moving by characters is too slow, you can move by words.  M-F
  118. X(Meta-F) moves forward a word and M-B moves back a word.
  119. X
  120. X>> Type a few M-F's and M-B's.  Intersperse them with C-F's and C-B's.
  121. X
  122. XNotice the parallel between C-F and C-B on the one hand, and M-F and
  123. XM-B on the other hand.  Very often Meta characters are used for
  124. Xoperations related to English text whereas Control characters operate
  125. Xon the basic textual units that are independent of what you are
  126. Xediting (characters, lines, etc).  There is a similar parallel between
  127. Xlines and sentences: C-A and C-E move to the beginning or end of a
  128. Xline, and M-A and M-E move to the beginning or end of a sentence.
  129. X
  130. X>> Try a couple of C-A's, and then a couple of C-E's.
  131. X   Try a couple of M-A's, and then a couple of M-E's.
  132. X
  133. XSee how repeated C-A's do nothing, but repeated M-A's keep moving
  134. Xfarther.  Do you think that this is right?
  135. X
  136. XTwo other simple cursor motion commands are M-< (Meta Less-than),
  137. Xwhich moves to the beginning of the file, and M-> (Meta Greater-than),
  138. Xwhich moves to the end of the file.  You probably don't need to try
  139. Xthem, since finding this spot again will be boring.  If you need the
  140. Xshift key to type a "<", then you must also use the shift key to type
  141. XM-<.  Otherwise, you would be typing M-, .
  142. X
  143. XThe location of the cursor in the text is also called "point".  To
  144. Xparaphrase, the cursor shows on the screen where point is located in
  145. Xthe text.
  146. X
  147. XHere is a summary of simple moving operations including the word and
  148. Xsentence moving commands:
  149. X
  150. X    C-F    Move forward a character
  151. X    C-B    Move backward a character
  152. X
  153. X    M-F    Move forward a word
  154. X    M-B    Move backward a word
  155. X
  156. X    C-N    Move to next line
  157. X    C-P    Move to previous line
  158. X
  159. X    C-A    Move to beginning of line
  160. X    C-E    Move to end of line
  161. X
  162. X    M-A    Move back to beginning of sentence
  163. X    M-E    Move forward to end of sentence
  164. X
  165. X    M-<    Go to beginning of file
  166. X    M->    Go to end of file
  167. X
  168. X>> Try all of these commands now a few times for practice.  Since the
  169. X   last two will take you away from this screen, you can come back
  170. X   here with the command C-X C-X (which will be explained later).
  171. X   These are the most often used commands.
  172. X
  173. XLike all other commands in JOVE, these commands can be given arguments
  174. Xwhich cause them to be executed repeatedly.  The way you give a
  175. Xcommand a repeat count is by typing META and then the digits before
  176. Xyou type the command.  (Remember META is ususally called ESCAPE)
  177. X
  178. XFor instance, META 8 C-F moves forward eight characters.
  179. X    
  180. X>> Try giving a suitable argument to C-N or C-P to come as close
  181. X   as you can to this line in one jump.
  182. X
  183. XThe only apparent exception to this is the screen moving commands, C-V
  184. Xand M-V.  When given an argument, they scroll the screen up or down by
  185. Xthat many lines, rather than screenfuls.  This proves to be much more
  186. Xuseful.
  187. X
  188. X>> Try typing M-8 C-V now.
  189. X
  190. XDid it scroll the screen up by 8 lines?  If you would like to scroll
  191. Xit down you can give an argument to M-V.
  192. X
  193. X
  194. XQUITTING FROM COMMANDS
  195. X----------------------
  196. X
  197. XThe character in JOVE used to quit out of all commands which request
  198. Xinput is C-G.  For example, you can use C-G to discard a numeric
  199. Xargument or the beginning of a command that you don't want to finish.
  200. X
  201. X>> Type M-100 to make a numeric arg of 100, then type C-G.  Now type
  202. X   C-F.  How many characters does it move?  If you have typed an <ESC>
  203. X   by mistake, you can get rid of it with a C-G.
  204. X
  205. X
  206. XERRORS
  207. X------
  208. X
  209. XSometimes you may do something which JOVE doesn't allow.  If it is
  210. Xsomething simple, such as typing a control key sequence which is not
  211. Xassociated with any command, JOVE will just beep at you.  Otherwise,
  212. XJOVE will also display an informative error message at the bottom of
  213. Xthe screen.
  214. X
  215. XSome versions of JOVE do not have all the features described in this
  216. Xtutorial implemented yet.  If you come across such an unimplemented
  217. Xfeature, you may get an error message when you try to use it.  Just
  218. Xproceed on to the next section of the tutorial.
  219. X
  220. X
  221. XINSERTING AND DELETING
  222. X----------------------
  223. X
  224. XIf you want to type text, just do it.  Characters which you can see,
  225. Xsuch as A, 7, *, etc. are taken by JOVE as text and inserted
  226. Ximmediately.  Type <Return> (the carriage-return key) to insert a line
  227. Xseparator.
  228. X
  229. XYou can delete the last character you typed by typing <Delete>.
  230. X<Delete> is a key on the keyboard, which may be labeled "Rubout"
  231. Xinstead of "Delete" on some terminals.  More generally, <Delete>
  232. Xdeletes the character immediately before the current cursor position.
  233. X
  234. X>> Do this now, type a few characters and then delete them by typing
  235. X   <Delete> a few times.  Don't worry about this file being changed;
  236. X   you won't affect the master tutorial.  This is just a copy of it.
  237. X
  238. X>> Now start typing text until you reach the right margin, and keep
  239. X   typing.  When a line of text gets too big for one line on the
  240. X   screen, the line of text is "continued" off the edge of the screen
  241. X   The exclamation mark at the right margin indicates a line which has
  242. X   been continued.  The line will slide over if you move off the edge
  243. X   on either side.
  244. X
  245. X>> The following line actually goes off the edge.  Trying typing enough
  246. X   C-F's that you move off the right hand end of this line.... This is a long line of text that the JOVE editor extends to the right.
  247. X
  248. X>> Use <Delete>s to delete the text until the line fits on one screen
  249. X   line again.  The continuation "!" will go away.
  250. X
  251. X>> Move the cursor to the beginning of a line and type <Delete>.  This
  252. X   deletes the line separator before the line and merges the line onto
  253. X   the previous line.  The resulting line may be too long to fit, in
  254. X   which case it has a continuation indication.
  255. X
  256. X>> Type <Return> to insert the separator again.
  257. X
  258. XRemember that most JOVE commands can be given a repeat count;  Note
  259. Xthat this includes characters which insert themselves.
  260. X
  261. X>>  Try that now -- type META 8 * and see what happens.
  262. X
  263. XIf you want to create a blank line in between two lines, move to the
  264. Xsecond of the two lines and type C-O.
  265. X
  266. X>>  Try moving to a line and typing C-O now.
  267. X
  268. XYou've now learned the most basic way of typing something in JOVE and
  269. Xcorrecting errors.  You can delete by words or lines as well.  Here is
  270. Xa summary of the delete operations:
  271. X
  272. X    <Delete>     delete the character just before the cursor
  273. X    C-D            delete the next character after the cursor
  274. X
  275. X    M-<Delete>   kill the word immediately before the cursor
  276. X    M-D         kill the next word after the cursor
  277. X
  278. X    C-K         kill from the cursor position to end of line
  279. X    M-K         kill to the end of the current sentence
  280. X
  281. XNotice that <Delete> and C-D vs M-<Delete> and M-D extend the parallel
  282. Xstarted by C-F and M-F (well, <Delete> isn't really a control
  283. Xcharacter, but let's not worry about that).  C-K and M-K are like C-E
  284. Xand M-E, sort of, in that lines are opposite sentences.
  285. X
  286. XNow suppose you kill something, and then you decide that you want to
  287. Xget it back?  Well, whenever you kill something bigger than a
  288. Xcharacter, JOVE saves it for you.  To yank it back, use C-Y.  Note
  289. Xthat you don't have to be in the same place to do C-Y; This is a good
  290. Xway to move text around.  Also note that the difference between
  291. X"Killing" and "Deleting" something is that "Killed" things can be
  292. Xyanked back, and "Deleted" things cannot.  Generally, the commands
  293. Xthat can destroy a lot of text save it, while the ones that attack
  294. Xonly one character, or nothing but blank lines and spaces, do not save.
  295. X
  296. XFor instance, type C-N a couple times to postion the cursor at some
  297. Xline on this screen.
  298. X
  299. X>> Do this now, move the cursor and kill that line with C-K.
  300. X
  301. XNote that a single C-K kills the contents of the line, and a second
  302. XC-K kills the line itself, and make all the other lines move up.  If
  303. Xyou give C-K a repeat count, it kills that many lines AND their
  304. Xcontents.
  305. X
  306. XThe text that has just disappeared is saved so that you can retrieve
  307. Xit.  To retrieve the last killed text and put it where the cursor
  308. Xcurrently is, type C-Y.
  309. X
  310. X>> Try it; type C-Y to yank the text back.
  311. X
  312. XThink of C-Y as if you were yanking something back that someone took
  313. Xaway from you.  Notice that if you do several C-K's in a row the text
  314. Xthat is killed is all saved together so that one C-Y will yank all of
  315. Xthe lines.
  316. X
  317. X>> Do this now, type C-K several times.
  318. X
  319. XNow to retrieve that killed text:
  320. X
  321. X>> Type C-Y.  Then move the cursor down a few lines and type C-Y
  322. X   again.  You now see how to copy some text.
  323. X
  324. XWhat do you do if you have some text you want to yank back, and then
  325. Xyou kill something else?  C-Y would yank the more recent kill.  But
  326. Xthe previous text is not lost.  You can get back to it using the M-Y
  327. Xcommand.  After you have done C-Y to get the most recent kill, typing
  328. XM-Y replaces that yanked text with the previous kill.  Typing M-Y
  329. Xagain and again brings in earlier and earlier kills.  When you have
  330. Xreached the text you are looking for, you can just go away and leave
  331. Xit there.  If you M-Y enough times, you come back to the starting
  332. Xpoint (the most recent kill).
  333. X
  334. X>> Kill a line, move around, kill another line.  Then do C-Y to get
  335. X   back the second killed line.  Then do M-Y and it will be replaced
  336. X   by the first killed line.  Do more M-Y's and see what you get.
  337. X   Keep doing them until the second kill line comes back, and then a
  338. X   few more.  If you like, you can try giving M-Y positive and negative
  339. X   arguments.
  340. X
  341. X
  342. XFILES
  343. X-----
  344. X
  345. XIn order to make the text you edit permanent, you must put it in a
  346. Xfile.  Otherwise, it will go away when your invocation of JOVE goes
  347. Xaway.  While you are editing a file in JOVE, your changes are actually
  348. Xbeing made to a private "scratch" copy of the file.  However, the
  349. Xchanges still don't become permanent until you "save" the file.  This
  350. Xis so you can have control to avoid leaving a half-changed file around
  351. Xwhen you don't want to.
  352. X
  353. XIf you look near the botton of the screen you will see a line that
  354. Xlooks like this:
  355. X    JOVE (Text) Buffer: teach-jove "teach-jove" *
  356. X"teach-jove" is the name of the file you are editing.  This is the name
  357. Xof your own temporary copy of the text of the JOVE tutorial; the file
  358. Xyou are now editing.  Whatever file you edit, that file's name will
  359. Xappear in that precise spot.
  360. X
  361. XThe commands for finding and saving files are unlike the other
  362. Xcommands you have learned in that they consist of two characters.
  363. XThey both start with the character Control-X.  There is a whole series
  364. Xof commands that start with Control-X; many of them have to do with
  365. Xfiles, buffers, and related things, and all of them consist of
  366. XControl-X followed by some other character.  As with M- the character
  367. Xinterpreted the same regardless of case.
  368. X
  369. XAnother thing about the command for finding a file is that you have to
  370. Xsay what file name you want.  We say the command "reads an argument
  371. Xfrom the terminal" (in this case, the argument is the name of the
  372. Xfile).  After you type the command
  373. X
  374. X    C-X C-F   Find a file
  375. X
  376. XJOVE will ask you for the file name.  You should end the name with
  377. Xthe Return key.  After this command, you will see the contents of the
  378. Xfile in your JOVE.  You can edit the contents.  When you wish to make
  379. Xthe changes permanent, issue the command
  380. X
  381. X    C-X C-S   Save the file
  382. X
  383. XWarning: on many systems JOVE will not be able to process the key C-S.
  384. XIn place of C-S, you should type C-\.  It is possible to make C-S work
  385. Xbut C-\ is guaranteed always to work in place of C-S.
  386. X
  387. XThe old version of the file will be replaced.  When the operation is
  388. Xfinished, JOVE prints the name and number of lines and characters
  389. Xsaved.
  390. X
  391. XIf you forget to save and then edit a different file, JOVE will remind
  392. Xyou that you made changes that have not been saved and then ask you
  393. Xwhether you really want to quit.  (If you don't save them, they will
  394. Xbe thrown away.  That might be what you want!)  You should answer with
  395. Xa "Y" to throw the changes away or "N" to abort quitting so you can
  396. Xthen save the changes.
  397. X
  398. XTo make a new file, just edit it "as if" it already existed.  Then
  399. Xstart typing in the text.  When you ask to "save" the file, JOVE will
  400. Xreally create the file with the text that you have inserted.  From
  401. Xthen on, you can consider yourself to be editing an already existing
  402. Xfile.
  403. X
  404. XIt is not easy for you to try out editing a file and continue with the
  405. Xtutorial.  But you can always come back into the tutorial by starting
  406. Xit over and skipping forward.  So, when you feel ready, you should try
  407. Xediting a file named "FOO", putting some text in it, and saving it;
  408. Xthen exit from JOVE and look at the file to be sure that it worked.
  409. X
  410. X
  411. XEXTENDING THE COMMAND SET
  412. X-------------------------
  413. X
  414. XThere are many, many more JOVE commands than could possibly be put on
  415. Xall the control and meta characters.  JOVE gets around this with the X
  416. X(eXtend) command.  This comes in two flavors:
  417. X
  418. X    C-X    Character eXtend.  Followed by one character.
  419. X    M-X    Named command eXtend.  Followed by a long name.
  420. X
  421. XThese are commands that are generally useful but used less than the
  422. Xcommands you have already learned about.  You have already seen two of
  423. Xthem: the file commands C-X C-F to Find and C-X C-S to Save.  Another
  424. Xexample is the command to tell JOVE that you'd like to stop editing.
  425. XThe command to do this is C-X C-C.
  426. X
  427. XThere are many C-X commands.  The ones you need immediately are:
  428. X
  429. X    C-X C-V        Visit file.
  430. X    C-X C-S        Save file.
  431. X    C-X C-C        Quit JOVE.  This does not save your files auto-
  432. X            matically, though if your files have been modi-
  433. X            fied, JOVE asks if you really want to quit.  The
  434. X            standard way to save and exit is C-X C-S C-X C-C.
  435. X
  436. XNamed eXtended commands are commands which are used even less
  437. Xfrequently, or commands which are used only in certain modes.  These
  438. Xcommands are usually called "commands".  An example is the command
  439. X"apropos", which prompts for a keyword and then gives the names of all
  440. Xthe commands that apropos for that keyword.  When you type M-X, JOVE
  441. Xprompts you at the bottom of the screen with ":" and you should type
  442. Xthe name of the command you wish to call; in this case, "apropos".
  443. XJust type "apr<Space>" and JOVE will complete the name.  JOVE will ask
  444. Xyou for a keyword or phrase and you type the string that you want ask
  445. Xabout.
  446. X
  447. X>> Try typing M-X, followed by "apropos" or "apr" and then Return.
  448. X   Then try typing "file" followed by a Return.
  449. X
  450. X
  451. XTEXT REPLACEMENT
  452. X---- -----------
  453. X
  454. X>> Move the cursor to the blank line two lines below this one.
  455. X   Then type M-r changed<Return>altered<Return>.
  456. X
  457. X   Notice how this line has changed: you've replaced the word
  458. X   c-h-a-n-g-e-d with "altered" wherever it occurs after the cursor.
  459. X
  460. XThe more customary command for replacing strings is the interactive
  461. Xcommand query-replace-search, which has several options.  In essence,
  462. Xit shows each occurance of the first string and asks you if you want to
  463. Xreplace it or not.  You can also choose to edit around the string, or
  464. Xgo on and replace all occurances without asking further.  It is
  465. Xdescribed in detail in the JOVE manual.
  466. X
  467. X
  468. XMODE LINE
  469. X---------
  470. X
  471. XIf JOVE sees that you are typing commands slowly it shows them to you
  472. Xat the bottom of the screen in an area called the echo area.  The echo
  473. Xarea contains the bottom line of the screen.  The line immediately above
  474. Xthem is called the MODE LINE.  The mode line says something like
  475. X
  476. X   JOVE (Text)  Buffer: [buffername]  "filename" *
  477. X
  478. XThis is a very useful "information" line.
  479. X
  480. XThe buffername is the name JOVE gave to the buffer, and it is usually
  481. Xrelated to the filename.  You already know what the filename means --
  482. Xit is the file you have edited.
  483. X
  484. XThe star means that you have made changes to the text.  Right after
  485. Xyou visit or save a file, there is no star.
  486. X
  487. XThe part of the mode line inside the parentheses is to tell you what
  488. Xmodes you are in.  The default mode is Text which is what you are in
  489. Xnow.  It is an example of a "major mode".  There are several major
  490. Xmodes in JOVE for editing different languages and text, such as C
  491. Xmode, Lisp mode, Text mode, etc.  At any time one and only one major
  492. Xmode is active, and its two-letter code can always be found in the
  493. Xmode line just where "Text" is now.  Each major mode makes a few
  494. Xcommands behave differently.  For example, what JOVE considers as part
  495. Xof a valid expression or an identifier differs from one major mode to
  496. Xanother, since each programming language has a different idea of what
  497. Xis a legal identifier.
  498. X
  499. XMajor modes are called major because there are also minor modes.  They
  500. Xare called minor because they aren't alternatives to the major modes,
  501. Xjust minor modifications of them.  Each minor mode can be turned on or
  502. Xoff by itself, regardless of what major mode you are in, and
  503. Xregardless of the other minor modes.  So you can use no minor modes,
  504. Xor one minor mode, or any combination of several minor modes.
  505. X
  506. XOne minor mode which is very useful, especially for editing English
  507. Xtext, is "Auto Fill" mode.  When this mode is on, JOVE breaks the line
  508. Xin between words automatically whenever the line gets too long.  You
  509. Xcan turn this mode on by doing M-X auto-fill-mode<Return>.  When the
  510. Xmode is on, you can turn it off by doing M-X auto-fill-mode<Return>--
  511. Xit toggles.
  512. X
  513. X>> Type "M-X auto-fill-mode<Return>" now.  Then insert a line with a
  514. X   bunch of words over again until you see it divide into two lines.
  515. X   You must put in spaces between them because Auto Fill breaks lines
  516. X   only at spaces.  Notice that "Fill" (the code for Auto Fill) appears
  517. X   in the mode line after "Text" to indicate that you are in Text Fill
  518. X   mode.
  519. X
  520. XThe margin is usually set at 78 characters, but you can change it with
  521. Xthe set command.  The margin is kept in a variable just like the mode
  522. Xvalues.
  523. X
  524. X>> Type "M-X set right-margin 20", then type in some text and see
  525. X   JOVE fill lines of 20 characters with it.  Then set the margin
  526. X   back to 72 using M-X set again.
  527. X
  528. X
  529. XSEARCHING
  530. X---------
  531. X
  532. XJOVE can do searches for strings (these are groups of contiguous
  533. Xcharacters or words) either forward through the file or backward
  534. Xthrough it.  To search for the string means that you are trying to
  535. Xfind that string somewhere in the file.  Remember to use C-\ where it
  536. Xsays C-S.
  537. X
  538. X>> Now type C-S to start a search.  Type the word 'cursor', then
  539. X   Return.
  540. X
  541. X>> Type C-S Return to find the next occurrence of "cursor".
  542. X
  543. XThe C-S starts a search that looks for any occurrence of the search
  544. Xstring AFTER the current cursor position.  But what if you want to
  545. Xsearch for something earlier in the text?  To do this one should type
  546. XC-R for reverse search.  Everything that applies to C-S applies to C-R
  547. Xexcept that the direction of the search is reversed.
  548. X
  549. X
  550. XGETTING MORE HELP
  551. X-----------------
  552. X
  553. XIn this tutorial we have tried to supply just enough information to
  554. Xget you started using JOVE.  There is so much available in JOVE that
  555. Xit would be impossible to explain it all here.  However, you may want
  556. Xto learn more about JOVE since it has numerous desirable features that
  557. Xyou don't know about yet.  JOVE has a some internal documentation.
  558. X
  559. XThe most basic HELP feature is the describe-key command which is
  560. Xavailable by typing C-X ? and then a command character. JOVE prints
  561. Xone line line on the bottom of the screen tell what command is bound to
  562. Xthat key.  You can then get further information on that command
  563. Xusing...
  564. X
  565. XThe describe-command command M-? will prompt for the name of a command
  566. Xand print out the section from the manual about that command. When you
  567. Xare finished reading it, type a Space or a C-G (quit) to bring your text
  568. Xback on the screen.
  569. X
  570. X>> Type C-X ? Control-P.  The message at the bottom of the screen should
  571. X   be something like "C-P is bound to previous-line".
  572. X
  573. XMulti-character commands such as C-X C-Z and <ESC>V are also allowed
  574. Xafter C-X ?.
  575. X
  576. XNow lets get more information about the previous-line command.
  577. X
  578. X>> Type M-? previous-line.  When you are finished reading the
  579. X   output, type a Space.
  580. X
  581. XThe "name of the command" is important for people who are customizing
  582. XJOVE.  It is what appears in the JOVE CHART as the documentation for
  583. Xthe command character.
  584. X
  585. XOne other form of help is the "apropos" command.  We have already tried
  586. Xusing this command in an earlier part of this tutorial, but it should
  587. Xbe mentioned again here.  Apropos prompts for a word or phrase and
  588. Xlists all the commands that contain that string.  If you couldn't
  589. Xremember the name of a certain command to read file, you could run the
  590. Xapropos command with the keyword "file" and it would list all the
  591. Xcommands that contain "file".  To run apropos you would type
  592. X
  593. X    M-X apr<Space>file<Return>
  594. X
  595. X
  596. XCONCLUSION
  597. X----------
  598. X
  599. XRemember, to exit use C-X C-C.
  600. X
  601. XThis tutorial is meant to be understandable to all new users, so if
  602. Xyou found something unclear, don't sit and blame yourself - complain!
  603. X
  604. XYou'll probably find that if you use JOVE for a few days you won't
  605. Xbe able to give it up.  Initially it may give you trouble.  But remember
  606. Xthat this is the case with any editor, especially one that can do many,
  607. Xmany things.  And JOVE can do practically everything.
  608. @//E*O*F doc/teach-jove//
  609. if test 24421 -ne "`wc -c <'doc/teach-jove'`"; then
  610.     echo shar: error transmitting "'doc/teach-jove'" '(should have been 24421 characters)'
  611. fi
  612. fi # end of overwriting check
  613. echo shar: "End of archive 13 (of 13)."
  614. cp /dev/null ark13isdone
  615. DONE=true
  616. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13; do
  617.     if test -f ark${I}isdone; then
  618.         echo "You have run archive ${I}."
  619.     else
  620.         echo "You still need to run archive ${I}."
  621.         DONE=false
  622.     fi
  623. done
  624. case $DONE in
  625.     true)
  626.         echo "You have run all 13 archives."
  627.         echo 'Now read the README and Makefile.'
  628.         ;;
  629. esac
  630. ##  End of shell archive.
  631. exit 0
  632.