⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 info-stnd.texi

📁 gcc-2.95.3 Linux下最常用的C编译器
💻 TEXI
📖 第 1 页 / 共 4 页
字号:
@cindex scrolling through node structureThe @code{scroll-forward} and @code{scroll-backward} commands can alsomove forward and backward through the node structure of the file.  Ifyou press @key{SPC} while viewing the end of a node, or @key{DEL} whileviewing the beginning of a node, what happens is controlled by thevariable @code{scroll-behavior}.  @xref{Variables,@code{scroll-behavior}}, for more information.@table @asis@item @code{C-l} (@code{redraw-display})@kindex C-l@findex redraw-displayRedraw the display from scratch, or shift the line containing the cursorto a specified location.  With no numeric argument, @samp{C-l} clearsthe screen, and then redraws its entire contents.  Given a numericargument of @var{n}, the line containing the cursor is shifted so thatit is on the @var{n}th line of the window.@item @code{C-x w} (@code{toggle-wrap})@kindex C-w@findex toggle-wrapToggles the state of line wrapping in the current window.  Normally,lines which are longer than the screen width @dfn{wrap}, i.e., they arecontinued on the next line.  Lines which wrap have a @samp{\} appearingin the rightmost column of the screen.  You can cause such lines to beterminated at the rightmost column by changing the state of linewrapping in the window with @code{C-x w}.  When a line which needs morespace than one screen width to display is displayed, a @samp{$} appearsin the rightmost column of the screen, and the remainder of the line isinvisible.@end table@node Node Commands, Searching Commands, Scrolling Commands, Top@chapter Selecting a New Node@cindex nodes, selection ofThis section details the numerous Info commands which select a new nodeto view in the current window.The most basic node commands are @samp{n}, @samp{p}, @samp{u}, and@samp{l}.When you are viewing a node, the top line of the node contains some Info@dfn{pointers} which describe where the next, previous, and up nodesare.  Info uses this line to move about the node structure of the filewhen you use the following commands:@table @asis@item @code{n} (@code{next-node})@kindex n@findex next-nodeSelect the `Next' node.  @item @code{p} (@code{prev-node})@kindex p@findex prev-nodeSelect the `Prev' node.@item @code{u} (@code{up-node})@kindex u@findex up-nodeSelect the `Up' node.@end tableYou can easily select a node that you have already viewed in this windowby using the @samp{l} command -- this name stands for "last", andactually moves through the list of already visited nodes for thiswindow.  @samp{l} with a negative numeric argument moves forward throughthe history of nodes for this window, so you can quickly step betweentwo adjacent (in viewing history) nodes.@table @asis@item @code{l} (@code{history-node})@kindex l@findex history-nodeSelect the most recently selected node in this window.@end tableTwo additional commands make it easy to select the most commonlyselected nodes; they are @samp{t} and @samp{d}.@table @asis@item @code{t} (@code{top-node})@kindex t@findex top-nodeSelect the node @samp{Top} in the current Info file.@item @code{d} (@code{dir-node})@kindex d@findex dir-nodeSelect the directory node (i.e., the node @samp{(dir)}).@end tableHere are some other commands which immediately result in the selectionof a different node in the current window:@table @asis@item @code{<} (@code{first-node})@kindex <@findex first-nodeSelects the first node which appears in this file.  This node is mostoften @samp{Top}, but it does not have to be.@item @code{>} (@code{last-node})@kindex >@findex last-nodeSelect the last node which appears in this file.@item @code{]} (@code{global-next-node})@kindex ]@findex global-next-nodeMove forward or down through node structure.  If the node that you arecurrently viewing has a @samp{Next} pointer, that node is selected.Otherwise, if this node has a menu, the first menu item is selected.  Ifthere is no @samp{Next} and no menu, the same process is tried with the@samp{Up} node of this node.@item @code{[} (@code{global-prev-node})@kindex [@findex global-prev-nodeMove backward or up through node structure.  If the node that you arecurrently viewing has a @samp{Prev} pointer, that node is selected.Otherwise, if the node has an @samp{Up} pointer, that node is selected,and if it has a menu, the last item in the menu is selected.@end tableYou can get the same behavior as @code{global-next-node} and@code{global-prev-node} while simply scrolling through the file with@key{SPC} and @key{DEL}; @xref{Variables, @code{scroll-behavior}}, formore information.@table @asis@item @code{g} (@code{goto-node})@kindex g@findex goto-nodeRead the name of a node and select it.  No completion is done whilereading the node name, since the desired node may reside in a separatefile.  The node must be typed exactly as it appears in the Info file.  Afile name may be included as with any node specification, for example@example@code{g(emacs)Buffers}@end examplefinds the node @samp{Buffers} in the Info file @file{emacs}.@item @code{C-x k} (@code{kill-node})@kindex C-x k@findex kill-nodeKill a node.  The node name is prompted for in the echo area, with adefault of the current node.  @dfn{Killing} a node means that Info trieshard to forget about it, removing it from the list of history nodes keptfor the window where that node is found.  Another node is selected inthe window which contained the killed node.@item @code{C-x C-f} (@code{view-file})@kindex C-x C-f@findex view-fileRead the name of a file and selects the entire file.  The command@example@code{C-x C-f @var{filename}}@end exampleis equivalent to typing@example@code{g(@var{filename})*}@end example@item @code{C-x C-b} (@code{list-visited-nodes})@kindex C-x C-b@findex list-visited-nodesMake a window containing a menu of all of the currently visited nodes.This window becomes the selected window, and you may use the standardInfo commands within it.@item @code{C-x b} (@code{select-visited-node})@kindex C-x b@findex select-visited-nodeSelect a node which has been previously visited in a visible window.This is similar to @samp{C-x C-b} followed by @samp{m}, but no window iscreated.@end table@node Searching Commands, Xref Commands, Node Commands, Top@chapter Searching an Info File@cindex searchingGNU Info allows you to search for a sequence of characters throughout anentire Info file, search through the indices of an Info file, or findareas within an Info file which discuss a particular topic.@table @asis@item @code{s} (@code{search})@kindex s@findex searchRead a string in the echo area and search for it.@item @code{C-s} (@code{isearch-forward})@kindex C-s@findex isearch-forwardInteractively search forward through the Info file for a string as youtype it.@item @code{C-r} (@code{isearch-backward})@kindex C-r@findex isearch-backwardInteractively search backward through the Info file for a string asyou type it.@item @code{i} (@code{index-search})@kindex i@findex index-searchLook up a string in the indices for this Info file, and select a nodewhere the found index entry points to.@item @code{,} (@code{next-index-match})@kindex ,@findex next-index-matchMove to the node containing the next matching index item from the last@samp{i} command.@end tableThe most basic searching command is @samp{s} (@code{search}).  The@samp{s} command prompts you for a string in the echo area, and thensearches the remainder of the Info file for an occurrence of that string.If the string is found, the node containing it is selected, and thecursor is left positioned at the start of the found string.  Subsequent@samp{s} commands show you the default search string within @samp{[} and@samp{]}; pressing @key{RET} instead of typing a new string will use thedefault search string.@dfn{Incremental searching} is similar to basic searching, but thestring is looked up while you are typing it, instead of waiting untilthe entire search string has been specified.@node Xref Commands, Window Commands, Searching Commands, Top@chapter Selecting Cross ReferencesWe have already discussed the @samp{Next}, @samp{Prev}, and @samp{Up}pointers which appear at the top of a node.  In addition to thesepointers, a node may contain other pointers which refer you to adifferent node, perhaps in another Info file.  Such pointers are called@dfn{cross references}, or @dfn{xrefs} for short.@menu* Parts of an Xref::            What a cross reference is made of.* Selecting Xrefs::             Commands for selecting menu or note items.@end menu@node Parts of an Xref, Selecting Xrefs,  , Xref Commands@section Parts of an XrefCross references have two major parts: the first part is called the@dfn{label}; it is the name that you can use to refer to the crossreference, and the second is the @dfn{target}; it is the full name ofthe node that the cross reference points to.The target is separated from the label by a colon @samp{:}; first thelabel appears, and then the target.  For example, in the sample menucross reference below, the single colon separates the label from thetarget.@example* Foo Label: Foo Target.        More information about Foo.@end exampleNote the @samp{.} which ends the name of the target.  The @samp{.} isnot part of the target; it serves only to let Info know where the targetname ends.A shorthand way of specifying references allows two adjacent colons tostand for a target name which is the same as the label name:@example* Foo Commands::                Commands pertaining to Foo.@end exampleIn the above example, the name of the target is the same as the name ofthe label, in this case @code{Foo Commands}.You will normally see two types of cross reference while viewing nodes:@dfn{menu} references, and @dfn{note} references.  Menu referencesappear within a node's menu; they begin with a @samp{*} at the beginningof a line, and continue with a label, a target, and a comment whichdescribes what the contents of the node pointed to contains.Note references appear within the body of the node text; they begin with@code{*Note}, and continue with a label and a target.Like @samp{Next}, @samp{Prev}, and @samp{Up} pointers, cross referencescan point to any valid node.  They are used to refer you to a placewhere more detailed information can be found on a particular subject.Here is a cross reference which points to a node within the Texinfodocumentation:  @xref{xref, , Writing an Xref, texinfo, the TexinfoManual}, for more information on creating your own texinfo crossreferences.@node Selecting Xrefs,  , Parts of an Xref, Xref Commands@section Selecting XrefsThe following table lists the Info commands which operate on menu items.@table @asis@item @code{1} (@code{menu-digit})@itemx @code{2} @dots{} @code{9}@cindex 1 @dots{} 9, in Info windows@kindex 1 @dots{} 9, in Info windows@findex menu-digitWithin an Info window, pressing a single digit, (such as @samp{1}),selects that menu item, and places its node in the current window.For convenience, there is one exception; pressing @samp{0} selects the@emph{last} item in the node's menu.@item @code{0} (@code{last-menu-item})@kindex 0, in Info windows@findex last-menu-itemSelect the last item in the current node's menu.@item @code{m} (@code{menu-item})@kindex m@findex menu-itemReads the name of a menu item in the echo area and selects its node.Completion is available while reading the menu label.@item @code{M-x find-menu}@findex find-menuMove the cursor to the start of this node's menu.@end tableThis table lists the Info commands which operate on note cross references.@table @asis@item @code{f} (@code{xref-item})@itemx @code{r}@kindex f@kindex r@findex xref-itemReads the name of a note cross reference in the echo area and selectsits node.  Completion is available while reading the cross referencelabel.@end tableFinally, the next few commands operate on menu or note references alike:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -