17280e266d7423ee4d3d723a15f809e19924f64d
[chise/xemacs-chise.git.1] / info / info.info
1 This is ../info/info.info, produced by makeinfo version 4.0 from
2 info.texi.
3
4 INFO-DIR-SECTION Texinfo documentation system
5 START-INFO-DIR-ENTRY
6 * Info: (info).                 Documentation browsing system.
7 END-INFO-DIR-ENTRY
8
9    This file describes how to use Info, the on-line, menu-driven GNU
10 documentation system.
11
12    Copyright (C) 1989, 92, 96, 97, 98, 99 Free Software Foundation, Inc.
13
14    Permission is granted to make and distribute verbatim copies of this
15 manual provided the copyright notice and this permission notice are
16 preserved on all copies.
17
18    Permission is granted to copy and distribute modified versions of
19 this manual under the conditions for verbatim copying, provided that
20 the entire resulting derived work is distributed under the terms of a
21 permission notice identical to this one.
22
23    Permission is granted to copy and distribute translations of this
24 manual into another language, under the above conditions for modified
25 versions, except that this permission notice may be stated in a
26 translation approved by the Free Software Foundation.
27
28 \1f
29 File: info.info,  Node: Top,  Next: Getting Started,  Up: (dir)
30
31 Info: An Introduction
32 *********************
33
34    Info is a program for reading documentation, which you are using now.
35
36    To learn how to use Info, type the command `h'.  It brings you to a
37 programmed instruction sequence.
38
39 * Menu:
40
41 * Getting Started::             Getting started using an Info reader.
42 * Advanced Info::               Advanced commands within Info.
43 * Creating an Info File::       How to make your own Info file.
44
45 \1f
46 File: info.info,  Node: Getting Started,  Next: Advanced Info,  Prev: Top,  Up: Top
47
48 Getting Started
49 ***************
50
51    This first part of the Info manual describes how to get around inside
52 of Info.  The second part of the manual describes various advanced Info
53 commands, and how to write an Info as distinct from a Texinfo file.
54 The third part is about how to generate Info files from Texinfo files.
55
56 * Menu:
57
58 * Help-Small-Screen::   Starting Info on a Small Screen
59 * Help::                How to use Info
60 * Help-P::              Returning to the Previous node
61 * Help-^L::             The Space, Rubout, B and ^L commands.
62 * Help-M::              Menus
63 * Help-Adv::            Some advanced Info commands
64 * Help-Q::              Quitting Info
65
66 \1f
67 File: info.info,  Node: Help-Small-Screen,  Next: Help,  Up: Getting Started
68
69 Starting Info on a Small Screen
70 ===============================
71
72    Since your terminal has an unusually small number of lines on its
73 screen, it is necessary to give you special advice at the beginning.
74
75    If you see the text `--All----' at near the bottom right corner of
76 the screen, it means the entire text you are looking at fits on the
77 screen.  If you see `--Top----' instead, it means that there is more
78 text below that does not fit.  To move forward through the text and see
79 another screen full, press the Space bar, <SPC>.  To move back up,
80 press the key labeled `Backspace' or <Delete>.
81
82    Here are 40 lines of junk, so you can try Spaces and Deletes and see
83 what they do.  At the end are instructions of what you should do next.
84
85    This is line 17
86 This is line 18
87 This is line 19
88 This is line 20
89 This is line 21
90 This is line 22
91 This is line 23
92 This is line 24
93 This is line 25
94 This is line 26
95 This is line 27
96 This is line 28
97 This is line 29
98 This is line 30
99 This is line 31
100 This is line 32
101 This is line 33
102 This is line 34
103 This is line 35
104 This is line 36
105 This is line 37
106 This is line 38
107 This is line 39
108 This is line 40
109 This is line 41
110 This is line 42
111 This is line 43
112 This is line 44
113 This is line 45
114 This is line 46
115 This is line 47
116 This is line 48
117 This is line 49
118 This is line 50
119 This is line 51
120 This is line 52
121 This is line 53
122 This is line 54
123 This is line 55
124 This is line 56
125 If you have managed to get here, go back to the beginning with Delete,
126 and come back here again, then you understand Space and Delete.  So now
127 type an `n' --just one character; don't type the quotes and don't type
128 the Return key afterward-- to get to the normal start of the course.
129
130 \1f
131 File: info.info,  Node: Help,  Next: Help-P,  Prev: Help-Small-Screen,  Up: Getting Started
132
133 How to use Info
134 ===============
135
136    You are talking to the program Info, for reading documentation.
137
138    Right now you are looking at one "Node" of Information.  A node
139 contains text describing a specific topic at a specific level of
140 detail.  This node's topic is "how to use Info".
141
142    The top line of a node is its "header".  This node's header (look at
143 it now) says that it is the node named `Help' in the file `info'.  It
144 says that the `Next' node after this one is the node called `Help-P'.
145 An advanced Info command lets you go to any node whose name you know.
146
147    Besides a `Next', a node can have a `Previous' or an `Up'.  This
148 node has a `Previous' but no `Up', as you can see.
149
150    Now it is time to move on to the `Next' node, named `Help-P'.
151
152    >> Type `n' to move there.  Type just one character;    do not type
153 the quotes and do not type a <RET> afterward.
154
155    `>>' in the margin means it is really time to try a command.
156
157 \1f
158 File: info.info,  Node: Help-P,  Next: Help-^L,  Prev: Help,  Up: Getting Started
159
160 Returning to the Previous node
161 ==============================
162
163    This node is called `Help-P'.  The `Previous' node, as you see, is
164 `Help', which is the one you just came from using the `n' command.
165 Another `n' command now would take you to the next node, `Help-^L'.
166
167    >> But do not do that yet.  First, try the `p' command, which takes
168  you to the `Previous' node.  When you get there, you can do an    `n'
169 again to return here.
170
171    This all probably seems insultingly simple so far, but _do not_ be
172 led into skimming.  Things will get more complicated soon.  Also, do
173 not try a new command until you are told it is time to.  Otherwise, you
174 may make Info skip past an important warning that was coming up.
175
176    >> Now do an `n' to get to the node `Help-^L' and learn more.
177
178 \1f
179 File: info.info,  Node: Help-^L,  Next: Help-M,  Prev: Help-P,  Up: Getting Started
180
181 The Space, Delete, B and ^L commands.
182 =====================================
183
184    This node's header tells you that you are now at node `Help-^L', and
185 that `p' would get you back to `Help-P'.  The node's title is
186 underlined; it says what the node is about (most nodes have titles).
187
188    This is a big node and it does not all fit on your display screen.
189 You can tell that there is more that is not visible because you can see
190 the string `--Top-----' rather than `--All----' near the bottom right
191 corner of the screen.
192
193    The Space, Delete and `B' commands exist to allow you to "move
194 around" in a node that does not all fit on the screen at once.  Space
195 moves forward, to show what was below the bottom of the screen.  Delete
196 moves backward, to show what was above the top of the screen (there is
197 not anything above the top until you have typed some spaces).
198
199    >> Now try typing a Space (afterward, type a Delete to return here).
200
201    When you type the space, the two lines that were at the bottom of
202 the screen appear at the top, followed by more lines.  Delete takes the
203 two lines from the top and moves them to the bottom, _usually_, but if
204 there are not a full screen's worth of lines above them they may not
205 make it all the way to the bottom.
206
207    If you type Space when there is no more to see, it rings the bell
208 and otherwise does nothing.  The same goes for Delete when the header
209 of the node is visible.
210
211    If your screen is ever garbaged, you can tell Info to print it out
212 again by typing `C-l' (`Control-L', that is--hold down "Control" and
213 type an <L> or `l').
214
215    >> Type `C-l' now.
216
217    To move back to the beginning of the node you are on, you can type a
218 lot of Deletes.  You can also type simply `b' for beginning.  >> Try
219 that now.  (We have put in enough verbiage to push this past the first
220 screenful, but screens are so big nowadays that perhaps it isn't
221 enough.  You may need to shrink your Emacs or Info window.)  Then come
222 back, with Spaces.
223
224    If your screen is very tall, all of this node might fit at once.  In
225 that case, "b" won't do anything.  Sorry; what can we do?
226
227    You have just learned a considerable number of commands.  If you
228 want to use one but have trouble remembering which, you should type a
229 <?> which prints out a brief list of commands.  When you are finished
230 looking at the list, make it go away by pressing <SPC> repeatedly.
231
232    >> Type a <?> now.  Press <SPC> to see consecutive screenfuls of >>
233 the list until finished.
234
235    From now on, you will encounter large nodes without warning, and
236 will be expected to know how to use Space and Delete to move around in
237 them without being told.  Since not all terminals have the same size
238 screen, it would be impossible to warn you anyway.
239
240    >> Now type `n' to see the description of the `m' command.
241
242 \1f
243 File: info.info,  Node: Help-M,  Next: Help-Adv,  Prev: Help-^L,  Up: Getting Started
244
245 Menus
246 =====
247
248    Menus and the `m' command
249
250    With only the `n' and `p' commands for moving between nodes, nodes
251 are restricted to a linear sequence.  Menus allow a branching
252 structure.  A menu is a list of other nodes you can move to.  It is
253 actually just part of the text of the node formatted specially so that
254 Info can interpret it.  The beginning of a menu is always identified by
255 a line which starts with `* Menu:'.  A node contains a menu if and only
256 if it has a line in it which starts that way.  The only menu you can
257 use at any moment is the one in the node you are in.  To use a menu in
258 any other node, you must move to that node first.
259
260    After the start of the menu, each line that starts with a `*'
261 identifies one subtopic.  The line usually contains a brief name for
262 the subtopic (followed by a `:'), the name of the node that talks about
263 that subtopic, and optionally some further description of the subtopic.
264 Lines in the menu that do not start with a `*' have no special
265 meaning--they are only for the human reader's benefit and do not define
266 additional subtopics.  Here is an example:
267
268      * Foo:  FOO's Node      This tells about FOO
269
270    The subtopic name is Foo, and the node describing it is `FOO's Node'.
271 The rest of the line is just for the reader's Information.  [[ But this
272 line is not a real menu item, simply because there is no line above it
273 which starts with `* Menu:'.]]
274
275    When you use a menu to go to another node (in a way that will be
276 described soon), what you specify is the subtopic name, the first thing
277 in the menu line.  Info uses it to find the menu line, extracts the
278 node name from it, and goes to that node.  The reason that there is
279 both a subtopic name and a node name is that the node name must be
280 meaningful to the computer and may therefore have to be ugly looking.
281 The subtopic name can be chosen just to be convenient for the user to
282 specify.  Often the node name is convenient for the user to specify and
283 so both it and the subtopic name are the same.  There is an
284 abbreviation for this:
285
286      * Foo::   This tells about FOO
287
288 This means that the subtopic name and node name are the same; they are
289 both `Foo'.
290
291    >> Now use Spaces to find the menu in this node, then come back to
292 the front with a `b' and some Spaces.  As you see, a menu is
293 actually visible in its node.  If you cannot find a menu in a node
294 by looking at it, then the node does not have a menu and the    `m'
295 command is not available.
296
297    The command to go to one of the subnodes is `m'--but _do not do it
298 yet!_  Before you use `m', you must understand the difference between
299 commands and arguments.  So far, you have learned several commands that
300 do not need arguments.  When you type one, Info processes it and is
301 instantly ready for another command.  The `m' command is different: it
302 is incomplete without the "name of the subtopic".  Once you have typed
303 `m', Info tries to read the subtopic name.
304
305    Now look for the line containing many dashes near the bottom of the
306 screen.  There is one more line beneath that one, but usually it is
307 blank.  If it is empty, Info is ready for a command, such as `n' or `b'
308 or Space or `m'.  If that line contains text ending in a colon, it
309 means Info is trying to read the "argument" to a command.  At such
310 times, commands do not work, because Info tries to use them as the
311 argument.  You must either type the argument and finish the command you
312 started, or type `Control-g' to cancel the command.  When you have done
313 one of those things, the line becomes blank again.
314
315    The command to go to a subnode via a menu is `m'.  After you type
316 the `m', the line at the bottom of the screen says `Menu item: '.  You
317 must then type the name of the subtopic you want, and end it with a
318 <RET>.
319
320    You can abbreviate the subtopic name.  If the abbreviation is not
321 unique, the first matching subtopic is chosen.  Some menus put the
322 shortest possible abbreviation for each subtopic name in capital
323 letters, so you can see how much you need to type.  It does not matter
324 whether you use upper case or lower case when you type the subtopic.
325 You should not put any spaces at the end, or inside of the item name,
326 except for one space where a space appears in the item in the menu.
327
328    You can also use the "completion" feature to help enter the subtopic
329 name.  If you type the Tab key after entering part of a name, it will
330 magically fill in more of the name--as much as follows uniquely from
331 what you have entered.
332
333    If you move the cursor to one of the menu subtopic lines, then you do
334 not need to type the argument: you just type a Return, and it stands for
335 the subtopic of the line you are on.
336
337    Here is a menu to give you a chance to practice.  This menu gives you
338 three ways of going to one place, Help-FOO:
339
340 * Menu:
341
342 * Foo:  Help-FOO.       A node you can visit for fun.
343 * Bar:  Help-FOO.       Strange!  two ways to get to the same place.
344 * Help-FOO::            And yet another!
345
346    >>  Now type just an `m' and see what happens:
347
348    Now you are "inside" an `m' command.  Commands cannot be used now;
349 the next thing you will type must be the name of a subtopic.
350
351    You can change your mind about doing the `m' by typing Control-g.
352
353    >> Try that now;  notice the bottom line clear.
354
355    >> Then type another `m'.
356
357    >> Now type `BAR' item name.  Do not type Return yet.
358
359    While you are typing the item name, you can use the Delete key to
360 cancel one character at a time if you make a mistake.
361
362    >> Type one to cancel the `R'.  You could type another `R' to
363 replace it.  You do not have to, since `BA' is a valid abbreviation.
364
365    >> Now you are ready to go.  Type a <RET>.
366
367    After visiting Help-FOO, you should return here.
368
369    >> Type `n' to see more commands.
370
371    Here is another way to get to  Help-FOO, a menu.  You can ignore this
372 if you want, or else try it (but then please come back to here).
373
374 * Menu:
375
376 * Help-FOO::
377
378 \1f
379 File: info.info,  Node: Help-FOO,  Up: Help-M
380
381 The `u' command
382 ---------------
383
384    Congratulations!  This is the node `Help-FOO'.  Unlike the other
385 nodes you have seen, this one has an `Up': `Help-M', the node you just
386 came from via the `m' command.  This is the usual convention--the nodes
387 you reach from a menu have `Up' nodes that lead back to the menu.
388 Menus move Down in the tree, and `Up' moves Up.  `Previous', on the
389 other hand, is usually used to "stay on the same level but go backwards"
390
391    You can go back to the node `Help-M' by typing the command `u' for
392 "Up".  That puts you at the _front_ of the node--to get back to where
393 you were reading you have to type some <SPC>s.
394
395    >> Now type `u' to move back up to `Help-M'.
396
397 \1f
398 File: info.info,  Node: Help-Adv,  Next: Help-Q,  Prev: Help-M,  Up: Getting Started
399
400 Some advanced Info commands
401 ===========================
402
403    The course is almost over, so please stick with it to the end.
404
405    If you have been moving around to different nodes and wish to
406 retrace your steps, the `l' command (`l' for "last") will do that, one
407 node-step at a time.  As you move from node to node, Info records the
408 nodes where you have been in a special history list.  The `l' command
409 revisits nodes in the history list; each successive `l' command moves
410 one step back through the history.
411
412    If you have been following directions, ad `l' command now will get
413 you back to `Help-M'.  Another `l' command would undo the `u' and get
414 you back to `Help-FOO'.  Another `l' would undo the `m' and get you
415 back to `Help-M'.
416
417    >> Try typing three `l''s, pausing in between to see what each
418 `l' does.
419
420    Then follow directions again and you will end up back here.
421
422    Note the difference between `l' and `p': `l' moves to where _you_
423 last were, whereas `p' always moves to the node which the header says
424 is the `Previous' node (from this node, to `Help-M').
425
426    The `d' command gets you instantly to the Directory node.  This
427 node, which is the first one you saw when you entered Info, has a menu
428 which leads (directly, or indirectly through other menus), to all the
429 nodes that exist.
430
431    >> Try doing a `d', then do an `l' to return here (yes,    _do_
432 return).
433
434    Sometimes, in Info documentation, you will see a cross reference.
435 Cross references look like this: *Note Cross: Help-Cross.  That is a
436 real, live cross reference which is named `Cross' and points at the
437 node named `Help-Cross'.
438
439    If you wish to follow a cross reference, you must use the `f'
440 command.  The `f' must be followed by the cross reference name (in this
441 case, `Cross').  While you enter the name, you can use the Delete key
442 to edit your input.  If you change your mind about following any
443 reference, you can use `Control-g' to cancel the command.
444
445    Completion is available in the `f' command; you can complete among
446 all the cross reference names in the current node by typing a Tab.
447
448    >> Type `f', followed by `Cross', and a <RET>.
449
450    To get a list of all the cross references in the current node, you
451 can type `?' after an `f'.  The `f' continues to await a cross
452 reference name even after printing the list, so if you don't actually
453 want to follow a reference, you should type a `Control-g' to cancel the
454 `f'.
455
456    >> Type "f?" to get a list of the cross references in this node.
457 Then    type a `Control-g' and see how the `f' gives up.
458
459    >> Now type `n' to see the last node of the course.
460
461 \1f
462 File: info.info,  Node: Help-Cross,  Up: Help-Adv
463
464 The node reached by the cross reference in Info
465 -----------------------------------------------
466
467    This is the node reached by the cross reference named `Cross'.
468
469    While this node is specifically intended to be reached by a cross
470 reference, most cross references lead to nodes that "belong" someplace
471 else far away in the structure of Info.  So you cannot expect the
472 footnote to have a `Next', `Previous' or `Up' pointing back to where
473 you came from.  In general, the `l' (el) command is the only way to get
474 back there.
475
476    >> Type `l' to return to the node where the cross reference was.
477
478 \1f
479 File: info.info,  Node: Help-Q,  Prev: Help-Adv,  Up: Getting Started
480
481 Quitting Info
482 =============
483
484    To get out of Info, back to what you were doing before, type `q' for
485 "Quit".
486
487    This is the end of the course on using Info.  There are some other
488 commands that are meant for experienced users; they are useful, and you
489 can find them by looking in the directory node for documentation on
490 Info.  Finding them will be a good exercise in using Info in the usual
491 manner.
492
493    >> Type `d' to go to the Info directory node; then type    `mInfo'
494 and Return, to get to the node about Info and    see what other help is
495 available.
496
497 \1f
498 File: info.info,  Node: Advanced Info,  Next: Creating an Info File,  Prev: Getting Started,  Up: Top
499
500 Info for Experts
501 ****************
502
503    This chapter describes various advanced Info commands, and how to
504 write an Info as distinct from a Texinfo file.  (However, in most
505 cases, writing a Texinfo file is better, since you can use it _both_ to
506 generate an Info file and to make a printed manual.  *Note Overview of
507 Texinfo: (texinfo)Top.)
508
509 * Menu:
510
511 * Expert::               Advanced Info commands: g, s, e, and 1 - 5.
512 * Add::                  Describes how to add new nodes to the hierarchy.
513                            Also tells what nodes look like.
514 * Menus::                How to add to or create menus in Info nodes.
515 * Cross-refs::           How to add cross-references to Info nodes.
516 * Tags::                 How to make tag tables for Info files.
517 * Checking::             Checking an Info File
518 * Emacs Info Variables:: Variables modifying the behavior of Emacs Info.
519
520 \1f
521 File: info.info,  Node: Expert,  Next: Add,  Up: Advanced Info
522
523 Advanced Info Commands
524 ======================
525
526    `g', `s', `1', - `9', and `e'
527
528    If you know a node's name, you can go there by typing `g', the name,
529 and <RET>.  Thus, `gTop<RET>' would go to the node called `Top' in this
530 file (its directory node).  `gExpert<RET>' would come back here.
531
532    Unlike `m', `g' does not allow the use of abbreviations.
533
534    To go to a node in another file, you can include the filename in the
535 node name by putting it at the front, in parentheses.  Thus,
536 `g(dir)Top<RET>' would go to the Info Directory node, which is node
537 `Top' in the file `dir'.
538
539    The node name `*' specifies the whole file.  So you can look at all
540 of the current file by typing `g*<RET>' or all of any other file with
541 `g(FILENAME)<RET>'.
542
543    The `s' command allows you to search a whole file for a string.  It
544 switches to the next node if and when that is necessary.  You type `s'
545 followed by the string to search for, terminated by <RET>.  To search
546 for the same string again, just `s' followed by <RET> will do.  The
547 file's nodes are scanned in the order they are in in the file, which
548 has no necessary relationship to the order that they may be in in the
549 tree structure of menus and `next' pointers.  But normally the two
550 orders are not very different.  In any case, you can always do a `b' to
551 find out what node you have reached, if the header is not visible (this
552 can happen, because `s' puts your cursor at the occurrence of the
553 string, not at the beginning of the node).
554
555    If you grudge the system each character of type-in it requires, you
556 might like to use the commands `1', `2', `3', `4', ...  `9'.  They are
557 short for the `m' command together with an argument.  `1' goes through
558 the first item in the current node's menu; `2' goes through the second
559 item, etc.
560
561    If your display supports multiple fonts, and you are using Emacs'
562 Info mode to read Info files, the `*' for the fifth menu item is
563 underlined, and so is the `*' for the ninth item; these underlines make
564 it easy to see at a glance which number to use for an item.
565
566    On ordinary terminals, you won't have underlining.  If you need to
567 actually count items, it is better to use `m' instead, and specify the
568 name.
569
570    The Info command `e' changes from Info mode to an ordinary Emacs
571 editing mode, so that you can edit the text of the current node.  Type
572 `C-c C-c' to switch back to Info.  The `e' command is allowed only if
573 the variable `Info-enable-edit' is non-`nil'.
574
575 \1f
576 File: info.info,  Node: Add,  Next: Menus,  Prev: Expert,  Up: Advanced Info
577
578 Adding a new node to Info
579 =========================
580
581    To add a new topic to the list in the Info directory, you must:
582   1. Create some nodes, in some file, to document that topic.
583
584   2. Put that topic in the menu in the directory.  *Note Menu: Menus.
585
586    Usually, the way to create the nodes is with Texinfo (*note Overview
587 of Texinfo: (texinfo)Top.); this has the advantage that you can also
588 make a printed manual from them.  However, if you want to edit an Info
589 file, here is how.
590
591    The new node can live in an existing documentation file, or in a new
592 one.  It must have a <^_> character before it (invisible to the user;
593 this node has one but you cannot see it), and it ends with either a
594 <^_>, a <^L>, or the end of file.  Note: If you put in a <^L> to end a
595 new node, be sure that there is a <^_> after it to start the next one,
596 since <^L> cannot _start_ a node.  Also, a nicer way to make a node
597 boundary be a page boundary as well is to put a <^L> _right after_ the
598 <^_>.
599
600    The <^_> starting a node must be followed by a newline or a <^L>
601 newline, after which comes the node's header line.  The header line
602 must give the node's name (by which Info finds it), and state the names
603 of the `Next', `Previous', and `Up' nodes (if there are any).  As you
604 can see, this node's `Up' node is the node `Top', which points at all
605 the documentation for Info.  The `Next' node is `Menus'.
606
607    The keywords "Node", "Previous", "Up", and "Next", may appear in any
608 order, anywhere in the header line, but the recommended order is the
609 one in this sentence.  Each keyword must be followed by a colon, spaces
610 and tabs, and then the appropriate name.  The name may be terminated
611 with a tab, a comma, or a newline.  A space does not end it; node names
612 may contain spaces.  The case of letters in the names is insignificant.
613
614    A node name has two forms.  A node in the current file is named by
615 what appears after the `Node: ' in that node's first line.  For
616 example, this node's name is `Add'.  A node in another file is named by
617 `(FILENAME)NODE-WITHIN-FILE', as in `(info)Add' for this node.  If the
618 file name starts with "./", then it is relative to the current
619 directory; otherwise, it is relative starting from the standard Info
620 file directory of your site.  The name `(FILENAME)Top' can be
621 abbreviated to just `(FILENAME)'.  By convention, the name `Top' is
622 used for the "highest" node in any single file--the node whose `Up'
623 points out of the file.  The Directory node is `(dir)'.  The `Top' node
624 of a document file listed in the Directory should have an `Up: (dir)'
625 in it.
626
627    The node name `*' is special: it refers to the entire file.  Thus,
628 `g*' shows you the whole current file.  The use of the node `*' is to
629 make it possible to make old-fashioned, unstructured files into nodes
630 of the tree.
631
632    The `Node:' name, in which a node states its own name, must not
633 contain a filename, since Info when searching for a node does not expect
634 one to be there.  The `Next', `Previous' and `Up' names may contain
635 them.  In this node, since the `Up' node is in the same file, it was
636 not necessary to use one.
637
638    Note that the nodes in this file have a file name in the header
639 line.  The file names are ignored by Info, but they serve as comments
640 to help identify the node for the user.
641
642 \1f
643 File: info.info,  Node: Menus,  Next: Cross-refs,  Prev: Add,  Up: Advanced Info
644
645 How to Create Menus
646 ===================
647
648    Any node in the Info hierarchy may have a "menu"--a list of subnodes.
649 The `m' command searches the current node's menu for the topic which it
650 reads from the terminal.
651
652    A menu begins with a line starting with `* Menu:'.  The rest of the
653 line is a comment.  After the starting line, every line that begins
654 with a `* ' lists a single topic.  The name of the topic-the argument
655 that the user must give to the `m' command to select this topic--comes
656 right after the star and space, and is followed by a colon, spaces and
657 tabs, and the name of the node which discusses that topic.  The node
658 name, like node names following `Next', `Previous' and `Up', may be
659 terminated with a tab, comma, or newline; it may also be terminated
660 with a period.
661
662    If the node name and topic name are the same, then rather than
663 giving the name twice, the abbreviation `* NAME::' may be used (and
664 should be used, whenever possible, as it reduces the visual clutter in
665 the menu).
666
667    It is considerate to choose the topic names so that they differ from
668 each other very near the beginning--this allows the user to type short
669 abbreviations.  In a long menu, it is a good idea to capitalize the
670 beginning of each item name which is the minimum acceptable
671 abbreviation for it (a long menu is more than 5 or so entries).
672
673    The nodes listed in a node's menu are called its "subnodes", and it
674 is their "superior".  They should each have an `Up:' pointing at the
675 superior.  It is often useful to arrange all or most of the subnodes in
676 a sequence of `Next' and `Previous' pointers so that someone who wants
677 to see them all need not keep revisiting the Menu.
678
679    The Info Directory is simply the menu of the node `(dir)Top'--that
680 is, node `Top' in file `.../info/dir'.  You can put new entries in that
681 menu just like any other menu.  The Info Directory is _not_ the same as
682 the file directory called `info'.  It happens that many of Info's files
683 live on that file directory, but they do not have to; and files on that
684 directory are not automatically listed in the Info Directory node.
685
686    Also, although the Info node graph is claimed to be a "hierarchy",
687 in fact it can be _any_ directed graph.  Shared structures and pointer
688 cycles are perfectly possible, and can be used if they are appropriate
689 to the meaning to be expressed.  There is no need for all the nodes in
690 a file to form a connected structure.  In fact, this file has two
691 connected components.  You are in one of them, which is under the node
692 `Top'; the other contains the node `Help' which the `h' command goes
693 to.  In fact, since there is no garbage collector, nothing terrible
694 happens if a substructure is not pointed to, but such a substructure is
695 rather useless since nobody can ever find out that it exists.
696
697 \1f
698 File: info.info,  Node: Cross-refs,  Next: Tags,  Prev: Menus,  Up: Advanced Info
699
700 Creating Cross References
701 =========================
702
703    A cross reference can be placed anywhere in the text, unlike a menu
704 item which must go at the front of a line.  A cross reference looks
705 like a menu item except that it has `*note' instead of `*'.  It
706 _cannot_ be terminated by a `)', because `)''s are so often part of
707 node names.  If you wish to enclose a cross reference in parentheses,
708 terminate it with a period first.  Here are two examples of cross
709 references pointers:
710
711      *Note details: commands.  (See *note 3: Full Proof.)
712
713    They are just examples.  The places they "lead to" do not really
714 exist!
715
716 \1f
717 File: info.info,  Node: Tags,  Next: Checking,  Prev: Cross-refs,  Up: Advanced Info
718
719 Tag Tables for Info Files
720 =========================
721
722    You can speed up the access to nodes of a large Info file by giving
723 it a tag table.  Unlike the tag table for a program, the tag table for
724 an Info file lives inside the file itself and is used automatically
725 whenever Info reads in the file.
726
727    To make a tag table, go to a node in the file using Emacs Info mode
728 and type `M-x Info-tagify'.  Then you must use `C-x C-s' to save the
729 file.
730
731    Once the Info file has a tag table, you must make certain it is up
732 to date.  If, as a result of deletion of text, any node moves back more
733 than a thousand characters in the file from the position recorded in
734 the tag table, Info will no longer be able to find that node.  To
735 update the tag table, use the `Info-tagify' command again.
736
737    An Info file tag table appears at the end of the file and looks like
738 this:
739
740      ^_\f
741      Tag Table:
742      File: info, Node: Cross-refs^?21419
743      File: info,  Node: Tags^?22145
744      ^_
745      End Tag Table
746
747 Note that it contains one line per node, and this line contains the
748 beginning of the node's header (ending just after the node name), a
749 Delete character, and the character position in the file of the
750 beginning of the node.
751
752 \1f
753 File: info.info,  Node: Checking,  Next: Emacs Info Variables,  Prev: Tags,  Up: Advanced Info
754
755 Checking an Info File
756 =====================
757
758    When creating an Info file, it is easy to forget the name of a node
759 when you are making a pointer to it from another node.  If you put in
760 the wrong name for a node, this is not detected until someone tries to
761 go through the pointer using Info.  Verification of the Info file is an
762 automatic process which checks all pointers to nodes and reports any
763 pointers which are invalid.  Every `Next', `Previous', and `Up' is
764 checked, as is every menu item and every cross reference.  In addition,
765 any `Next' which does not have a `Previous' pointing back is reported.
766 Only pointers within the file are checked, because checking pointers to
767 other files would be terribly slow.  But those are usually few.
768
769    To check an Info file, do `M-x Info-validate' while looking at any
770 node of the file with Emacs Info mode.
771
772 \1f
773 File: info.info,  Node: Emacs Info Variables,  Prev: Checking,  Up: Advanced Info
774
775 Emacs Info-mode Variables
776 =========================
777
778    The following variables may modify the behaviour of Info-mode in
779 Emacs; you may wish to set one or several of these variables
780 interactively, or in your `~/.emacs' init file.  *Note Examining and
781 Setting Variables: (emacs)Examining.
782
783 `Info-enable-edit'
784      Set to `nil', disables the `e' (`Info-edit') command.  A non-`nil'
785      value enables it.  *Note Edit: Add.
786
787 `Info-enable-active-nodes'
788      When set to a non-`nil' value, allows Info to execute Lisp code
789      associated with nodes.  The Lisp code is executed when the node is
790      selected.
791
792 `Info-directory-list'
793      The list of directories to search for Info files.  Each element is
794      a string (directory name) or `nil' (try default directory).
795
796 `Info-directory'
797      The standard directory for Info documentation files.  Only used
798      when the function `Info-directory' is called.
799
800 \1f
801 File: info.info,  Node: Creating an Info File,  Prev: Advanced Info,  Up: Top
802
803 Creating an Info File
804 *********************
805
806    *Note Overview of Texinfo: (texinfo)Top, to learn how to write a
807 Texinfo file.
808
809    *Note Creating an Info File: (texinfo)Creating an Info File, to
810 learn how to create an Info file from a Texinfo file.
811
812    *Note Installing an Info File: (texinfo)Installing an Info File, to
813 learn how to install an Info file after you have created one.
814
815
816 \1f
817 Tag Table:
818 Node: Top\7f1067
819 Node: Getting Started\7f1565
820 Node: Help-Small-Screen\7f2313
821 Node: Help\7f4062
822 Node: Help-P\7f5092
823 Node: Help-^L\7f5954
824 Node: Help-M\7f8832
825 Node: Help-FOO\7f14812
826 Node: Help-Adv\7f15550
827 Node: Help-Cross\7f18225
828 Node: Help-Q\7f18871
829 Node: Advanced Info\7f19498
830 Node: Expert\7f20476
831 Node: Add\7f22990
832 Node: Menus\7f26350
833 Node: Cross-refs\7f29224
834 Node: Tags\7f29926
835 Node: Checking\7f31228
836 Node: Emacs Info Variables\7f32181
837 Node: Creating an Info File\7f33170
838 \1f
839 End Tag Table