1
@c This file is meant to be included in any arbitrary piece of
2
@c documentation that wishes to describe the info program. Some day
3
@c info-stnd.texi should probably use this file instead of duplicating
6
@c This file documents the use of the standalone GNU Info program,
7
@c versions 2.7 and later.
16
@heading What is Info?
18
This text documents the use of the GNU Info program, version
21
@dfn{Info} is a program which is used to view info files on an ASCII
22
terminal. @dfn{info files} are the result of processing texinfo files
23
with the program @code{makeinfo} or with the Emacs command @code{M-x
24
texinfo-format-buffer}. Finally, @dfn{texinfo} is a documentation
25
language which allows a printed manual and online documentation (an info
26
file) to be produced from a single source file.
29
* Options:: Options you can pass on the command line.
30
* Cursor Commands:: Commands which move the cursor within a node.
31
* Scrolling Commands:: Commands for moving the node around in a window.
32
* Node Commands:: Commands for selecting a new node.
33
* Searching Commands:: Commands for searching an info file.
34
* Xref Commands:: Commands for selecting cross references.
35
* Window Commands:: Commands which manipulate multiple windows.
36
* Printing Nodes:: How to print out the contents of a node.
37
* Miscellaneous Commands:: A few commands that defy categories.
38
* Variables:: How to change the default behaviour of Info.
40
* Info for Sys Admins:: How to setup Info. Using special options.
43
* GNU Info Global Index:: Global index containing keystrokes, command names,
44
variable names, and general concepts.
49
@chapter Command Line Options
50
@cindex command line options
51
@cindex arguments, command line
53
GNU Info accepts several options to control the initial node being
54
viewed, and to specify which directories to search for info files. Here
55
is a template showing an invocation of GNU Info from the shell:
58
info [--@var{option-name} @var{option-value}] @var{menu-item}@dots{}
61
The following @var{option-names} are available when invoking Info from
65
@cindex directory path
66
@item --directory @var{directory-path}
67
@itemx -d @var{directory-path}
68
Adds @var{directory-path} to the list of directory paths searched when
69
Info needs to find a file. You may issue @code{--directory} multiple
70
times; once for each directory which contains info files.
71
Alternatively, you may specify a value for the environment variable
72
@code{INFOPATH}; if @code{--directory} is not given, the value of
73
@code{INFOPATH} is used. The value of @code{INFOPATH} is a colon
74
separated list of directory names. If you do not supply
75
@code{INFOPATH} or @code{--directory-path} a default path is used.
77
@item --file @var{filename}
78
@itemx -f @var{filename}
79
@cindex info file, selecting
80
Specifies a particular info file to visit. Instead of visiting the file
81
@code{dir}, Info will start with @code{(@var{filename})Top} as the first
84
@item --node @var{nodename}
85
@itemx -n @var{nodename}
86
@cindex node, selecting
87
Specifies a particular node to visit in the initial file loaded. This
88
is especially useful in conjunction with @code{--file}@footnote{Of
89
course, you can specify both the file and node in a @code{--node}
90
command; but don't forget to escape the open and close parentheses from
91
the shell as in: @code{info --node '(emacs)Buffers'}}. You may specify
92
@code{--node} multiple times; for an interactive Info, each
93
@var{nodename} is visited in its own window, for a non-interactive Info
94
(such as when @code{--output} is given) each @var{nodename} is processed
97
@item --output @var{filename}
98
@itemx -o @var{filename}
99
@cindex file, outputting to
100
@cindex outputting to a file
101
Specify @var{filename} as the name of a file to output to. Each node
102
that Info visits will be output to @var{filename} instead of
103
interactively viewed. A value of @code{-} for @var{filename} specifies
107
@cindex @code{--subnodes}, command line option
108
This option only has meaning when given in conjunction with
109
@code{--output}. It means to recursively output the nodes appearing in
110
the menus of each node being output. Menu items which resolve to
111
external info files are not output, and neither are menu items which are
112
members of an index. Each node is only output once.
116
Produces a relatively brief description of the available Info options.
119
@cindex version information
120
Prints the version information of Info and exits.
122
@item @var{menu-item}
123
@cindex menu, following
124
Remaining arguments to Info are treated as the names of menu items. The
125
first argument would be a menu item in the initial node visited, while
126
the second argument would be a menu item in the first argument's node.
127
You can easily move to the node of your choice by specifying the menu
128
names which describe the path to that node. For example,
134
first selects the menu item @samp{Emacs} in the node @samp{(dir)Top},
135
and then selects the menu item @samp{Buffers} in the node
140
@node Cursor Commands
141
@chapter Moving the Cursor
142
@cindex cursor, moving
143
Many people find that reading screens of text page by page is made
144
easier when one is able to indicate particular pieces of text with some
145
kind of pointing device. Since this is the case, GNU Info (both the
146
Emacs and standalone versions) have several commands which allow you to
147
move the cursor about the screen. The notation used in this manual to
148
describe keystrokes is identical to the notation used within the Emacs
149
manual, and the GNU Readline manual. @xref{Characters, , Character
150
Conventions, emacs, the GNU Emacs Manual}, if you are unfamilar with the
153
The following table lists the basic cursor movement commands in Info.
154
Each entry consists of the key sequence you should type to execute the
155
cursor movement, the @code{M-x}@footnote{@code{M-x} is also a command; it
156
invokes @code{execute-extended-command}. @xref{M-x, , Executing an
157
extended command, emacs, the GNU Emacs Manual}, for more detailed
158
information.} command name (displayed in parentheses), and a short
159
description of what the command does. All of the cursor motion commands
160
can take an @dfn{numeric} argument (@pxref{Miscellaneous Commands,
161
@code{universal-argument}}), to find out how to supply them. With a
162
numeric argument, the motion commands are simply executed that
163
many times; for example, a numeric argument of 4 given to
164
@code{next-line} causes the cursor to move down 4 lines. With a
165
negative numeric argument, the motion is reversed; an argument of -4
166
given to the @code{next-line} command would cause the cursor to move
170
@item @code{C-n} (@code{next-line})
173
Moves the cursor down to the next line.
175
@item @code{C-p} (@code{prev-line})
178
Move the cursor up to the previous line.
180
@item @code{C-a} (@code{beginning-of-line})
181
@kindex C-a, in Info windows
182
@findex beginning-of-line
183
Move the cursor to the start of the current line.
185
@item @code{C-e} (@code{end-of-line})
186
@kindex C-e, in Info windows
188
Moves the cursor to the end of the current line.
190
@item @code{C-f} (@code{forward-char})
191
@kindex C-f, in Info windows
193
Move the cursor forward a character.
195
@item @code{C-b} (@code{backward-char})
196
@kindex C-b, in Info windows
197
@findex backward-char
198
Move the cursor backward a character.
200
@item @code{M-f} (@code{forward-word})
201
@kindex M-f, in Info windows
203
Moves the cursor forward a word.
205
@item @code{M-b} (@code{backward-word})
206
@kindex M-b, in Info winows
207
@findex backward-word
208
Moves the cursor backward a word.
210
@item @code{M-<} (@code{beginning-of-node})
212
@kindex b, in Info winows
214
@findex beginning-of-node
215
Moves the cursor to the start of the current node.
217
@item @code{M->} (@code{end-of-node})
220
Moves the cursor to the end of the current node.
222
@item @code{M-r} (@code{move-to-window-line})
224
@findex move-to-window-line
225
Moves the cursor to a specific line of the window. Without a numeric
226
argument, @code{M-r} moves the cursor to the start of the line in the
227
center of the window. With a numeric argument of @var{n}, @code{M-r}
228
moves the cursor to the start of the @var{n}th line in the window.
231
@node Scrolling Commands
232
@chapter Moving Text Within a Window
235
Sometimes you are looking at a screenful of text, and only part of the
236
current paragraph you are reading is visible on the screen. The
237
commands detailed in this section are used to shift which part of the
238
current node is visible on the screen.
241
@item @code{SPC} (@code{scroll-forward})
243
@kindex SPC, in Info windows
245
@findex scroll-forward
246
Shift the text in this window up. That is, show more of the node which
247
is currently below the bottom of the window. With a numeric argument,
248
show that many more lines at the bottom of the window; a numeric
249
argument of 4 would shift all of the text in the window up 4 lines
250
(discarding the top 4 lines), and show you four new lines at the bottom
251
of the window. Without a numeric argument, @key{SPC} takes the bottom
252
two lines of the window and places them at the top of the window,
253
redisplaying almost a completely new screenful of lines.
255
@item @code{DEL} (@code{scroll-backward})
257
@kindex DEL, in Info windows
259
@findex scroll-backward
260
Shift the text in this window down. The inverse of
261
@code{scroll-forward}.
265
@cindex scrolling through node structure
266
The @code{scroll-forward} and @code{scroll-backward} commands can also
267
move forward and backward through the node structure of the file. If
268
you press @key{SPC} while viewing the end of a node, or @key{DEL} while
269
viewing the beginning of a node, what happens is controlled by the
270
variable @code{scroll-behaviour}. @xref{Variables,
271
@code{scroll-behaviour}}, for more information.
274
@item @code{C-l} (@code{redraw-display})
276
@findex redraw-display
277
Redraw the display from scratch, or shift the line containing the cursor
278
to a specified location. With no numeric argument, @samp{C-l} clears
279
the screen, and then redraws its entire contents. Given a numeric
280
argument of @var{n}, the line containing the cursor is shifted so that
281
it is on the @var{n}th line of the window.
283
@item @code{C-x w} (@code{toggle-wrap})
286
Toggles the state of line wrapping in the current window. Normally,
287
lines which are longer than the screen width @dfn{wrap}, i.e., they are
288
continued on the next line. Lines which wrap have a @samp{\} appearing
289
in the rightmost column of the screen. You can cause such lines to be
290
terminated at the rightmost column by changing the state of line
291
wrapping in the window with @code{C-x w}. When a line which needs more
292
space than one screen width to display is displayed, a @samp{$} appears
293
in the rightmost column of the screen, and the remainder of the line is
298
@chapter Selecting a New Node
299
@cindex nodes, selection of
301
This section details the numerous Info commands which select a new node
302
to view in the current window.
304
The most basic node commands are @samp{n}, @samp{p}, @samp{u}, and
307
When you are viewing a node, the top line of the node contains some Info
308
@dfn{pointers} which describe where the next, previous, and up nodes
309
are. Info uses this line to move about the node structure of the file
310
when you use the following commands:
313
@item @code{n} (@code{next-node})
316
Selects the `Next' node.
318
@item @code{p} (@code{prev-node})
321
Selects the `Prev' node.
323
@item @code{u} (@code{up-node})
326
Selects the `Up' node.
329
You can easily select a node that you have already viewed in this window
330
by using the @samp{l} command -- this name stands for "last", and
331
actually moves through the list of already visited nodes for this
332
window. @samp{l} with a negative numeric argument moves forward through
333
the history of nodes for this window, so you can quickly step between
334
two adjacent (in viewing history) nodes.
337
@item @code{l} (@code{history-node})
340
Selects the most recently selected node in this window.
343
Two additional commands make it easy to select the most commonly
344
selected nodes; they are @samp{t} and @samp{d}.
347
@item @code{t} (@code{top-node})
350
Selects the node @samp{Top} in the current info file.
352
@item @code{d} (@code{dir-node})
355
Selects the directory node (i.e., the node @samp{(dir)}).
358
Here are some other commands which immediately result in the selection
359
of a different node in the current window:
362
@item @code{<} (@code{first-node})
365
Selects the first node which appears in this file. This node is most
366
often @samp{Top}, but it doesn't have to be.
368
@item @code{>} (@code{last-node})
371
Selects the last node which appears in this file.
373
@item @code{]} (@code{global-next-node})
375
@findex global-next-node
376
Moves forward or down through node structure. If the node that you are
377
currently viewing has a @samp{Next} pointer, that node is selected.
378
Otherwise, if this node has a menu, the first menu item is selected. If
379
there is no @samp{Next} and no menu, the same process is tried with the
380
@samp{Up} node of this node.
382
@item @code{[} (@code{global-prev-node})
384
@findex global-prev-node
385
Moves backward or up through node structure. If the node that you are
386
currently viewing has a @samp{Prev} pointer, that node is selected.
387
Otherwise, if the node has an @samp{Up} pointer, that node is selected,
388
and if it has a menu, the last item in the menu is selected.
391
You can get the same behaviour as @code{global-next-node} and
392
@code{global-prev-node} while simply scrolling through the file with
393
@key{SPC} and @key{DEL}; @xref{Variables, @code{scroll-behaviour}}, for
397
@item @code{g} (@code{goto-node})
400
Reads the name of a node and selects it. No completion is done while
401
reading the node name, since the desired node may reside in a separate
402
file. The node must be typed exactly as it appears in the info file. A
403
file name may be included as with any node specification, for example
406
@code{g(emacs)Buffers}
409
finds the node @samp{Buffers} in the info file @file{emacs}.
411
@item @code{C-x k} (@code{kill-node})
414
Kills a node. The node name is prompted for in the echo area, with a
415
default of the current node. @dfn{Killing} a node means that Info tries
416
hard to forget about it, removing it from the list of history nodes kept
417
for the window where that node is found. Another node is selected in
418
the window which contained the killed node.
420
@item @code{C-x C-f} (@code{view-file})
423
Reads the name of a file and selects the entire file. The command
425
@code{C-x C-f @var{filename}}
427
is equivalent to typing
429
@code{g(@var{filename})*}
432
@item @code{C-x C-b} (@code{list-visited-nodes})
434
@findex list-visited-nodes
435
Makes a window containing a menu of all of the currently visited nodes.
436
This window becomes the selected window, and you may use the standard
437
Info commands within it.
439
@item @code{C-x b} (@code{select-visited-node})
441
@findex select-visited-node
442
Selects a node which has been previously visited in a visible window.
443
This is similar to @samp{C-x C-b} followed by @samp{m}, but no window is
447
@node Searching Commands
448
@chapter Searching an Info File
451
GNU Info allows you to search for a sequence of characters throughout an
452
entire info file, search through the indices of an info file, or find
453
areas within an info file which discuss a particular topic.
456
@item @code{s} (@code{search})
459
Reads a string in the echo area and searches for it.
461
@item @code{C-s} (@code{isearch-forward})
463
@findex isearch-forward
464
Interactively searches forward through the info file for a string as you
467
@item @code{C-r} (@code{isearch-backward})
469
@findex isearch-backward
470
Interactively searches backward through the info file for a string as
473
@item @code{i} (@code{index-search})
476
Looks up a string in the indices for this info file, and selects a node
477
where the found index entry points to.
479
@item @code{,} (@code{next-index-match})
481
@findex next-index-match
482
Moves to the node containing the next matching index item from the last
486
The most basic searching command is @samp{s} (@code{search}). The
487
@samp{s} command prompts you for a string in the echo area, and then
488
searches the remainder of the info file for an ocurrence of that string.
489
If the string is found, the node containing it is selected, and the
490
cursor is left positioned at the start of the found string. Subsequent
491
@samp{s} commands show you the default search string within @samp{[} and
492
@samp{]}; pressing @key{RET} instead of typing a new string will use the
493
default search string.
495
@dfn{Incremental searching} is similar to basic searching, but the
496
string is looked up while you are typing it, instead of waiting until
497
the entire search string has been specified.
500
@chapter Selecting Cross References
502
We have already discussed the @samp{Next}, @samp{Prev}, and @samp{Up}
503
pointers which appear at the top of a node. In addition to these
504
pointers, a node may contain other pointers which refer you to a
505
different node, perhaps in another info file. Such pointers are called
506
@dfn{cross references}, or @dfn{xrefs} for short.
509
* Parts of an Xref:: What a cross reference is made of.
510
* Selecting Xrefs:: Commands for selecting menu or note items.
513
@node Parts of an Xref
514
@section Parts of an Xref
516
Cross references have two major parts: the first part is called the
517
@dfn{label}; it is the name that you can use to refer to the cross
518
reference, and the second is the @dfn{target}; it is the full name of
519
the node that the cross reference points to.
521
The target is separated from the label by a colon @samp{:}; first the
522
label appears, and then the target. For example, in the sample menu
523
cross reference below, the single colon separates the label from the
527
* Foo Label: Foo Target. More information about Foo.
530
Note the @samp{.} which ends the name of the target. The @samp{.} is
531
not part of the target; it serves only to let Info know where the target
534
A shorthand way of specifying references allows two adjacent colons to
535
stand for a target name which is the same as the label name:
538
* Foo Commands:: Commands pertaining to Foo.
541
In the above example, the name of the target is the same as the name of
542
the label, in this case @code{Foo Commands}.
544
You will normally see two types of cross references while viewing nodes:
545
@dfn{menu} references, and @dfn{note} references. Menu references
546
appear within a node's menu; they begin with a @samp{*} at the beginning
547
of a line, and continue with a label, a target, and a comment which
548
describes what the contents of the node pointed to contains.
550
Note references appear within the body of the node text; they begin with
551
@code{*Note}, and continue with a label and a target.
553
Like @samp{Next}, @samp{Prev} and @samp{Up} pointers, cross references
554
can point to any valid node. They are used to refer you to a place
555
where more detailed information can be found on a particular subject.
556
Here is a cross reference which points to a node within the Texinfo
557
documentation: @xref{xref, , Writing an Xref, texinfo, the Texinfo
558
Manual}, for more information on creating your own texinfo cross
561
@node Selecting Xrefs
562
@section Selecting Xrefs
564
The following table lists the Info commands which operate on menu items.
567
@item @code{1} (@code{menu-digit})
568
@itemx @code{2} @dots{} @code{9}
569
@cindex 1 @dots{} 9, in Info windows
570
@kindex 1 @dots{} 9, in Info windows
572
Within an Info window, pressing a single digit, (such as @samp{1}),
573
selects that menu item, and places its node in the current window.
574
For convenience, there is one exception; pressing @samp{0} selects the
575
@emph{last} item in the node's menu.
577
@item @code{0} (@code{last-menu-item})
578
@kindex 0, in Info windows
579
@findex last-menu-item
580
Select the last item in the current node's menu.
582
@item @code{m} (@code{menu-item})
585
Reads the name of a menu item in the echo area and selects its node.
586
Completion is available while reading the menu label.
588
@item @code{M-x find-menu}
590
Moves the cursor to the start of this node's menu.
593
This table lists the Info commands which operate on note cross references.
596
@item @code{f} (@code{xref-item})
601
Reads the name of a note cross reference in the echo area and selects
602
its node. Completion is available while reading the cross reference
606
Finally, the next few commands operate on menu or note references alike:
609
@item @code{TAB} (@code{move-to-next-xref})
610
@kindex TAB, in Info windows
611
@findex move-to-next-xref
612
Moves the cursor to the start of the next nearest menu item or note
613
reference in this node. You can then use @key{RET}
614
(@code{select-reference-this-line} to select the menu or note reference.
616
@item @code{M-TAB} (@code{move-to-prev-xref})
617
@kindex M-TAB, in Info windows
618
@findex move-to-prev-xref
619
Moves the cursor the start of the nearest previous menu item or note
620
reference in this node.
622
@item @code{RET} (@code{select-reference-this-line})
623
@kindex RET, in Info windows
624
@findex select-reference-this-line
625
Selects the menu item or note reference appearing on this line.
628
@node Window Commands
629
@chapter Manipulating Multiple Windows
630
@cindex windows, manipulating
632
A @dfn{window} is a place to show the text of a node. Windows have a
633
view area where the text of the node is displayed, and an associated
634
@dfn{mode line}, which briefly describes the node being viewed.
636
GNU Info supports multiple windows appearing in a single screen; each
637
window is separated from the next by its modeline. At any time, there
638
is only one @dfn{active} window, that is, the window in which the cursor
639
appears. There are commands available for creating windows, changing
640
the size of windows, selecting which window is active, and for deleting
644
* The Mode Line:: What appears in the mode line?
645
* Basic Windows:: Manipulating windows in Info.
646
* The Echo Area:: Used for displaying errors and reading input.
650
@section The Mode Line
652
A @dfn{mode line} is a line of inverse video which appears at the bottom
653
of an info window. It describes the contents of the window just above
654
it; this information includes the name of the file and node appearing in
655
that window, the number of screen lines it takes to display the node,
656
and the percentage of text that is above the top of the window. It can
657
also tell you if the indirect tags table for this info file needs to be
658
updated, and whether or not the info file was compressed when stored on
661
Here is a sample mode line for a window containing an uncompressed file
662
named @file{dir}, showing the node @samp{Top}.
665
-----Info: (dir)Top, 40 lines --Top---------------------------------------
667
(file)Node #lines where
670
When a node comes from a file which is compressed on disk, this is
671
indicated in the mode line with two small @samp{z}'s. In addition, if
672
the info file containing the node has been split into subfiles, the name
673
of the subfile containing the node appears in the modeline as well:
676
--zz-Info: (emacs)Top, 291 lines --Top-- Subfile: emacs-1.Z---------------
679
When Info makes a node internally, such that there is no corresponding
680
info file on disk, the name of the node is surrounded by asterisks
681
(@samp{*}). The name itself tells you what the contents of the window
682
are; the sample mode line below shows an internally constructed node
683
showing possible completions:
686
-----Info: *Completions*, 7 lines --All-----------------------------------
690
@section Window Commands
692
It can be convenient to view more than one node at a time. To allow
693
this, Info can display more than one @dfn{window}. Each window has its
694
own mode line (@pxref{The Mode Line}) and history of nodes viewed in that
695
window (@pxref{Node Commands, , @code{history-node}}).
698
@item @code{C-x o} (@code{next-window})
699
@cindex windows, selecting
702
Selects the next window on the screen. Note that the echo area can only be
703
selected if it is already in use, and you have left it temporarily.
704
Normally, @samp{C-x o} simply moves the cursor into the next window on
705
the screen, or if you are already within the last window, into the first
706
window on the screen. Given a numeric argument, @samp{C-x o} moves over
707
that many windows. A negative argument causes @samp{C-x o} to select
708
the previous window on the screen.
710
@item @code{M-x prev-window}
712
Selects the previous window on the screen. This is identical to
713
@samp{C-x o} with a negative argument.
715
@item @code{C-x 2} (@code{split-window})
716
@cindex windows, creating
719
Splits the current window into two windows, both showing the same node.
720
Each window is one half the size of the original window, and the cursor
721
remains in the original window. The variable @code{automatic-tiling}
722
can cause all of the windows on the screen to be resized for you
723
automatically, please @pxref{Variables, , automatic-tiling} for more
726
@item @code{C-x 0} (@code{delete-window})
727
@cindex windows, deleting
729
@findex delete-window
730
Deletes the current window from the screen. If you have made too many
731
windows and your screen appears cluttered, this is the way to get rid of
734
@item @code{C-x 1} (@code{keep-one-window})
736
@findex keep-one-window
737
Deletes all of the windows excepting the current one.
739
@item @code{ESC C-v} (@code{scroll-other-window})
740
@kindex ESC C-v, in Info windows
741
@findex scroll-other-window
742
Scrolls the other window, in the same fashion that @samp{C-v} might
743
scroll the current window. Given a negative argument, the "other"
744
window is scrolled backward.
746
@item @code{C-x ^} (@code{grow-window})
749
Grows (or shrinks) the current window. Given a numeric argument, grows
750
the current window that many lines; with a negative numeric argument,
751
the window is shrunk instead.
753
@item @code{C-x t} (@code{tile-windows})
757
Divides the available screen space among all of the visible windows.
758
Each window is given an equal portion of the screen in which to display
759
its contents. The variable @code{automatic-tiling} can cause
760
@code{tile-windows} to be called when a window is created or deleted.
761
@xref{Variables, , @code{automatic-tiling}}.
765
@section The Echo Area
768
The @dfn{echo area} is a one line window which appears at the bottom of
769
the screen. It is used to display informative or error messages, and to
770
read lines of input from you when that is necessary. Almost all of the
771
commands available in the echo area are identical to their Emacs
772
counterparts, so please refer to that documentation for greater depth of
773
discussion on the concepts of editing a line of text. The following
774
table briefly lists the commands that are available while input is being
775
read in the echo area:
778
@item @code{C-f} (@code{echo-area-forward})
779
@kindex C-f, in the echo area
780
@findex echo-area-forward
781
Moves forward a character.
783
@item @code{C-b} (@code{echo-area-backward})
784
@kindex C-b, in the echo area
785
@findex echo-area-backward
786
Moves backward a character.
788
@item @code{C-a} (@code{echo-area-beg-of-line})
789
@kindex C-a, in the echo area
790
@findex echo-area-beg-of-line
791
Moves to the start of the input line.
793
@item @code{C-e} (@code{echo-area-end-of-line})
794
@kindex C-e, in the echo area
795
@findex echo-area-end-of-line
796
Moves to the end of the input line.
798
@item @code{M-f} (@code{echo-area-forward-word})
799
@kindex M-f, in the echo area
800
@findex echo-area-forward-word
801
Moves forward a word.
803
@item @code{M-b} (@code{echo-area-backward-word})
804
@kindex M-b, in the echo area
805
@findex echo-area-backward-word
806
Moves backward a word.
808
@item @code{C-d} (@code{echo-area-delete})
809
@kindex C-d, in the echo area
810
@findex echo-area-delete
811
Deletes the character under the cursor.
813
@item @code{DEL} (@code{echo-area-rubout})
814
@kindex DEL, in the echo area
815
@findex echo-area-rubout
816
Deletes the character behind the cursor.
818
@item @code{C-g} (@code{echo-area-abort})
819
@kindex C-g, in the echo area
820
@findex echo-area-abort
821
Cancels or quits the current operation. If completion is being read,
822
@samp{C-g} discards the text of the input line which does not match any
823
completion. If the input line is empty, @samp{C-g} aborts the calling
826
@item @code{RET} (@code{echo-area-newline})
827
@kindex RET, in the echo area
828
@findex echo-area-newline
829
Accepts (or forces completion of) the current input line.
831
@item @code{C-q} (@code{echo-area-quoted-insert})
832
@kindex C-q, in the echo area
833
@findex echo-area-quoted-insert
834
Inserts the next character verbatim. This is how you can insert control
835
characters into a search string, for example.
837
@item @var{printing character} (@code{echo-area-insert})
838
@kindex printing characters, in the echo area
839
@findex echo-area-insert
840
Inserts the character.
842
@item @code{M-TAB} (@code{echo-area-tab-insert})
843
@kindex M-TAB, in the echo area
844
@findex echo-area-tab-insert
845
Inserts a TAB character.
847
@item @code{C-t} (@code{echo-area-transpose-chars})
848
@kindex C-t, in the echo area
849
@findex echo-area-transpose-chars
850
Transposes the characters at the cursor.
853
The next group of commands deal with @dfn{killing}, and @dfn{yanking}
854
text. For an in depth discussion of killing and yanking,
855
@pxref{Killing, , Killing and Deleting, emacs, the GNU Emacs Manual}
858
@item @code{M-d} (@code{echo-area-kill-word})
859
@kindex M-d, in the echo area
860
@findex echo-area-kill-word
861
Kills the word following the cursor.
863
@item @code{M-DEL} (@code{echo-area-backward-kill-word})
864
@kindex M-DEL, in the echo area
865
@findex echo-area-backward-kill-word
866
Kills the word preceding the cursor.
868
@item @code{C-k} (@code{echo-area-kill-line})
869
@kindex C-k, in the echo area
870
@findex echo-area-kill-line
871
Kills the text from the cursor to the end of the line.
873
@item @code{C-x DEL} (@code{echo-area-backward-kill-line})
874
@kindex C-x DEL, in the echo area
875
@findex echo-area-backward-kill-line
876
Kills the text from the cursor to the beginning of the line.
878
@item @code{C-y} (@code{echo-area-yank})
879
@kindex C-y, in the echo area
880
@findex echo-area-yank
881
Yanks back the contents of the last kill.
883
@item @code{M-y} (@code{echo-area-yank-pop})
884
@kindex M-y, in the echo area
885
@findex echo-area-yank-pop
886
Yanks back a previous kill, removing the last yanked text first.
889
Sometimes when reading input in the echo area, the command that needed
890
input will only accept one of a list of several choices. The choices
891
represent the @dfn{possible completions}, and you must respond with one
892
of them. Since there are a limited number of responses you can make,
893
Info allows you to abbreviate what you type, only typing as much of the
894
response as is necessary to uniquely identify it. In addition, you can
895
request Info to fill in as much of the response as is possible; this
896
is called @dfn{completion}.
898
The following commands are available when completing in the echo area:
901
@item @code{TAB} (@code{echo-area-complete})
903
@kindex TAB, in the echo area
904
@kindex SPC, in the echo area
905
@findex echo-area-complete
906
Inserts as much of a completion as is possible.
908
@item @code{?} (@code{echo-area-possible-completions})
909
@kindex ?, in the echo area
910
@findex echo-area-possible-completions
911
Displays a window containing a list of the possible completions of what
912
you have typed so far. For example, if the available choices are:
919
and you have typed an @samp{f}, followed by @samp{?}, the possible
920
completions would contain:
926
i.e., all of the choices which begin with @samp{f}. Pressing @key{SPC}
927
or @key{TAB} would result in @samp{fo} appearing in the echo area, since
928
all of the choices which begin with @samp{f} continue with @samp{o}.
929
Now, typing @samp{l} followed by @samp{TAB} results in @samp{foliate}
930
appearing in the echo area, since that is the only choice which begins
933
@item @code{ESC C-v} (@code{echo-area-scroll-completions-window})
934
@kindex ESC C-v, in the echo area
935
@findex echo-area-scroll-completions-window
936
Scrolls the completions window, if that is visible, or the "other"
941
@chapter Printing Out Nodes
944
You may wish to print out the contents of a node as a quick reference
945
document for later use. Info provides you with a command for doing
946
this. In general, we recommend that you use @TeX{} to format the
947
document and print sections of it, by running @code{tex} on the texinfo
951
@item @code{M-x print-node}
953
@cindex INFO_PRINT_COMMAND, environment variable
954
Pipes the contents of the current node through the command in the
955
environment variable @code{INFO_PRINT_COMMAND}. If the variable doesn't
956
exist, the node is simply piped to @code{lpr}.
959
@node Miscellaneous Commands
960
@chapter Miscellaneous Commands
962
GNU Info contains several commands which self-document GNU Info:
965
@item @code{M-x describe-command}
966
@cindex functions, describing
967
@cindex commands, describing
968
@findex describe-command
969
Reads the name of an Info command in the echo area and then displays a
970
brief description of what that command does.
972
@item @code{M-x describe-key}
973
@cindex keys, describing
975
Reads a key sequence in the echo area, and then displays the name and
976
documentation of the Info command that the key sequence invokes.
978
@item @code{M-x describe-variable}
979
Reads the name of a variable in the echo area and then displays a brief
980
description of what the variable affects.
982
@item @code{M-x where-is}
984
Reads the name of an Info command in the echo area, and then displays
985
a key sequence which can be typed in order to invoke that command.
987
@item @code{C-h} (@code{get-help-window})
990
@kindex ?, in Info windows
991
@findex get-help-window
992
Creates (or moves into) the window displaying @code{*Help*}, and places
993
a node containing a quick reference card into it. This window displays
994
the most concise information about GNU Info available.
996
@item @code{h} (@code{get-info-help-node})
998
@findex get-info-help-node
999
Tries hard to visit the node @code{(info)Help}. The info file
1000
@file{info.texi} distributed with GNU Info contains this node. Of
1001
course, the file must first be processed with @code{makeinfo}, and then
1002
placed into the location of your info directory.
1005
Here are the commands for creating a numeric argument:
1008
@item @code{C-u} (@code{universal-argument})
1009
@cindex numeric arguments
1011
@findex universal-argument
1012
Starts (or multiplies by 4) the current numeric argument. @samp{C-u} is
1013
a good way to give a small numeric argument to cursor movement or
1014
scrolling commands; @samp{C-u C-v} scrolls the screen 4 lines, while
1015
@samp{C-u C-u C-n} moves the cursor down 16 lines.
1017
@item @code{M-1} (@code{add-digit-to-numeric-arg})
1018
@itemx @code{M-2} @dots{} @code{M-9}
1019
@kindex M-1 @dots{} M-9
1020
@findex add-digit-to-numeric-arg
1021
Adds the digit value of the invoking key to the current numeric
1022
argument. Once Info is reading a numeric argument, you may just type
1023
the digits of the argument, without the Meta prefix. For example, you
1024
might give @samp{C-l} a numeric argument of 32 by typing:
1035
@samp{C-g} is used to abort the reading of a multi-character key
1036
sequence, to cancel lengthy operations (such as multi-file searches) and
1037
to cancel reading input in the echo area.
1040
@item @code{C-g} (@code{abort-key})
1041
@cindex cancelling typeahead
1042
@cindex cancelling the current operation
1043
@kindex C-g, in Info windows
1045
Cancels current operation.
1048
The @samp{q} command of Info simply quits running Info.
1051
@item @code{q} (@code{quit})
1058
If the operating system tells GNU Info that the screen is 60 lines tall,
1059
and it is actually only 40 lines tall, here is a way to tell Info that
1060
the operating system is correct.
1063
@item @code{M-x set-screen-height}
1064
@findex set-screen-height
1065
@cindex screen, changing the height of
1066
Reads a height value in the echo area and sets the height of the
1067
displayed screen to that value.
1070
Finally, Info provides a convenient way to display footnotes which might
1071
be associated with the current node that you are viewing:
1074
@item @code{ESC C-f} (@code{show-footnotes})
1076
@findex show-footnotes
1077
@cindex footnotes, displaying
1078
Shows the footnotes (if any) associated with the current node in another
1079
window. You can have Info automatically display the footnotes
1080
associated with a node when the node is selected by setting the variable
1081
@code{automatic-footnotes}. @xref{Variables, , @code{automatic-footnotes}}.
1085
@chapter Manipulating Variables
1087
GNU Info contains several @dfn{variables} whose values are looked at by various
1088
Info commands. You can change the values of these variables, and thus
1089
change the behaviour of Info to more closely match your environment and
1090
info file reading manner.
1093
@item @code{M-x set-variable}
1094
@cindex variables, setting
1095
@findex set-variable
1096
Reads the name of a variable, and the value for it, in the echo area and
1097
then sets the variable to that value. Completion is available when
1098
reading the variable name; often, completion is available when reading
1099
the value to give to the variable, but that depends on the variable
1100
itself. If a variable does @emph{not} supply multiple choices to
1101
complete over, it expects a numeric value.
1103
@item @code{M-x describe-variable}
1104
@cindex variables, describing
1105
@findex describe-variable
1106
Reads the name of a variable in the echo area and then displays a brief
1107
description of what the variable affects.
1110
Here is a list of the variables that you can set in Info.
1113
@item automatic-footnotes
1114
@vindex automatic-footnotes
1115
When set to @code{On}, footnotes appear and disappear automatically.
1116
This variable is @code{On} by default. When a node is selected, a
1117
window containing the footnotes which appear in that node is created,
1118
and the footnotes are displayed within the new window. The window that
1119
Info creates to contain the footnotes is called @samp{*Footnotes*}. If
1120
a node is selected which contains no footnotes, and a @samp{*Footnotes*}
1121
window is on the screen, the @samp{*Footnotes*} window is deleted.
1122
Footnote windows created in this fashion are not automatically tiled so
1123
that they can use as little of the display as is possible.
1125
@item automatic-tiling
1126
@vindex automatic-tiling
1127
When set to @code{On}, creating or deleting a window resizes other
1128
windows. This variable is @code{Off} by default. Normally, typing
1129
@samp{C-x 2} divides the current window into two equal parts. When
1130
@code{automatic-tiling} is set to @code{On}, all of the windows are
1131
resized automatically, keeping an equal number of lines visible in each
1132
window. There are exceptions to the automatic tiling; specifically, the
1133
windows @samp{*Completions*} and @samp{*Footnotes*} are @emph{not}
1134
resized through automatic tiling; they remain their original size.
1137
@vindex visible-bell
1138
When set to @code{On}, GNU Info attempts to flash the screen instead of
1139
ringing the bell. This variable is @code{Off} by default. Of course,
1140
Info can only flash the screen if the terminal allows it; in the case
1141
that the terminal does not allow it, the setting of this variable has no
1142
effect. However, you can make Info perform quietly by setting the
1143
@code{errors-ring-bell} variable to @code{Off}.
1145
@item errors-ring-bell
1146
@vindex errors-ring-bell
1147
When set to @code{On}, errors cause the bell to ring. The default
1148
setting of this variable is @code{On}.
1150
@item gc-compressed-files
1151
@vindex gc-compressed-files
1152
When set to @code{On}, Info garbage collects files which had to be
1153
uncompressed. The default value of this variable is @code{Off}.
1154
Whenever a node is visited in Info, the info file containing that node
1155
is read into core, and Info reads information about the tags and nodes
1156
contained in that file. Once the tags information is read by Info, it
1157
is never forgotten. However, the actual text of the nodes does not need
1158
to remain in core unless a particular info window needs it. For
1159
non-compressed files, the text of the nodes does not remain in core when
1160
it is no longer in use. But de-compressing a file can be a time
1161
consuming operation, and so Info tries hard not to do it twice.
1162
@code{gc-compressed-files} tells Info it is okay to garbage collect the
1163
text of the nodes of a file which was compressed on disk.
1165
@item show-index-match
1166
@vindex show-index-match
1167
When set to @code{On}, the portion of the matched search string is
1168
highlighted in the message which explains where the matched search
1169
string was found. The default value of this variable is @code{On}.
1170
When Info displays the location where an index match was found,
1171
(@pxref{Searching Commands, , @code{next-index-match}}), the portion of the
1172
string that you had typed is highlighted by displaying it in the inverse
1173
case from its surrounding characters.
1175
@item scroll-behaviour
1176
@vindex scroll-behaviour
1177
Controls what happens when forward scrolling is requested at the end of
1178
a node, or when backward scrolling is requested at the beginning of a
1179
node. The default value for this variable is @code{Continuous}. There
1180
are three possible values for this variable:
1184
Tries to get the first item in this node's menu, or failing that, the
1185
@samp{Next} node, or failing that, the @samp{Next} of the @samp{Up}.
1186
This behaviour is identical to using the @samp{]}
1187
(@code{global-next-node}) and @samp{[} (@code{global-prev-node})
1191
Only tries to get the @samp{Next} node.
1194
Simply gives up, changing nothing. If @code{scroll-behaviour} is
1195
@code{Page Only}, no scrolling command can change the node that is being
1201
The number of lines to scroll when the cursor moves out of the window.
1202
Scrolling happens automatically if the cursor has moved out of the
1203
visible portion of the node text when it is time to display. Usually
1204
the scrolling is done so as to put the cursor on the center line of the
1205
current window. However, if the variable @code{scroll-step} has a
1206
nonzero value, Info attempts to scroll the node text by that many lines;
1207
if that is enough to bring the cursor back into the window, that is what
1208
is done. The default value of this variable is 0, thus placing the
1209
cursor (and the text it is attached to) in the center of the window.
1210
Setting this variable to 1 causes a kind of "smooth scrolling" which
1214
@cindex ISO Latin characters
1216
When set to @code{On}, Info accepts and displays ISO Latin characters.
1217
By default, Info assumes an ASCII character set. @code{ISO-Latin} tells
1218
Info that it is running in an environment where the European standard
1219
character set is in use, and allows you to input such characters to
1220
Info, as well as display them.
1223
@c The following node and its children are currently unfinished. Please feel
1224
@c free to finish it!
1227
@node Info for Sys Admins
1228
@chapter Info for System Administrators
1230
This text describes some common ways of setting up an Info heierarchy
1231
from scratch, and details the various options that are available when
1232
installing Info. This text is designed for the person who is installing
1233
GNU Info on the system; although users may find the information present
1234
in this section interesting, none of it is vital to understanding how to
1238
* Setting the INFOPATH:: Where are my Info files kept?
1239
* Editing the DIR node:: What goes in `DIR', and why?
1240
* Storing Info files:: Alternate formats allow flexibilty in setups.
1241
* Using `localdir':: Building DIR on the fly.
1242
* Example setups:: Some common ways to origanize Info files.
1245
@node Setting the INFOPATH
1246
@section Setting the INFOPATH
1247
Where are my Info files kept?
1249
@node Editing the DIR node
1250
@section Editing the DIR node
1251
What goes in `DIR', and why?
1253
@node Storing Info files
1254
@section Storing Info files
1255
Alternate formats allow flexibilty in setups.
1257
@node Using `localdir'
1258
@section Using `localdir'
1259
Building DIR on the fly.
1261
@node Example setups
1262
@section Example setups
1263
Some common ways to origanize Info files.
1267
@node GNU Info Global Index
1268
@appendix Global Index