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