annotate man/info.texi @ 34330:8b1375dbcbc6

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