Mercurial > emacs
comparison man/info.texi @ 64813:06fa0e2abb19
(Help-P): Replace `Prev' with `Previous'.
(Help-M, Help-Xref): Add S-TAB.
(Help-FOO): Update `u' command.
(Help-Xref): Move info about Mouse-2 from `Help-Int'.
Update info about visibility of xref parts.
(Help-Int): Fix `m' command. Rename `Info-last' to
`Info-history-back'. Add `Info-history-forward'.
(Advanced): Fix `g*' and `M-n' commands.
(Info Search): Add `index-apropos' in stand-alone browser.
Add isearch commands.
(Emacs Info Variables): Remove `Info-fontify'.
Add `Info-mode-hook'. Update face names.
Add `Info-fontify-maximum-menu-size',
`Info-fontify-visited-nodes', `Info-isearch-search'.
author | Juri Linkov <juri@jurta.org> |
---|---|
date | Tue, 09 Aug 2005 08:44:41 +0000 |
parents | 138636408bb3 |
children | 3723093a21fd |
comparison
equal
deleted
inserted
replaced
64812:0d6aa987778c | 64813:06fa0e2abb19 |
---|---|
12 | 12 |
13 @copying | 13 @copying |
14 This file describes how to use Info, the on-line, menu-driven GNU | 14 This file describes how to use Info, the on-line, menu-driven GNU |
15 documentation system. | 15 documentation system. |
16 | 16 |
17 Copyright (C) 1989, 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 | 17 Copyright (C) 1989, 1992, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
18 Free Software Foundation, Inc. | 18 2003, 2004, 2005 Free Software Foundation, Inc. |
19 | 19 |
20 @quotation | 20 @quotation |
21 Permission is granted to copy, distribute and/or modify this document | 21 Permission is granted to copy, distribute and/or modify this document |
22 under the terms of the GNU Free Documentation License, Version 1.1 or | 22 under the terms of the GNU Free Documentation License, Version 1.1 or |
23 any later version published by the Free Software Foundation; with no | 23 any later version published by the Free Software Foundation; with no |
236 @cindex header of Info node | 236 @cindex header of Info node |
237 The top line of a node is its @dfn{header}. This node's header | 237 The top line of a node is its @dfn{header}. This node's header |
238 (look at it now) says that the @samp{Next} node after this one is the | 238 (look at it now) says that the @samp{Next} node after this one is the |
239 node called @samp{Help-P}. An advanced Info command lets you go to | 239 node called @samp{Help-P}. An advanced Info command lets you go to |
240 any node whose name you know. In the stand-alone Info reader program, | 240 any node whose name you know. In the stand-alone Info reader program, |
241 the header line shows the names of this node and the info file as | 241 the header line shows the names of this node and the Info file as |
242 well. In Emacs, the header line is duplicated in a special typeface, | 242 well. In Emacs, the header line is duplicated in a special typeface, |
243 and the duplicate remains at the top of the window all the time even | 243 and the duplicate remains at the top of the window all the time even |
244 if you scroll through the node. | 244 if you scroll through the node. |
245 | 245 |
246 Besides a @samp{Next}, a node can have a @samp{Previous} link, or an | 246 Besides a @samp{Next}, a node can have a @samp{Previous} link, or an |
282 @end format | 282 @end format |
283 | 283 |
284 If you read this in Emacs, you will see an @samp{Info} item in the | 284 If you read this in Emacs, you will see an @samp{Info} item in the |
285 menu bar, close to its right edge. Clicking the mouse on the | 285 menu bar, close to its right edge. Clicking the mouse on the |
286 @samp{Info} menu-bar item opens a menu of commands which include | 286 @samp{Info} menu-bar item opens a menu of commands which include |
287 @samp{Next} and @samp{Prev} (and also some others which you didn't yet | 287 @samp{Next} and @samp{Previous} (and also some others which you didn't yet |
288 learn about). | 288 learn about). |
289 | 289 |
290 This all probably seems insultingly simple so far, but @emph{please | 290 This all probably seems insultingly simple so far, but @emph{please |
291 don't} start skimming. Things will get complicated soon enough! | 291 don't} start skimming. Things will get complicated soon enough! |
292 Also, please do not try a new command until you are told it is time | 292 Also, please do not try a new command until you are told it is time |
669 | 669 |
670 After visiting @samp{Help-FOO}, you should return here. | 670 After visiting @samp{Help-FOO}, you should return here. |
671 | 671 |
672 Another way to move to the menu subtopic lines and between them is | 672 Another way to move to the menu subtopic lines and between them is |
673 to type @key{TAB}. Each time you type a @key{TAB}, you move to the | 673 to type @key{TAB}. Each time you type a @key{TAB}, you move to the |
674 next subtopic line. To move to a previous subtopic line, type | 674 next subtopic line. To move to a previous subtopic line in the |
675 @kbd{M-@key{TAB}}---that is, press and hold the @key{META} key and then | 675 stand-alone reader, type @kbd{M-@key{TAB}}---that is, press and hold |
676 press @key{TAB}. (On some keyboards, the @key{META} key might be labeled | 676 the @key{META} key and then press @key{TAB}. (On some keyboards, the |
677 @samp{Alt}.) | 677 @key{META} key might be labeled @samp{Alt}.) In Emacs Info, type |
678 @kbd{S-@key{TAB}} to move to a previous subtopic line (press and hold | |
679 the @key{Shift} key and then press @key{TAB}). | |
678 | 680 |
679 Once you move cursor to a subtopic line, press @key{RET} to go to | 681 Once you move cursor to a subtopic line, press @key{RET} to go to |
680 that subtopic's node. | 682 that subtopic's node. |
681 | 683 |
682 @cindex mouse support in Info mode | 684 @cindex mouse support in Info mode |
725 You can go back to the node @samp{Help-M} by typing the command | 727 You can go back to the node @samp{Help-M} by typing the command |
726 @kbd{u} for ``Up'' (the Emacs command run by @kbd{u} is | 728 @kbd{u} for ``Up'' (the Emacs command run by @kbd{u} is |
727 @code{Info-up}). That puts you at the @emph{front} of the node---to | 729 @code{Info-up}). That puts you at the @emph{front} of the node---to |
728 get back to where you were reading you have to type some @key{SPC}s. | 730 get back to where you were reading you have to type some @key{SPC}s. |
729 (Some Info readers, such as the one built into Emacs, put you at the | 731 (Some Info readers, such as the one built into Emacs, put you at the |
730 same place where you were reading in @samp{Help-M}.) | 732 menu subtopic line which points to the subnode that the @kbd{u} command |
733 brought you from.) | |
731 | 734 |
732 Another way to go Up is to click @kbd{Mouse-2} on the @samp{Up} | 735 Another way to go Up is to click @kbd{Mouse-2} on the @samp{Up} |
733 pointer shown in the header line (provided that you have a mouse). | 736 pointer shown in the header line (provided that you have a mouse). |
734 | 737 |
735 @format | 738 @format |
783 @format | 786 @format |
784 >> Type @kbd{f?} to get a list of the cross references in this node. Then | 787 >> Type @kbd{f?} to get a list of the cross references in this node. Then |
785 type a @kbd{Control-g} and see how the @samp{f} gives up. | 788 type a @kbd{Control-g} and see how the @samp{f} gives up. |
786 @end format | 789 @end format |
787 | 790 |
788 The @key{TAB} and @kbd{M-@key{TAB}} key, which move between menu | 791 The @key{TAB}, @kbd{M-@key{TAB}} and @kbd{S-@key{TAB}} keys, |
789 items in a menu, also move between cross references outside of menus. | 792 which move between menu items in a menu, also move between cross |
793 references outside of menus. | |
794 | |
795 Clicking @kbd{Mouse-2} on or near a cross reference also follows the | |
796 reference. You can see that the cross reference is mouse-sensitive by | |
797 moving the mouse pointer to the reference and watching how the | |
798 underlying text and the mouse pointer change in response. | |
790 | 799 |
791 Sometimes a cross reference (or a node) can lead to another file (in | 800 Sometimes a cross reference (or a node) can lead to another file (in |
792 other words another ``manual''), or, on occasion, even a file on a | 801 other words another ``manual''), or, on occasion, even a file on a |
793 remote machine (although Info files distributed with Emacs or the | 802 remote machine (although Info files distributed with Emacs or the |
794 stand-alone Info avoid using remote links). Such a cross reference | 803 stand-alone Info avoid using remote links). Such a cross reference |
795 looks like this: @xref{Top,, Overview of Texinfo, texinfo, Texinfo: | 804 looks like this: @xref{Top,, Overview of Texinfo, texinfo, Texinfo: |
796 The GNU Documentation Format}. (After following this link, type | 805 The GNU Documentation Format}. (After following this link, type |
797 @kbd{l} to get back to this node.) Here the name @samp{texinfo} | 806 @kbd{l} to get back to this node.) Here the name @samp{texinfo} |
798 between parentheses (shown in the stand-alone version) refers to the | 807 between parentheses refers to the file name. This file name appears |
799 file name. This file name appears in cross references and node names | 808 in cross references and node names if it differs from the current |
800 if it differs from the current file. In Emacs, the file name is | 809 file, so you can always know that you are going to be switching to |
801 hidden (along with other text). (Use @kbd{M-x visible-mode} to show | 810 another manual and which one. |
802 or hide it.) | 811 |
803 | 812 However, Emacs normally hides some other text in cross-references. |
804 The remainder of this node applies only to the Emacs version. If | 813 If you put your mouse over the cross reference, then the information |
805 you use the stand-alone version, you can type @kbd{n} immediately. | 814 appearing in a separate box (tool tip) or in the echo area will show |
806 | 815 the full cross-reference including the file name and the node name of |
807 To some users, switching manuals is a much bigger switch than | 816 the cross reference. If you have a mouse, just leave it over the |
808 switching sections. These users like to know that they are going to | 817 cross reference @xref{Top,, Overview of Texinfo, texinfo, Texinfo: |
809 be switching to another manual (and which one) before actually doing | 818 The GNU Documentation Format}, and watch what happens. If you |
810 so, especially given that, if one does not notice, Info commands like | 819 always like to have that information visible without having to move |
811 @kbd{t} (see the next node) can have confusing results. | 820 your mouse over the cross reference, use @kbd{M-x visible-mode}, or |
812 | 821 set @code{Info-hide-note-references} to a value other than @code{t} |
813 If you put your mouse over the cross reference and if the cross | 822 (@pxref{Emacs Info Variables}). |
814 reference leads to a different manual, then the information appearing | |
815 in a separate box (tool tip) or in the echo area, will mention the | |
816 file the cross reference will carry you to (between parentheses). | |
817 This is also true for menu subtopic names. If you have a mouse, just | |
818 leave it over the @samp{Overview} cross reference above and watch what | |
819 happens. | |
820 | |
821 If you always like to have that information available without having | |
822 to move your mouse over the cross reference, set | |
823 @code{Info-hide-note-references} to a value other than @code{t} | |
824 (@pxref{Emacs Info Variables}). You might also want to do that if you | |
825 have a lot of cross references to files on remote machines and have | |
826 non-permanent or slow access, since otherwise you might not be able to | |
827 distinguish between local and remote links. | |
828 | 823 |
829 @format | 824 @format |
830 >> Now type @kbd{n} to learn more commands. | 825 >> Now type @kbd{n} to learn more commands. |
831 @end format | 826 @end format |
832 | 827 |
843 may also include the line number within the node of the index entry. | 838 may also include the line number within the node of the index entry. |
844 This allows Info readers to go to the exact line of an entry, not just | 839 This allows Info readers to go to the exact line of an entry, not just |
845 the start of the containing node.) | 840 the start of the containing node.) |
846 | 841 |
847 You can get to the index from the main menu of the file with the | 842 You can get to the index from the main menu of the file with the |
848 @kbd{m} command; then you can use the @kbd{m} command again in the | 843 @kbd{m} command and the name of the index node; then you can use the |
849 index node to go to the node that describes the topic you want. | 844 @kbd{m} command again in the index node to go to the node that |
845 describes the topic you want. | |
850 | 846 |
851 There is also a short-cut Info command, @kbd{i}, which does all of | 847 There is also a short-cut Info command, @kbd{i}, which does all of |
852 that for you. It searches the index for a given topic (a string) and | 848 that for you. It searches the index for a given topic (a string) and |
853 goes to the node which is listed in the index for that topic. | 849 goes to the node which is listed in the index for that topic. |
854 @xref{Info Search}, for a full explanation. | 850 @xref{Info Search}, for a full explanation. |
855 | 851 |
856 @kindex l @r{(Info mode)} | 852 @kindex l @r{(Info mode)} |
857 @findex Info-last | 853 @findex Info-history-back |
858 @cindex going back in Info mode | 854 @cindex going back in Info history |
859 If you have been moving around to different nodes and wish to | 855 If you have been moving around to different nodes and wish to |
860 retrace your steps, the @kbd{l} command (@kbd{l} for @dfn{last}) will | 856 retrace your steps, the @kbd{l} command (@kbd{l} for @dfn{last}) will |
861 do that, one node-step at a time. As you move from node to node, Info | 857 do that, one node-step at a time. As you move from node to node, Info |
862 records the nodes where you have been in a special history list. The | 858 records the nodes where you have been in a special history list. The |
863 @kbd{l} command revisits nodes in the history list; each successive | 859 @kbd{l} command revisits nodes in the history list; each successive |
864 @kbd{l} command moves one step back through the history. | 860 @kbd{l} command moves one step back through the history. |
865 | 861 |
866 In Emacs, @kbd{l} runs the command @code{Info-last}. | 862 In Emacs, @kbd{l} runs the command @code{Info-history-back}. |
867 | 863 |
868 @format | 864 @format |
869 >> Try typing @kbd{p p n} and then three @kbd{l}'s, pausing in between | 865 >> Try typing @kbd{p p n} and then three @kbd{l}'s, pausing in between |
870 to see what each @kbd{l} does. You should wind up right back here. | 866 to see what each @kbd{l} does. You should wind up right back here. |
871 @end format | 867 @end format |
872 | 868 |
873 Note the difference between @kbd{l} and @kbd{p}: @kbd{l} moves to | 869 Note the difference between @kbd{l} and @kbd{p}: @kbd{l} moves to |
874 where @emph{you} last were, whereas @kbd{p} always moves to the node | 870 where @emph{you} last were, whereas @kbd{p} always moves to the node |
875 which the header says is the @samp{Previous} node (from this node, the | 871 which the header says is the @samp{Previous} node (from this node, the |
876 @samp{Prev} link leads to @samp{Help-Xref}). | 872 @samp{Prev} link leads to @samp{Help-Xref}). |
873 | |
874 @kindex r @r{(Info mode)} | |
875 @findex Info-history-forward | |
876 @cindex going forward in Info history | |
877 You can use the @kbd{r} command (@code{Info-history-forward} in Emacs) | |
878 to revisit nodes in the history list in the forward direction, so that | |
879 @kbd{r} will return you to the node you came from by typing @kbd{l}. | |
877 | 880 |
878 @kindex d @r{(Info mode)} | 881 @kindex d @r{(Info mode)} |
879 @findex Info-directory | 882 @findex Info-directory |
880 @cindex go to Directory node | 883 @cindex go to Directory node |
881 The @kbd{d} command (@code{Info-directory} in Emacs) gets you | 884 The @kbd{d} command (@code{Info-directory} in Emacs) gets you |
896 The @kbd{t} command moves to the @samp{Top} node of the manual. | 899 The @kbd{t} command moves to the @samp{Top} node of the manual. |
897 This is useful if you want to browse the manual's main menu, or select | 900 This is useful if you want to browse the manual's main menu, or select |
898 some specific top-level menu item. The Emacs command run by @kbd{t} | 901 some specific top-level menu item. The Emacs command run by @kbd{t} |
899 is @code{Info-top-node}. | 902 is @code{Info-top-node}. |
900 | 903 |
901 Clicking @kbd{Mouse-2} on or near a cross reference also follows the | |
902 reference. You can see that the cross reference is mouse-sensitive by | |
903 moving the mouse pointer to the reference and watching how the | |
904 underlying text and the mouse pointer change in response. | |
905 | |
906 @format | 904 @format |
907 >> Now type @kbd{n} to see the last node of the course. | 905 >> Now type @kbd{n} to see the last node of the course. |
908 @end format | 906 @end format |
909 | 907 |
910 @xref{Expert Info}, for more advanced Info features. | 908 @xref{Expert Info}, for more advanced Info features. |
933 * Add:: Describes how to add new nodes to the hierarchy. | 931 * Add:: Describes how to add new nodes to the hierarchy. |
934 Also tells what nodes look like. | 932 Also tells what nodes look like. |
935 * Menus:: How to add to or create menus in Info nodes. | 933 * Menus:: How to add to or create menus in Info nodes. |
936 * Cross-refs:: How to add cross-references to Info nodes. | 934 * Cross-refs:: How to add cross-references to Info nodes. |
937 * Tags:: How to make tags tables for Info files. | 935 * Tags:: How to make tags tables for Info files. |
938 * Checking:: Checking an Info File | 936 * Checking:: Checking an Info File. |
939 * Emacs Info Variables:: Variables modifying the behavior of Emacs Info. | 937 * Emacs Info Variables:: Variables modifying the behavior of Emacs Info. |
940 @end menu | 938 @end menu |
941 | 939 |
942 @node Advanced, Info Search, , Expert Info | 940 @node Advanced, Info Search, , Expert Info |
943 @comment node-name, next, previous, up | 941 @comment node-name, next, previous, up |
967 the node @samp{Top} in the Info file @file{dir}. Likewise, | 965 the node @samp{Top} in the Info file @file{dir}. Likewise, |
968 @kbd{g(emacs)Top@key{RET}} goes to the top node of the Emacs manual. | 966 @kbd{g(emacs)Top@key{RET}} goes to the top node of the Emacs manual. |
969 | 967 |
970 The node name @samp{*} specifies the whole file. So you can look at | 968 The node name @samp{*} specifies the whole file. So you can look at |
971 all of the current file by typing @kbd{g*@key{RET}} or all of any | 969 all of the current file by typing @kbd{g*@key{RET}} or all of any |
972 other file with @kbd{g(@var{filename})@key{RET}}. | 970 other file with @kbd{g(@var{filename})*@key{RET}}. |
973 | 971 |
974 @subheading @kbd{1}--@kbd{9} choose a menu subtopic by its number | 972 @subheading @kbd{1}--@kbd{9} choose a menu subtopic by its number |
975 | 973 |
976 @kindex 1 @r{through} 9 @r{(Info mode)} | 974 @kindex 1 @r{through} 9 @r{(Info mode)} |
977 @findex Info-nth-menu-item | 975 @findex Info-nth-menu-item |
1015 | 1013 |
1016 @kindex M-n @r{(Info mode)} | 1014 @kindex M-n @r{(Info mode)} |
1017 @findex clone-buffer | 1015 @findex clone-buffer |
1018 @cindex multiple Info buffers | 1016 @cindex multiple Info buffers |
1019 If you are reading Info in Emacs, you can select a new independent | 1017 If you are reading Info in Emacs, you can select a new independent |
1020 Info buffer in another window by typing @kbd{M-n}. The new buffer | 1018 Info buffer in the same window by typing @kbd{M-n}. The new buffer |
1021 starts out as an exact copy of the old one, but you will be able to | 1019 starts out as an exact copy of the old one, but you will be able to |
1022 move independently between nodes in the two buffers. (In Info mode, | 1020 move independently between nodes in the two buffers. (In Info mode, |
1023 @kbd{M-n} runs the Emacs command @code{clone-buffer}.) | 1021 @kbd{M-n} runs the Emacs command @code{clone-buffer}.) |
1024 | 1022 |
1025 In Emacs Info, you can also produce new Info buffers by giving a | 1023 In Emacs Info, you can also produce new Info buffers by giving a |
1026 numeric prefix argument to the @kbd{m} and @kbd{g} commands. @kbd{C-u | 1024 numeric prefix argument to the @kbd{m} and @kbd{g} commands. @kbd{C-u |
1027 m} and @kbd{C-u g} go to a new node in exactly the same way that | 1025 m} and @kbd{C-u g} go to a new node in exactly the same way that |
1028 @kbd{m} and @kbd{g} do, but they do so in a new Info buffer which they | 1026 @kbd{m} and @kbd{g} do, but they do so in a new Info buffer which they |
1029 select in another window. | 1027 select in another window. |
1028 | |
1029 Another way to produce new Info buffers in Emacs is to use a numeric | |
1030 prefix argument for the @kbd{C-h i} command (@code{info}) which | |
1031 switches to the Info buffer with that number. Thus, @kbd{C-u 2 C-h i} | |
1032 switches to the buffer @samp{*info*<2>}, creating it if necessary. | |
1030 | 1033 |
1031 @node Info Search, Add, Advanced, Expert Info | 1034 @node Info Search, Add, Advanced, Expert Info |
1032 @comment node-name, next, previous, up | 1035 @comment node-name, next, previous, up |
1033 @section How to search Info documents for specific subjects | 1036 @section How to search Info documents for specific subjects |
1034 | 1037 |
1081 you type inside Emacs to run the command bound to @kbd{C-f}. | 1084 you type inside Emacs to run the command bound to @kbd{C-f}. |
1082 | 1085 |
1083 In Emacs, @kbd{i} runs the command @code{Info-index}. | 1086 In Emacs, @kbd{i} runs the command @code{Info-index}. |
1084 | 1087 |
1085 @findex info-apropos | 1088 @findex info-apropos |
1089 @findex index-apropos | |
1086 If you don't know what manual documents something, try the @kbd{M-x | 1090 If you don't know what manual documents something, try the @kbd{M-x |
1087 info-apropos} command. It prompts for a string and then looks up that | 1091 info-apropos} command in Emacs, or the @kbd{M-x index-apropos} command |
1088 string in all the indices of all the Info documents installed on your | 1092 in the stand-alone reader. It prompts for a string and then looks up |
1089 system. | 1093 that string in all the indices of all the Info documents installed on |
1094 your system. | |
1090 | 1095 |
1091 @kindex s @r{(Info mode)} | 1096 @kindex s @r{(Info mode)} |
1092 @findex Info-search | 1097 @findex Info-search |
1093 The @kbd{s} command allows you to search a whole file for a string. | 1098 The @kbd{s} command allows you to search a whole file for a string. |
1094 It switches to the next node if and when that is necessary. You | 1099 It switches to the next node if and when that is necessary. You |
1095 type @kbd{s} followed by the string to search for, terminated by | 1100 type @kbd{s} followed by the string to search for, terminated by |
1096 @key{RET}. To search for the same string again, just @kbd{s} followed | 1101 @key{RET}. To search for the same string again, just @kbd{s} followed |
1097 by @key{RET} will do. The file's nodes are scanned in the order | 1102 by @key{RET} will do. The file's nodes are scanned in the order |
1098 they are in in the file, which has no necessary relationship to the | 1103 they are in the file, which has no necessary relationship to the |
1099 order that they may be in the tree structure of menus and @samp{next} | 1104 order that they may be in the tree structure of menus and @samp{next} |
1100 pointers. But normally the two orders are not very different. In any | 1105 pointers. But normally the two orders are not very different. In any |
1101 case, you can always do a @kbd{b} to find out what node you have | 1106 case, you can always look at the echo area to find out what node you have |
1102 reached, if the header is not visible (this can happen, because @kbd{s} | 1107 reached, if the header is not visible (this can happen, because @kbd{s} |
1103 puts your cursor at the occurrence of the string, not at the beginning | 1108 puts your cursor at the occurrence of the string, not at the beginning |
1104 of the node). | 1109 of the node). |
1105 | 1110 |
1106 @kindex M-s @r{(Info mode)} | 1111 @kindex M-s @r{(Info mode)} |
1107 In Emacs, @kbd{Meta-s} is equivalent to @kbd{s}. That is for | 1112 In Emacs, @kbd{Meta-s} is equivalent to @kbd{s}. That is for |
1108 compatibility with other GNU packages that use @kbd{M-s} for a similar | 1113 compatibility with other GNU packages that use @kbd{M-s} for a similar |
1109 kind of search command. Both @kbd{s} and @kbd{M-s} run in Emacs the | 1114 kind of search command. Both @kbd{s} and @kbd{M-s} run in Emacs the |
1110 command @code{Info-search}. | 1115 command @code{Info-search}. |
1111 | 1116 |
1117 @kindex C-s @r{(Info mode)} | |
1118 @kindex C-r @r{(Info mode)} | |
1119 @findex isearch | |
1120 Instead of using @kbd{s} in Emacs Info and in the stand-alone Info, | |
1121 you can use an incremental search started with @kbd{C-s} or @kbd{C-r}. | |
1122 It can search through multiple Info nodes. @xref{Incremental Search,,, | |
1123 emacs, The GNU Emacs Manual}. In Emacs, this behavior is enabled only | |
1124 if the variable @code{Info-isearch-search} is non-@code{nil} | |
1125 (@pxref{Emacs Info Variables}). | |
1112 | 1126 |
1113 @node Add, Menus, Info Search, Expert Info | 1127 @node Add, Menus, Info Search, Expert Info |
1114 @comment node-name, next, previous, up | 1128 @comment node-name, next, previous, up |
1115 @section Adding a new node to Info | 1129 @section Adding a new node to Info |
1116 | 1130 |
1243 appropriate to the meaning to be expressed. There is no need for all | 1257 appropriate to the meaning to be expressed. There is no need for all |
1244 the nodes in a file to form a connected structure. In fact, this file | 1258 the nodes in a file to form a connected structure. In fact, this file |
1245 has two connected components. You are in one of them, which is under | 1259 has two connected components. You are in one of them, which is under |
1246 the node @samp{Top}; the other contains the node @samp{Help} which the | 1260 the node @samp{Top}; the other contains the node @samp{Help} which the |
1247 @kbd{h} command goes to. In fact, since there is no garbage | 1261 @kbd{h} command goes to. In fact, since there is no garbage |
1248 collector, nothing terrible happens if a substructure is not pointed | 1262 collector on the node graph, nothing terrible happens if a substructure |
1249 to, but such a substructure is rather useless since nobody can | 1263 is not pointed to, but such a substructure is rather useless since nobody |
1250 ever find out that it exists. | 1264 can ever find out that it exists. |
1251 | 1265 |
1252 @node Cross-refs, Tags, Menus, Expert Info | 1266 @node Cross-refs, Tags, Menus, Expert Info |
1253 @comment node-name, next, previous, up | 1267 @comment node-name, next, previous, up |
1254 @section Creating Cross References | 1268 @section Creating Cross References |
1255 | 1269 |
1326 | 1340 |
1327 @node Tags, Checking, Cross-refs, Expert Info | 1341 @node Tags, Checking, Cross-refs, Expert Info |
1328 @comment node-name, next, previous, up | 1342 @comment node-name, next, previous, up |
1329 @section Tags Tables for Info Files | 1343 @section Tags Tables for Info Files |
1330 | 1344 |
1331 @cindex tags tables in info files | 1345 @cindex tags tables in Info files |
1332 You can speed up the access to nodes of a large Info file by giving | 1346 You can speed up the access to nodes of a large Info file by giving |
1333 it a tags table. Unlike the tags table for a program, the tags table for | 1347 it a tags table. Unlike the tags table for a program, the tags table for |
1334 an Info file lives inside the file itself and is used | 1348 an Info file lives inside the file itself and is used |
1335 automatically whenever Info reads in the file. | 1349 automatically whenever Info reads in the file. |
1336 | 1350 |
1406 initialized Info uses the environment variable @env{INFOPATH} to | 1420 initialized Info uses the environment variable @env{INFOPATH} to |
1407 initialize it, or @code{Info-default-directory-list} if there is no | 1421 initialize it, or @code{Info-default-directory-list} if there is no |
1408 @env{INFOPATH} variable in the environment. | 1422 @env{INFOPATH} variable in the environment. |
1409 | 1423 |
1410 If you wish to customize the Info directory search list for both Emacs | 1424 If you wish to customize the Info directory search list for both Emacs |
1411 info and stand-alone Info, it is best to set the @env{INFOPATH} | 1425 Info and stand-alone Info, it is best to set the @env{INFOPATH} |
1412 environment variable, since that applies to both programs. | 1426 environment variable, since that applies to both programs. |
1413 | 1427 |
1414 @item Info-additional-directory-list | 1428 @item Info-additional-directory-list |
1415 A list of additional directories to search for Info documentation files. | 1429 A list of additional directories to search for Info documentation files. |
1416 These directories are not searched for merging the @file{dir} file. | 1430 These directories are not searched for merging the @file{dir} file. |
1417 | 1431 |
1418 @item Info-fontify | 1432 @item Info-mode-hook |
1419 When set to a non-@code{nil} value, enables highlighting of Info | 1433 Hooks run when @code{Info-mode} is called. By default, it contains |
1420 files. The default is @code{t}. You can change how the highlighting | 1434 the hook @code{turn-on-font-lock} which enables highlighting of Info |
1421 looks by customizing the faces @code{info-node}, @code{info-xref}, | 1435 files. You can change how the highlighting looks by customizing the |
1422 @code{info-header-xref}, @code{info-header-node}, @code{info-menu-5}, | 1436 faces @code{info-node}, @code{info-xref}, @code{info-xref-visited}, |
1423 @code{info-menu-header}, and @code{info-title-@var{n}-face} (where | 1437 @code{info-header-xref}, @code{info-header-node}, @code{info-menu-header}, |
1424 @var{n} is the level of the section, a number between 1 and 4). To | 1438 @code{info-menu-star}, and @code{info-title-@var{n}} (where @var{n} |
1425 customize a face, type @kbd{M-x customize-face @key{RET} @var{face} | 1439 is the level of the section, a number between 1 and 4). To customize |
1426 @key{RET}}, where @var{face} is one of the face names listed here. | 1440 a face, type @kbd{M-x customize-face @key{RET} @var{face} @key{RET}}, |
1441 where @var{face} is one of the face names listed here. | |
1442 | |
1443 @item Info-fontify-maximum-menu-size | |
1444 Maximum size of menu to fontify if @code{font-lock-mode} is non-@code{nil}. | |
1445 | |
1446 @item Info-fontify-visited-nodes | |
1447 If non-@code{nil}, menu items and cross-references pointing to visited | |
1448 nodes are displayed in the @code{info-xref-visited} face. | |
1427 | 1449 |
1428 @item Info-use-header-line | 1450 @item Info-use-header-line |
1429 If non-@code{nil}, Emacs puts in the Info buffer a header line showing | 1451 If non-@code{nil}, Emacs puts in the Info buffer a header line showing |
1430 the @samp{Next}, @samp{Prev}, and @samp{Up} links. A header line does | 1452 the @samp{Next}, @samp{Prev}, and @samp{Up} links. A header line does |
1431 not scroll with the rest of the buffer, making these links always | 1453 not scroll with the rest of the buffer, making these links always |
1447 subnode indicated by the following menu item. Setting this option to | 1469 subnode indicated by the following menu item. Setting this option to |
1448 @code{nil} results in behavior similar to the stand-alone Info reader | 1470 @code{nil} results in behavior similar to the stand-alone Info reader |
1449 program, which visits the first subnode from the menu only when you | 1471 program, which visits the first subnode from the menu only when you |
1450 hit the end of the current node. The default is @code{nil}. | 1472 hit the end of the current node. The default is @code{nil}. |
1451 | 1473 |
1474 @item Info-isearch-search | |
1475 If non-@code{nil}, isearch in Info searches through multiple nodes. | |
1476 | |
1452 @item Info-enable-active-nodes | 1477 @item Info-enable-active-nodes |
1453 When set to a non-@code{nil} value, allows Info to execute Lisp code | 1478 When set to a non-@code{nil} value, allows Info to execute Lisp code |
1454 associated with nodes. The Lisp code is executed when the node is | 1479 associated with nodes. The Lisp code is executed when the node is |
1455 selected. The Lisp code to be executed should follow the node | 1480 selected. The Lisp code to be executed should follow the node |
1456 delimiter (the @samp{DEL} character) and an @samp{execute: } tag, like | 1481 delimiter (the @samp{DEL} character) and an @samp{execute: } tag, like |