1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986
|
<HTML>
<HEAD>
<!-- This HTML file has been created by texi2html 1.29
from ../tnf/info.tnf on 12 Febuary 2003 -->
<TITLE>Info - Beginners Help</TITLE>
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#FFFFFF" LINK="#0000EE" VLINK="#551A8B" ALINK="#FF0000" BACKGROUND="gifs/bg.gif">
<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0" VALIGN=BOTTOM>
<TR VALIGN=BOTTOM>
<TD WIDTH="160" VALIGN=BOTTOM><IMG SRC="gifs/elilogo.gif" BORDER=0> </TD>
<TD WIDTH="25" VALIGN=BOTTOM><img src="gifs/empty.gif" WIDTH=25 HEIGHT=25></TD>
<TD ALIGN=LEFT WIDTH="600" VALIGN=BOTTOM><IMG SRC="gifs/title.gif"></TD>
</TR>
</TABLE>
<HR size=1 noshade width=785 align=left>
<TABLE BORDER=0 CELLSPACING=2 CELLPADDING=0>
<TR>
<TD VALIGN=TOP WIDTH="160">
<h4>General Information</h4>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="index.html">Eli: Translator Construction Made Easy</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="gindex_toc.html">Global Index</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="faq_toc.html" >Frequently Asked Questions</a> </td></tr>
</table>
<h4>Tutorials</h4>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="EliRefCard_toc.html">Quick Reference Card</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="novice_toc.html">Guide For new Eli Users</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="news_toc.html">Release Notes of Eli</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="nametutorial_toc.html">Tutorial on Name Analysis</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="typetutorial_toc.html">Tutorial on Type Analysis</a></td></tr>
</table>
<h4>Reference Manuals</h4>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="ui_toc.html">User Interface</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="pp_toc.html">Eli products and parameters</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="lidoref_toc.html">LIDO Reference Manual</a></td></tr>
</table>
<h4>Libraries</h4>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="lib_toc.html">Eli library routines</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="modlib_toc.html">Specification Module Library</a></td></tr>
</table>
<h4>Translation Tasks</h4>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="lex_toc.html">Lexical analysis specification</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="syntax_toc.html">Syntactic Analysis Manual</a></td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="comptrees_toc.html">Computation in Trees</a></td></tr>
</table>
<h4>Tools</h4>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="lcl_toc.html">LIGA Control Language</a> </td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="show_toc.html">Debugging Information for LIDO</a> </td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="gorto_toc.html">Graphical ORder TOol</a> </td></tr>
</table>
<p>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="fw_toc.html">FunnelWeb User's Manual</a> </td></tr>
</table>
<p>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="ptg_toc.html">Pattern-based Text Generator</a> </td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="deftbl_toc.html">Property Definition Language</a> </td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="oil_toc.html">Operator Identification Language</a> </td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="tp_toc.html">Tree Grammar Specification Language</a> </td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="clp_toc.html">Command Line Processing</a> </td></tr>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="cola_toc.html">COLA Options Reference Manual</a> </td></tr>
</table>
<p>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="idem_toc.html">Generating Unparsing Code</a> </td></tr>
</table>
<p>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="mon_toc.html">Monitoring a Processor's Execution</a> </td></tr>
</table>
<h4>Administration</h4>
<table BORDER=0 CELLSPACING=0 CELLPADDING=0>
<tr valign=top><td><img src="gifs/gelbekugel.gif" WIDTH=7 HEIGHT=7 ALT=" o"> </td><td><a href="sysadmin_toc.html">System Administration Guide</a> </td></tr>
</table>
<HR WIDTH="100%">
<CENTER> <A HREF="mailto:elibugs@cs.colorado.edu"><IMG SRC="gifs/button_mail.gif" NOSAVE BORDER=0 HEIGHT=32 WIDTH=32></A><A HREF="mailto:elibugs@cs.colorado.edu">Questions, Comments, ....</A></CENTER>
</TD>
<TD VALIGN=TOP WIDTH="25"><img src="gifs/empty.gif" WIDTH=25 HEIGHT=25></TD>
<TD VALIGN=TOP WIDTH="600">
<H1>Info</H1>
<P>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT=""><A HREF="info_1.html"><IMG SRC="gifs/prev.gif" ALT="Previous Chapter" BORDER="0"></A>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT=""><A HREF="info_3.html"><IMG SRC="gifs/next.gif" ALT="Next Chapter" BORDER="0"></A>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT=""><A HREF="info_toc.html"><IMG SRC="gifs/up.gif" ALT="Table of Contents" BORDER="0"></A>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT="">
<HR size=1 noshade width=600 align=left>
<H1><A NAME="SEC2" HREF="info_toc.html#SEC2">Beginners Help</A></H1>
<A NAME="IDX1"></A>
<H2><A NAME="SEC3" HREF="info_toc.html#SEC3">Small Screen</A></H2>
<P>
Since your terminal has an unusually small number of lines on its
screen, it is necessary to give you special advice at the beginning.
<P>
To move forward through the text and see another screen full, press the
Space bar. To move back up, press the key labeled Rubout or Delete or
DEL.
<P>
Here are 40 lines of junk, so you can try Spaces and Rubouts and
see what they do. At the end are instructions of what you should do
next.
<P>
This is line 17
This is line 18
This is line 19
This is line 20
This is line 21
This is line 22
This is line 23
This is line 24
This is line 25
This is line 26
This is line 27
This is line 28
This is line 29
This is line 30
This is line 31
This is line 32
This is line 33
This is line 34
This is line 35
This is line 36
This is line 37
This is line 38
This is line 39
This is line 40
This is line 41
This is line 42
This is line 43
This is line 44
This is line 45
This is line 46
This is line 47
This is line 48
This is line 49
This is line 50
This is line 51
This is line 52
This is line 53
This is line 54
This is line 55
This is line 56
<P>
If you have managed to get here, go back to the beginning with
Rubout, and come back here again, then you understand Space and
Rubout. So now type an "n"--just one character; don't type the
quotes and don't type a Return afterward-- to get to the normal start
of the course.
<P>
<A NAME="IDX2"></A>
<A NAME="IDX3"></A>
<A NAME="IDX4"></A>
<A NAME="IDX5"></A>
<A NAME="IDX6"></A>
<H2><A NAME="SEC4" HREF="info_toc.html#SEC4">Help</A></H2>
<P>
You are talking to the program Info, for reading documentation.
<P>
Right now you are looking at one "Node" of Information.
A node contains text describing a specific topic at a specific
level of detail. This node's topic is "how to use Info".
<P>
The top line of a node is its "header". This node's header (look at
it now) says that it is the node named "Help" in the file "info".
It says that the Next node after this one is the node called "Help-P".
An advanced Info command lets you go to any node whose name you know.
<P>
Besides a "Next", a node can have a "Previous" or an "Up".
This node has a "Previous" but no "Up", as you can see.
<P>
Now it's time to move on to the Next node, named "Help-P".
<P>
>> Type "n" to move there. Type just one character;
don't type the quotes and don't type a Return afterward.
<P>
">>" in the margin means it is really time to try a command.
<P>
<A NAME="IDX7"></A>
<H2><A NAME="SEC5" HREF="info_toc.html#SEC5">P</A></H2>
<P>
This node is called "Help-P". The "Previous" node, as you see, is
"Help", which is the one you just came from using the "n" command.
Another "n" command now would take you to the Next node, "Help-C-l".
<P>
>> But don't do that yet. First, try the "p" command, which takes
you to the Previous node. When you get there, you can do an "n"
again to return here.
<P>
This all probably seems insultingly simple so far, but DON'T be
led into skimming. Things will get more complicated soon. Also,
don't try a new command until you are told it's time to. Otherwise,
you may make Info skip past an important warning that was coming up.
<P>
>> Now do an "n" to get to the node "Help-C-l" and learn more.
<P>
<A NAME="IDX8"></A>
<A NAME="IDX9"></A>
<A NAME="IDX10"></A>
<A NAME="IDX11"></A>
<A NAME="IDX12"></A>
<H2><A NAME="SEC6" HREF="info_toc.html#SEC6">C-l</A></H2>
<P>
Space, Rubout, B and C-l commands.
<P>
This node's header tells you that you are now at node "Help-C-l", and
that "P" would get you back to "Help-P". The line starting "Space,"
is a "Title", saying what the node is about (most nodes have titles).
<P>
This is a big node and it doesn't all fit on your display screen. The
Space, Rubout (possibly called Delete on your terminal) and B commands
exist to allow you to "move around" in a node that doesn't all fit on
the screen at once. Space moves forward, to show what was below the
bottom of the screen. Rubout moves backward, to show what was above the
top of the screen (there isn't anything above the top until you have
typed some spaces).
<P>
>> Now try typing a Space (afterward, type a Rubout to return here).
<P>
When you type the space, the two lines that were at the bottom of the
screen appear at the top, followed by more lines. Rubout takes the
two lines from the top and moves them to the bottom, USUALLY, but if
there are not a full screen's worth of lines above them they may not
make it all the way to the bottom.
<P>
If you type a Space when there is no more to see, it will ring the
bell and otherwise do nothing. The same goes for a Rubout when
the header of the node is visible.
<P>
If your screen is ever garbaged, you can tell Info to print it out
again by typing C-l (Control-l, that is--hold down "Control" and
type an "L" or "l").
<P>
>> Type C-l now.
<P>
To move back to the beginning of the node you are on, you can type
a lot of Rubouts. You can also type simply "b" for beginning.
<P>
>> Try that now. (I have put in enough verbiage to try and make sure
you are not on the first screenful now). Then come back, with Spaces.
<P>
You have just learned a considerable number of commands. If you
want to use one but have trouble remembering which, you should type
a "?" which will print out a brief list of commands. When you are
finished looking at the list, make it go away by typing a Space.
<P>
>> Type a "?" now. After it finishes, type a Space.
<P>
From now on, you will encounter large nodes without warning, and
will be expected to know how to use Space and Rubout to move
around in them without being told. Since not all terminals have
the same size screen, it would be impossible to warn you anyway.
<P>
>> Now type "n" to see the description of the "m" command.
<P>
<A NAME="IDX13"></A>
<A NAME="IDX14"></A>
<H2><A NAME="SEC7" HREF="info_toc.html#SEC7">Menus and the M command</A></H2>
<P>
With only the "n" and "p" commands for moving between nodes, nodes
are restricted to a linear sequence. Menus allow a branching
structure. A menu is a list of other nodes you can move to. These
nodes may be any nodes in the documentation but are usually subnodes
of the current node. A menu actually just part of the text of the node
formatted specially so that Info can interpret it. The beginning of a
menu is always identified by a line which starts with "* Menu:". A
node contains a menu if and only if it has a line in it which starts
that way. The only menu you can use at any moment is the one in the
node you are in. To use a menu in any other node, you must move to
that node first.
<P>
After the start of the menu, each line that starts with a "*"
identifies one subtopic. The line will usually contain a brief name
for the subtopic (followed by a ":"), the name of the node that talks
about that subtopic, and optionally some further description of the
subtopic. Lines in the menu that don't start with a "*" have no
special meaning - they are only for the human reader's benefit and do
not define additional subtopics. Here is an example:
<P>
<PRE>
* Foo: FOO's Node This tells about FOO
</PRE>
<P>
The subtopic name is Foo, and the node describing it is "FOO's Node".
The rest of the line is just for the reader's Information.
[[ But this line is not a real menu item, simply because there is
no line above it which starts with "* Menu:".]]
<P>
When you use a menu to go to another node (in a way that will be
described soon), what you specify is the subtopic name, the first
thing in the menu line. Info uses it to find the menu line, extracts
the node name from it, and goes to that node. The reason that there
is both a subtopic name and a node name is that the node name must be
meaningful to the computer and may therefore have to be ugly looking.
The subtopic name can be chosen just to be convenient for the user to
specify. Often the node name is convenient for the user to specify
and so both it and the subtopic name are the same. There is an
abbreviation for this:
<P>
<PRE>
* Foo:: This tells about FOO
</PRE>
<P>
Here the node name has been left out (represented by the two colons).
By default the node name will be the same as the subtopic name. Thus
in this case the subtopic name and node name are the same; they are
both "Foo".
<P>
>> Now use Spaces to find the menu in this node, then come back to
the front with a "b". As you see, a menu is actually visible
in its node. If you can't find a menu in a node by looking at it,
then the node doesn't have a menu and the "m" command is not available.
<P>
The command to go to one of the subnodes is "m" - but DON'T DO IT
YET! Before you use "m", you must understand the difference between
commands and arguments. So far, you have learned several commands
that do not need arguments. When you type one, Info processes it and
is instantly ready for another command. The "m" command is different:
it is incomplete without the NAME OF THE SUBTOPIC. Once you have
typed "m", Info tries to read the subtopic name.
<P>
Now look for the line containing many dashes near the bottom of the
screen. There is one more line beneath that one, but usually it is
blank. If it is empty, Info is ready for a command, such as "n" or "b"
or Space or "m". If that line contains text ending in a colon, it
mean Info is trying to read the ARGUMENT to a command. At such
times, commands won't work, because Info will try to use them as the
argument. You must either type the argument and finish the command
you started, or type C-g to cancel the command. When you have
done one of those things, the line will become blank again.
<P>
The command to go to a subnode via a menu is "m". After you type
the "m", the line at the bottom of the screen says "Menu item: ".
You must then type the name of type subtopic you want, and end it with
a Return.
<P>
You can abbreviate the subtopic name. If the abbreviation is not
unique, the first matching subtopic is chosen. Some menus will put
the shortest possible abbreviation for each subtopic name in capital
letters, so you can see how much you need to type. It does not
matter whether you use upper case or lower case when you type the
subtopic. You should not put any spaces at the end, or inside of the
item name, except for one space where a space appears in the item in
the menu.
<P>
Here is a menu to give you a chance to practice.
<P>
>> Now type just an "m" and see what happens:
<P>
Now you are "inside" an "m" command. Commands can't be used now;
the next thing you will type must be the name of a subtopic.
<P>
You can change your mind about doing the "m" by typing C-g.
<P>
>> Try that now; notice the bottom line clear.
<P>
>> Then type another "m".
<P>
>> Now type "BAR", the item name. Don't type Return yet.
<P>
While you are typing the item name, you can use the Rubout
character to cancel one character at a time if you make a mistake.
<P>
>> Type one to cancel the "R". You could type another "R" to
replace it. You don't have to, since "BA" is a valid abbreviation.
<P>
>> Now you are ready to go. Type a Return.
<P>
After visiting Help-FOO, you should return here.
<P>
>> Type "n" to see more commands.
<P>
<A NAME="IDX15"></A>
<H2><A NAME="SEC8" HREF="info_toc.html#SEC8">The U command</A></H2>
<P>
Congratulations! This is the node Help-FOO. Unlike the other
nodes you have seen, this one has an "Up": "Help-M", the node you
just came from via the "m" command. This is the usual convention--
the nodes you reach from a menu have Ups that lead back to the menu.
Menus move Down in the tree, and Up moves Up. Previous, on the other
hand, is usually used to "stay on the same level but go backwards".
<P>
You can go back to the node Help-M by typing the command
"u" for "Up". That will put you at the FRONT of the node - to get
back to where you were reading you will have to type some Spaces.
<P>
>> Now type "u" to move back up to Help-M.
<P>
<A NAME="IDX16"></A>
<A NAME="IDX17"></A>
<A NAME="IDX18"></A>
<A NAME="IDX19"></A>
<H2><A NAME="SEC9" HREF="info_toc.html#SEC9">Some advanced Info commands</A></H2>
<P>
The course is almost over, so please stick with it to the end.
<P>
If you have been moving around to different nodes and wish to
retrace your steps, the "l" command ("l" for "last") will do that, one
node at a time. If you have been following directions, an "l" command
now will get you back to Help-M. Another "l" command would undo the "u"
and get you back to Help-FOO. Another "l" would undo the M and get you
back to Help-M.
<P>
>> Try typing three "l"'s, pausing in between to see what each "l" does.
Then follow directions again and you will end up back here.
<P>
Note the difference between "l" and "p": "l" moves to where YOU
last were, whereas "p" always moves to the node which the header says
is the "Previous" node (from this node, to Help-M).
<P>
The "d" command gets you instantly to the Directory node.
This node, which is the first one you saw when you entered Info,
has a menu which leads (directly, or indirectly through other menus),
to all the nodes that exist.
<P>
>> Try doing a "d", then do an "l" to return here (yes, DO return).
<P>
Sometimes, in Info documentation, you will see a cross reference.
Cross references look like this: See <A HREF="info_2.html#SEC10">Cross</A>. That is a
real, live cross reference which is named "Cross" and points at the
node named "Help-Cross".
<P>
If you wish to follow a cross reference, you must use the "f"
command. The "f" must be followed by the cross reference name (in
this case, "Cross"). You can use Rubout to edit the name, and if you
change your mind about following any reference you can use C-g
to cancel the command.
<P>
Completion is available in the "f" command; you can complete among
all the cross reference names in the current node.
<P>
>> Type "f", followed by "Cross", and a Return.
<P>
To get a list of all the cross references in the current node, you can
type "?" after an "f". The "f" continues to await a cross reference name
even after printing the list, so if you don't actually want to follow
a reference you should type a C-g to cancel the "f".
<P>
>> Type "f?" to get a list of the footnotes in this node. Then
type a C-g and see how the "f" gives up.
<P>
>> Now type "n" to see the last node of the course.
<P>
<H2><A NAME="SEC10" HREF="info_toc.html#SEC10">Cross</A></H2>
<P>
This is the node reached by the cross reference named "Cross".
<P>
While this node is specifically intended to be reached by a cross
reference, most cross references lead to nodes that "belong" someplace
else far away in the structure of Info. So you can't expect the
footnote to have a Next, Previous or Up pointing back to where you
came from. In general, the "l" (el) command is the only way to get
back there.
<P>
>> Type "l" to return to the node where the cross reference was.
<P>
<A NAME="IDX20"></A>
<H2><A NAME="SEC11" HREF="info_toc.html#SEC11">Q</A></H2>
<P>
To get out of Info, back to what you were doing before, type "q"
for "Quit".
<P>
This is the end of the course on using Info. There are some other
commands that are not essential or meant for experienced users; they
are useful, and you can find them by looking in the directory for
documentation on Info. Finding them will be a good exercise in using
Info in the usual manner.
<P>
>> Type "d" to go to the Info directory node;
then type "mInfo" and Return, to get to the node about Info
and see what other help is available.
<P>
<A NAME="IDX21"></A>
<A NAME="IDX22"></A>
<A NAME="IDX23"></A>
<A NAME="IDX24"></A>
<A NAME="IDX25"></A>
<A NAME="IDX26"></A>
<A NAME="IDX27"></A>
<A NAME="IDX28"></A>
<H2><A NAME="SEC12" HREF="info_toc.html#SEC12">Some Advanced Info Commands</A></H2>
<P>
If you know a node's name, you can go there by typing
"g", the name, and Return. Thus, "gTop<Return>" would go to the node
called Top in this file (its directory node). "gExpert<Return>"
would come back here.
<P>
Unlike "m", "g" does not allow the use of abbreviations.
<P>
To go to a node in another file, you can include the filename in the
node name by putting it at the front, in parentheses. Thus,
"g(dir)Top<Return>" would go to the Info Directory node, which is node Top
in the file dir.
<P>
The node name "*" specifies the whole file. So you can look at all
of the current file by typing "g*<Return>" or all of any other file
with "g(FILENAME)<Return>".
<P>
The "s" command allows you to search a whole file for a string. It
will switch to the next node if and when that is necessary. You type
"s" followed by the string to search for, terminated by Return. To
search for the same string again, just "s" followed by Return will do.
The file's nodes will be scanned in the order they are in in the file,
which has no necessary relationship to the order that they may be in
in the tree structure of menus and next's. But normally the two
orders will not be far different. In any case, you can always do a
"b" to find out what node you have reached, if the header isn't
visible (this can happen, because "S" puts your cursor at the
occurrence of the string, not at the beginning of the node).
<P>
If you grudge the system each character of type-in it requires,
you might like to use the commands "1", "2", "3", "4", and "5".
They are short for the "m" command together with an argument.
"1" goes through the first item in the current node's menu;
"2" goes through the second item, etc. Note that numbers
larger than 5 are not allowed. If the item you want is that
far down, you are better off using an abbreviation for its
name than counting.
<P>
<A NAME="IDX29"></A>
<A NAME="IDX30"></A>
<H2><A NAME="SEC13" HREF="info_toc.html#SEC13">Printing things from inside Info</A></H2>
<P>
For information on how Info decides which printer to use for these
commands, see <A HREF="info_2.html#SEC14">Info Options.</A>.
<P>
It is possible to use Info to print two types of information. The first
is just any information that you can display on the screen. Using the
C-t command, you can print the contents of the current node to a
printer. Note that the printout that you get will be just a straight
"ASCII" dump of the node with no formatting other than that that you see
on the screen.
<P>
For many applications of Info, it is also possible to get high-quality
laser printed copies of manuals which are being viewed in Info. The C-p
command has the effect of trying to print the current MANUAL (ie. not
just the current node) as a POSTSCRIPT document. You should check with
your system maintainer whether this sort of printing is supported for
your documents. Also be careful what you print as the laser printer
versions of many documents can be quite large.
<P>
<A NAME="IDX31"></A>
<A NAME="IDX32"></A>
<A NAME="IDX33"></A>
<A NAME="IDX34"></A>
<A NAME="IDX35"></A>
<H2><A NAME="SEC14" HREF="info_toc.html#SEC14">Info Options.</A></H2>
<P>
It is possible for you to customize much of Info's behaviour. In
particular, you can customize which printer is used by the printing
commands (see <A HREF="info_2.html#SEC13">Printing things from inside Info</A>). The "o" command is used to examine
and/or set Info options using an interactive interface. These options
are local to your Info session and have no effect on any shell
variables or other variables you may have outside this session. The
Info options can be initialized by setting the values of shell
environment variables (see example below) but their values do not
propagate back to those shell variables.
<P>
When you execute the "o" command, a display such as the following will
appear at the top of your screen.
<P>
<PRE>
The options which can be set are:
EDITOR /usr/ucb/vi
Program to use for editing (see also WINEDITOR).
INFORUNDISPLAY (null)
Program to use to display output of 'R' command in parallel.
WINEDITOR (null)
Program to use for editing in parallel (preferred over EDITOR).
PRINTER lp
Printer to send any printouts to.
</PRE>
<P>
This display lists the currently available options, their current
values, and a description of each option. At the bottom of the screen
you will be asked the question:
<P>
<PRE>
Set which option (RET to finish):
</PRE>
<P>
To this you type the name of the option which you want to change, or a
RETURN if you are finished with the options. Then you will see the
prompt:
<P>
<PRE>
To what:
</PRE>
<P>
to which you type the desired value. (Eg. "shelltool vi" for the option
WINEDITOR.) The screen will be updated to reflect the new value which
will be in effect from then on.
<P>
If you don't want to have to set the options each time you enter Info,
you can use environment variables. The Info options are initialised by
the values (if any) of the environment variables with the same names.
For example, to make the printer "myprinter" the default printer for
Info, execute the following command in csh(1):
<P>
<PRE>
setenv PRINTER myprinter
</PRE>
<P>
If the environment variables EDITOR and PRINTER are not set, then the
Info options EDITOR and PRINTER default to "/usr/ucb/vi" and "lp",
respectively, as shown above.
<P>
<A NAME="IDX36"></A>
<A NAME="IDX37"></A>
<A NAME="IDX38"></A>
<H2><A NAME="SEC15" HREF="info_toc.html#SEC15">Completing Input</A></H2>
<P>
To decrease the amount that you have to type Info supports completion.
This means that in certain contexts where Info has a good idea what you
might type, it can help you. One such context is when you are using the
"m" command to select a node from a menu. Info provides facilities so
that you only have to specify the unique part of the thing you are
typing so that it can be distinguished from the other menu items.
<P>
The following characters cause special behaviour when completing:
<P>
<DL COMPACT>
<DT>SPACE, C-t, TAB
<DD>Add to what has been typed so far as much as can be inferred. If this
is not unique, ring the bell.
<DT>?
<DD>Print at the top of the screen a list of the completions of what has
been typed so far, but don't add anything.
<DT>RETURN, NEWLINE
<DD>Attempt to complete what has been typed so far into a unique value. If
this is possible accept that value as the input value, otherwise
complete as much as possible and ring the bell.
</DL>
<P>
As a simple example, consider a menu containing the items "One", "Two"
and "Only". When executing the "m" command to select something from
this menu, you could type "T" then RETURN to select "Two", and "O", TAB,
"e", RETURN to select "One". Note that because "One" and "Only" share a
common prefix you must type the "e" to enable Info to distinguish the two.
In this case completion doesn't save you anything. In practice, node names
for example, may be quite long and completion is very useful.
<P>
Other things that can be accessed using completion are cross references
("f" command), options ("o" command) and file names ("e" command,
see <A HREF="info_2.html#SEC16">Interacting with examples using Info</A>).
<P>
<A NAME="IDX39"></A>
<A NAME="IDX40"></A>
<A NAME="IDX41"></A>
<A NAME="IDX42"></A>
<H2><A NAME="SEC16" HREF="info_toc.html#SEC16">Interacting with examples using Info</A></H2>
<P>
Info provides a powerful facility for interacting with examples. It
enables authors to build interactive examples into the documentation
tree and thus make them part of their system's documentation. Two
facilities are provided for users: running and editing. These are
flagged by the words "Edit" and/or "Run" in the header of a node. Eg.
<P>
<PRE>
File: doc1, Node: top, Next: another, Eg: EditRun
</PRE>
<P>
When "Run" is present, the "r" command is enabled. This command
invokes a set of author-specified commands to run the example associated
with the current node. Once these commands are finished, possibly after
significant interaction with the user, a transcript of the results is
displayed.
<P>
If the Info option INFORUNDISPLAY is set, it will be assumed to be the
name of a program to use to display the transcript of an Info run. It
should take one filename argument. For example, users of SunView may
use the value "textedit" to get the output of the run displayed in
another window.
<P>
If INFORUNDISPLAY is not set, the transcript is displayed by info as a
node, so that it may be viewed using the normal Info commands. In this
case the "v" command can be used to return to the run output at a later
stage in the Info session.
<P>
Usually associated with each example provided using Info are one or more
files. Typically these files will reside in a documentation directory
and are maintained as part of the system they illustrate. Info provides
a facility for allowing you to modify these files using the "e" command.
To do this, Info arranges for each file that you edit to be copied into
your directory (ie. the one in which you ran Info). Thus you are
editing your own copy of the file, not the system copy. (Note that the
"r" command will also copy the files into your directory in order to be
able to run the example commands.)
<P>
The "e" command will prompt you for the name of the file to edit. Since
completion is available, you can use the "?" character to determine
which files are available for editing along with a small description of
each file. Once you have selected the file to edit, an editor is
invoked to do the editing. The options EDITOR and WINEDITOR are assumed
to be a program which takes one argument and edits the file. If
WINEDITOR is set it will be executed in the background, and is normally
used when you are in a windowing environment like SunView (eg. with a
value of "shelltool vi"). If WINEDITOR is not set, EDITOR will be used.
Note that EDITOR will default to "/usr/ucb/vi" (see <A HREF="info_2.html#SEC14">Info Options.</A>).
<P>
If you use WINEDITOR you will be able to edit and use Info at the same
time (assuming you have a window system). You can exit WINEDITOR at any
time you like. If you use EDITOR you will have to finish editing before
you can resume your Info session.
<P>
Using the "r" and "e" commands, it is possible for you to try out
supplied examples, modify them, try out the modified examples, and
so on. In addition, you obtain your own copies of the files comprising
the example for possible use outside of Info.
<P>
<A NAME="IDX43"></A>
<A NAME="IDX44"></A>
<A NAME="IDX45"></A>
<A NAME="IDX46"></A>
<H2><A NAME="SEC17" HREF="info_toc.html#SEC17">Complaining about things</A></H2>
<P>
Working under the principle that the best time to make a complaint is
when the complaint is fresh in your mind, Info provdes the "c" command.
This enables you to easily send mail to the maintainer of the Info
system (and/or the system that is documented by the Info system).
<P>
The "c" command simply invokes your mail sender and lets you type your
message in ended with C-d. The message is sent to the appropriate person.
<P>
Note that most mail senders will let you abort sending a message using
your interrupt character (usually either C-c or Delete). If you decide
not to complain after all, use that method to abort and return to your
Info session.
<P>
<H2><A NAME="SEC18" HREF="info_toc.html#SEC18">Standalone use of Info</A></H2>
<P>
Info may be used inside GNU Emacs, but there is also a standalone
version (called infoReader in the Eli system). This section briefly
lists the options which may be used when running Info in this standalone
manner.
<P>
<H3><A NAME="SEC19" HREF="info_toc.html#SEC19">Synopsis</A></H3>
<PRE>
info [ -d info-directory-path ] [ -f info-file ]
[ -o dump-file] [ -n node-name ] [ menu-name ... ]
</PRE>
<P>
<H3><A NAME="SEC20" HREF="info_toc.html#SEC20">Description</A></H3>
When Info is invoked, the optional <EM>menu-name</EM> arguments are the
series of menu options that you wish to follow from the main menu. For
example, to get info about using buffers in Emacs, you might type `info
emacs buffers' (assuming that the Emacs information is available).
<P>
The options are as follows:
<DL COMPACT>
<DT><CODE>-d</CODE>
<DD>A quick way for you to temporarily change the path searched by Info when
it starts up. You can also set the environment variable
<CODE>INFO_DIRECTORY_PATHS</CODE> to a list of colon-separated directory
names.
<DT><CODE>-f</CODE>
<DD>Specifies which Info file to load. Normally, Info looks for the file
<TT>`dir'</TT> in the info search path, and goes to node <CODE>Top</CODE> in that
file. The <TT>`dir'</TT> file contains a menu whose items all point to info
files. If the info file you wish to view is not in that menu, you can
say <CODE>info -f info-filename</CODE>, and that file specifically will be
used.
<DT><CODE>-n</CODE>
<DD>Sets the initial node to look for. This allows you to read an info file that
doesn't have a <CODE>Top</CODE> node.
<DT><CODE>-o</CODE>
<DD>Dumps the contents of the node that you have specified, so that you can
do with it what you please. Note that you can print the node that you
are currently looking at with <CODE>C-t</CODE> from within Info, so it isn't clear
what you want to do with the output from <CODE>-o</CODE>.
</DL>
<P>
<H2><A NAME="SEC21" HREF="info_toc.html#SEC21">Internals</A></H2>
<P>
Info files are ASCII files with a particular structure. Here we discuss
that structure while describing the make-up of the major components of
an Info file.
<P>
Note that much of the discussion below assumes a context where GNU Emacs
is being used. (In particular to manipulate the Info file and for
validation.)
<P>
<H3><A NAME="SEC22" HREF="info_toc.html#SEC22">Add</A></H3>
<P>
To add a new topic to the list in the directory, you must
1) create a node, in some file, to document that topic.
2) put that topic in the menu in the directory. *Note Menu: Menus.
<P>
The new node can live in an existing documentation file, or in a new
one. It must have a C-_ character before it (invisible to the user;
this node has one but you can't see it), and it ends with either a C-_,
a C-l, or the end of file. Note: If you put in a C-l to end a new
node, be sure that there is a C-_ after it to start the next one, since
C-l can't START a node. Also, a nicer way to make a node boundary be a
page boundary as well is to put a C-l RIGHT AFTER the C-_.
<P>
The C-_ starting a node must be followed by a newline or a C-l newline,
after which comes the node's header line. The header line must give
the node's name (by which Info will find it), and state the names of
the Next, Previous, and Up nodes (if there are any). As you can see,
this node's Up node is the node Top, which points at all the
documentation for Info. The Next node is "Menus".
<P>
The keywords "Node", "Previous", "Up" and "Next", may appear in
any order, anywhere in the header line, but the recommended order is
the one in this sentence. Each keyword must be followed by a colon,
spaces and tabs, and then the appropriate name. The name may be
terminated with a tab, a comma, or a newline. A space does not end
it; node names may contain spaces. The case of letters in the names
is insignificant.
<P>
A node name has two forms. A node in the current file is named by
what appears after the "Node: " in that node's first line. For
example, this node's name is "Add". A node in another file is named
by "(FILENAME)NODE-WITHIN-FILE", as in "(info)Add" for this node. If
the file name is relative, it is taken starting from the standard
Info file directory of your site. The name "(FILENAME)Top" can be
abbreviated to just "(FILENAME)". By convention, the name "Top" is
used for the "highest" node in any single file - the node whose "Up"
points out of the file. The Directory node is "(dir)". The Top node
of a document file listed in the Directory should have an "Up: (dir)"
in it.
<P>
The node name "*" is special: it refers to the entire file. Thus,
g* will show you the whole current file. The use of the node * is to
make it possible to make old-fashioned, unstructured files into nodes
of the tree.
<P>
The "Node:" name, in which a node states its own name, must not
contain a filename, since Info when searching for a node does not
expect one to be there. The Next, Previous and Up names may contain
them. In this node, since the Up node is in the same file, it was not
necessary to use one.
<P>
Note that the nodes in this file have a File name in the header
line. The File names are ignored by Info, but they serve as
comments to help identify the node for the user.
<P>
<H3><A NAME="SEC23" HREF="info_toc.html#SEC23">Menus</A></H3>
<P>
Any node in the Info hierarchy may have a MENU--a list of subnodes.
The "m" command searches the current node's menu for the topic which it
reads from the terminal.
<P>
A menu begins with a line starting with "* Menu:". The rest of the
line is a comment. After the starting line, every line that begins
with a "* " lists a single topic. The name of the topic--the arg
that the user must give to the "m" command to select this topic--
comes right after the star and space, and is followed by
a colon, spaces and tabs, and the name of the node which discusses
that topic. The node name, like node names following Next,
Previous and Up, may be terminated with a tab, comma, or newline;
it may also be terminated with a period.
<P>
If the node name and topic name are the same, than rather than
giving the name twice, the abbreviation "* NAME::" may be used
(and should be used, whenever possible, as it reduces the visual
clutter in the menu).
<P>
It is considerate to choose the topic names so that they differ
from each other very near the beginning--this allows the user to type
short abbreviations. In a long menu, it is a good idea to capitalize
the beginning of each item name which is the minimum acceptable
abbreviation for it (a long menu is more than 5 or so entries).
<P>
The node's listed in a node's menu are called its "subnodes", and
it is their "superior". They should each have an "Up:" pointing at
the superior. It is often useful to arrange all or most of the
subnodes in a sequence of Next's/Previous's so that someone who
wants to see them all need not keep revisiting the Menu.
<P>
The Info Directory is simply the menu of the node "(dir)Top"--that
is, node Top in file .../info/dir. You can put new entries in that
menu just like any other menu. The Info Directory is NOT the same as
the file directory called "info". It happens that many of Info's
files live on that file directory, but they don't have to; and files
on that directory are not automatically listed in the Info Directory
node.
<P>
Also, although the Info node graph is claimed to be a "hierarchy",
in fact it can be ANY directed graph. Shared structures and pointer
cycles are perfectly possible, and can be used if they are
appropriate to the meaning to be expressed. There is no need for all
the nodes in a file to form a connected structure. In fact, this
file has two connected components. You are in one of them, which is
under the node Top; the other contains the node Help which the "h"
command goes to. In fact, since there is no garbage collector,
nothing terrible happens if a substructure is not pointed to, but
such a substructure will be rather useless since nobody will ever
find out that it exists.
<P>
<H3><A NAME="SEC24" HREF="info_toc.html#SEC24">Cross References</A></H3>
<P>
A cross reference can be placed anywhere in the text, unlike a menu
item which must go at the front of a line. A cross reference looks
like a menu item except that it has "*note" instead of "*". It CANNOT
be terminated by a ")", because ")"'s are so often part of node names.
If you wish to enclose a cross reference in parentheses, terminate it
with a period first. Here are two examples of cross references pointers:
<P>
*Note details: Menus. (See *note 3: Internals.)
<P>
<H3><A NAME="SEC25" HREF="info_toc.html#SEC25">Tag Tables</A></H3>
<P>
You can speed up the access to nodes of a large Info file by giving
it a tag table. Unlike the tag table for a program, the tag table for
an Info file lives inside the file itself and will automatically be
used whenever Info reads in the file.
<P>
To make a tag table, go to a node in the file using Info and type
M-x Info-tagify. Then you must use C-x C-s to save the file.
<P>
Once the Info file has a tag table, you must make certain it is up
to date. If, as a result of deletion of text, any node moves back
more than a thousand characters in the file from the position
recorded in the tag table, Info will no longer be able to find that
node. To update the tag table, use the Info-tagify command again.
<P>
An Info file tag table appears at the end of the file and looks like
this:
<P>
<PRE>
C-_C-l
Tag Table:
File: info, Node: Cross-refsC-?21419
File: info, Node: TagsC-?22145
C-_
End Tag Table
</PRE>
<P>
Note that it contains one line per node, and this line contains
the beginning of the node's header (ending just after the node name),
a rubout character, and the character position in the file of the
beginning of the node.
<P>
<H3><A NAME="SEC26" HREF="info_toc.html#SEC26">Checking an Info File</A></H3>
<P>
When creating an Info file, it is easy to forget the name of a node
when you are making a pointer to it from another node. If you put in
the wrong name for a node, this will not be detected until someone
tries to go through the pointer using Info. Verification of the Info
file is an automatic process which checks all pointers to nodes and
reports any pointers which are invalid. Every Next, Previous, and Up
is checked, as is every menu item and every cross reference. In addition,
any Next which doesn't have a Previous pointing back is reported.
Only pointers within the file are checked, because checking pointers
to other files would be terribly slow. But those are usually few.
<P>
To check an Info file, do M-x Info-validate while looking at any
node of the file with Info.
<P>
<HR size=1 noshade width=600 align=left>
<P>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT=""><A HREF="info_1.html"><IMG SRC="gifs/prev.gif" ALT="Previous Chapter" BORDER="0"></A>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT=""><A HREF="info_3.html"><IMG SRC="gifs/next.gif" ALT="Next Chapter" BORDER="0"></A>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT=""><A HREF="info_toc.html"><IMG SRC="gifs/up.gif" ALT="Table of Contents" BORDER="0"></A>
<IMG SRC="gifs/empty.gif" WIDTH=25 HEIGHT=25 ALT="">
<HR size=1 noshade width=600 align=left>
</TD>
</TR>
</TABLE>
</BODY></HTML>
|