comparison man/xemacs/help.texi @ 404:2f8bb876ab1d r21-2-32

Import from CVS: tag r21-2-32
author cvs
date Mon, 13 Aug 2007 11:16:07 +0200
parents cc15677e0335
children de805c49cfc1
comparison
equal deleted inserted replaced
403:9f011ab08d48 404:2f8bb876ab1d
1 1
2 @node Help, Mark, M-x, Top 2 @node Help, Mark, M-x, Top
3 @chapter Help 3 @chapter Help
4 @kindex Help
4 @cindex help 5 @cindex help
5 @cindex self-documentation 6 @cindex self-documentation
6 7 @findex help-command
7 Emacs provides extensive help features which revolve around a single 8 @kindex C-h
9 @kindex F1
10
11 XEmacs provides extensive help features accessible through a single
8 character, @kbd{C-h}. @kbd{C-h} is a prefix key that is used only for 12 character, @kbd{C-h}. @kbd{C-h} is a prefix key that is used only for
9 documentation-printing commands. The characters you can type after 13 documentation-printing commands. The characters that you can type after
10 @kbd{C-h} are called @dfn{help options}. One help option is @kbd{C-h}; 14 @kbd{C-h} are called @dfn{help options}. One help option is @kbd{C-h};
11 you use it to ask for help about using @kbd{C-h}. 15 that is how you ask for help about using @kbd{C-h}. To cancel, type
12 16 @kbd{C-g}. The function key @key{F1} is equivalent to @kbd{C-h}.
13 @kbd{C-h C-h} prints a list of the possible help options, and then asks 17
14 you to type the desired option. It prompts with the string: 18 @kindex C-h C-h
19 @findex help-for-help
20 @kbd{C-h C-h} (@code{help-for-help}) displays a list of the possible
21 help options, and then asks you to type the desired option. It prompts
22 with the string:
15 23
16 @smallexample 24 @smallexample
17 A, B, C, F, I, K, L, M, N, S, T, V, W, C-c, C-d, C-n, C-w or C-h for more help: 25 A B C F I K L M N P S T V W C-c C-d C-f C-i C-k C-n C-w; ? for more help:
18 @end smallexample 26 @end smallexample
19 27
20 @noindent 28 @noindent
21 You should type one of those characters. 29 You should type one of those characters.
22 30
23 Typing a third @kbd{C-h} displays a description of what the options mean; 31 Typing a third @kbd{C-h} displays a description of what the options mean;
24 Emacs still waits for you to type an option. To cancel, type @kbd{C-g}. 32 Emacs still waits for you to type an option. To cancel, type @kbd{C-g}.
25 33
34 Most help buffers use a special major mode, Help mode, which lets you
35 scroll conveniently with @key{SPC} and @key{DEL} or @key{BS}.
36
37 @menu
38 * Help Summary:: Brief list of all Help commands.
39 * Key Help:: Asking what a key does in XEmacs.
40 * Name Help:: Asking about a command, variable or function name.
41 * Apropos:: Asking what pertains to a given topic.
42 * Library Keywords:: Finding Lisp libraries by keywords (topics).
43 * Help Mode:: Special features of Help mode and Help buffers.
44 * Misc Help:: Other help commands.
45 @end menu
46
47 @iftex
48 @node Help Summary, Help Summary, Help, Help
49 @end iftex
50 @ifinfo
51 @node Help Summary, Key Help, Help, Help
52 @section Help Summary
53 @end ifinfo
54
26 Here is a summary of the defined help commands. 55 Here is a summary of the defined help commands.
27 56
28 @table @kbd 57 @table @kbd
29 @item C-h a @var{string} @key{RET} 58 @item C-h a @var{regexp} @key{RET}
30 Display a list of commands whose names contain @var{string} 59 Display a list of functions and variables whose names match @var{regexp}
31 (@code{command-@*apropos}).@refill 60 (@code{heper-apropos}).
61 @item C-h A @var{regexp}
62 Show all commands whose names contain matches for @var{regexp}
63 (@code{command-apropos}).
32 @item C-h b 64 @item C-h b
33 Display a table of all key bindings currently in effect, with local bindings of 65 Display a table of all key bindings currently in effect, with local
34 the current major mode first, followed by all global bindings 66 bindings of the current major mode first, followed by all global
35 (@code{describe-bindings}). 67 bindings (@code{describe-bindings}).
36 @item C-h c @var{key} 68 @item C-h c @var{key}
37 Print the name of the command that @var{key} runs (@code{describe-key-@*briefly}). 69 Print the name of the command that @var{key} runs
38 @kbd{c} is for `character'. For more extensive information on @var{key}, 70 (@code{describe-key-briefly}). Here @kbd{c} stands for `character'. For more
39 use @kbd{C-h k}. 71 extensive information on @var{key}, use @kbd{C-h k}.
40 @item C-h f @var{function} @key{RET} 72 @item C-h d @var{function} @key{RET}
73 @itemx C-h f @var{function} @key{RET}
41 Display documentation on the Lisp function named @var{function} 74 Display documentation on the Lisp function named @var{function}
42 (@code{describe-function}). Note that commands are Lisp functions, so 75 (@code{describe-function}). Since commands are Lisp functions,
43 a command name may be used. 76 a command name may be used.
44 @item C-h i 77 @item C-h i
45 Run Info, the program for browsing documentation files (@code{info}). 78 Run Info, the program for browsing documentation files (@code{info}).
46 The complete Emacs manual is available online in Info. 79 The complete XEmacs manual is available online in Info.
47 @item C-h k @var{key} 80 @item C-h k @var{key}
48 Display name and documentation of the command @var{key} runs (@code{describe-key}). 81 Display the name and documentation of the command that @var{key} runs
82 (@code{describe-key}).
49 @item C-h l 83 @item C-h l
50 Display a description of the last 100 characters you typed 84 Display a description of the last 100 characters you typed
51 (@code{view-lossage}). 85 (@code{view-lossage}).
52 @item C-h m 86 @item C-h m
53 Display documentation of the current major mode (@code{describe-mode}). 87 Display documentation of the current major mode (@code{describe-mode}).
54 @item C-h n 88 @item C-h n
55 Display documentation of Emacs changes, most recent first 89 @itemx C-h C-n
90 Display documentation of XEmacs changes, most recent first
56 (@code{view-emacs-news}). 91 (@code{view-emacs-news}).
57 @item C-h p 92 @item C-h p
93 Find packages by topic keyword (@code{finder-by-keyword}).
94 @item C-h C-p
58 Display a table of all mouse bindings currently in effect now, with 95 Display a table of all mouse bindings currently in effect now, with
59 local bindings of the current major mode first, followed by all global bindings 96 local bindings of the current major mode first, followed by all global
60 (@code{describe-pointer}). 97 bindings (@code{describe-pointer}).
61 @item C-h s 98 @item C-h s
62 Display current contents of the syntax table, plus an explanation of 99 Display current contents of the syntax table, plus an explanation of
63 what they mean (@code{describe-syntax}). 100 what they mean (@code{describe-syntax}). @xref{Syntax}.
64 @item C-h t 101 @item C-h t
65 Display the Emacs tutorial (@code{help-with-tutorial}). 102 Enter the XEmacs interactive tutorial (@code{help-with-tutorial}).
66 @item C-h v @var{var} @key{RET} 103 @item C-h v @var{var} @key{RET}
67 Display the documentation of the Lisp variable @var{var} 104 Display the documentation of the Lisp variable @var{var}
68 (@code{describe-@*variable}). 105 (@code{describe-variable}).
69 @item C-h w @var{command} @key{RET} 106 @item C-h w @var{command} @key{RET}
70 Print which keys run the command named @var{command} (@code{where-is}). 107 Print which keys run the command named @var{command} (@code{where-is}).
71 @item M-x apropos @var{regexp} 108 @item C-h B @key{RET}
72 Show all symbols whose names contain matches for @var{regexp}. 109 Display info on how to deal with Beta versions of XEmacs
110 (@code{describe-beta}).
111 @item C-h C @var{group} @key{RET}
112 Select customization buffer for @var{group} (@code{customize}).
113 @item C-h F @key{RET}
114 View the local copy of the XEmacs FAQ (@code{xemacs-local-faq}).
115 @item C-h C-i @var{file} @key{RET}
116 Read Info file @var{file} with Info browser (@code{Info-query}).
117 @item C-h C-c @var{command} @key{RET}
118 Look up an Emacs command @var{command} in the Emacs manual in the Info
119 system (@code{Info-goto-emacs-command-node}).
120 @item C-h C-f @var{function} @key{RET}
121 Look up an Emacs Lisp function @var{function} in the Elisp manual in the
122 Info system (@code{Info-elisp-ref}).
73 @end table 123 @end table
74 124
125 @node Key Help, Name Help, Help Summary, Help
75 @section Documentation for a Key 126 @section Documentation for a Key
76 127
77 @kindex C-h c 128 @kindex C-h c
78 @findex describe-key-briefly 129 @findex describe-key-briefly
79 The most basic @kbd{C-h} options are @kbd{C-h c} 130 The most basic @kbd{C-h} options are @kbd{C-h c}
80 (@code{describe-key-briefly}) and @kbd{C-h k}@*(@code{describe-key}). 131 (@code{describe-key-briefly}) and @w{@kbd{C-h k}} (@code{describe-key}).
81 @kbd{C-h c @var{key}} prints the name of the command that @var{key} is 132 @kbd{C-h c @var{key}} prints in the echo area the name of the command
82 bound to in the echo area. For example, @kbd{C-h c C-f} prints 133 that @var{key} is bound to. For example, @kbd{C-h c C-f} prints
83 @samp{forward-char}. Since command names are chosen to describe what 134 @samp{forward-char}. Since command names are chosen to describe what
84 the command does, using this option is a good way to get a somewhat cryptic 135 the commands do, this is a good way to get a very brief description of
85 description of what @var{key} does.@refill 136 what @var{key} does.
86 137
87 @kindex C-h k 138 @kindex C-h k
88 @findex describe-key 139 @findex describe-key
89 @kbd{C-h k @var{key}} is similar to @kbd{C-h c} but gives more 140 @kbd{C-h k @var{key}} is similar to @kbd{C-h c} but gives more
90 information. It displays the documentation string of the function 141 information. It displays the documentation string of the function
91 @var{key} is bound to as well as its name. @var{key} is a string or 142 @var{key} is bound to as well as its name. @var{key} is a string or
92 vector of events. When called interactively, @var{key} may also be a menu 143 vector of events. When called interactively, @var{key} may also be a menu
93 selection. This information does not usually fit into the echo area, so a 144 selection. This information does not usually fit into the echo area, so a
94 window is used for the display. 145 window is used for the display.
95 146
147 @kbd{C-h c} and @kbd{C-h k} work for any sort of key sequences,
148 including function keys and mouse events.
149
150 @node Name Help, Apropos, Key Help, Help
96 @section Help by Command or Variable Name 151 @section Help by Command or Variable Name
97 152
98 @kindex C-h f 153 @kindex C-h f
99 @findex describe-function 154 @findex describe-function
100 @vindex describe-function-show-arglist 155 @vindex describe-function-show-arglist
114 to any key, that is, a command you would normally call using @kbd{M-x}. 169 to any key, that is, a command you would normally call using @kbd{M-x}.
115 If the variable @code{describe-function-show-arglist} is @code{t}, 170 If the variable @code{describe-function-show-arglist} is @code{t},
116 @code{describe-function} shows its arglist if the @var{function} is not 171 @code{describe-function} shows its arglist if the @var{function} is not
117 an autoload function. 172 an autoload function.
118 173
119 @kbd{C-h f} is also useful for Lisp functions you are planning to 174 @kbd{C-h f} is also useful for Lisp functions that you are planning to
120 use in a Lisp program. For example, if you have just written the code 175 use in a Lisp program. For example, if you have just written the
121 @code{(make-vector len)} and want to make sure you are using 176 expression @code{(make-vector len)} and want to make sure you are using
122 @code{make-vector} properly, type @kbd{C-h f make-vector @key{RET}}. Because 177 @code{make-vector} properly, type @kbd{C-h f make-vector @key{RET}}.
123 @kbd{C-h f} allows all function names, not just command names, you may find 178 Because @kbd{C-h f} allows all function names, not just command names,
124 that some of your favorite abbreviations that work in @kbd{M-x} don't work 179 you may find that some of your favorite abbreviations that work in
125 in @kbd{C-h f}. An abbreviation may be unique among command names, yet fail 180 @kbd{M-x} don't work in @kbd{C-h f}. An abbreviation may be unique
126 to be unique when other function names are allowed. 181 among command names, yet fail to be unique when other function names are
127 182 allowed.
128 183
129 If you type @key{RET}, leaving the minibuffer empty, @kbd{C-h f} by 184 The function name for @kbd{C-h f} to describe has a default which is
130 default describes the function called by the innermost Lisp expression 185 used if you type @key{RET} leaving the minibuffer empty. The default is
131 in the buffer around point, @i{provided} that that is a valid, defined Lisp 186 the function called by the innermost Lisp expression in the buffer
132 function name. For example, if point is located following the text 187 around point, @emph{provided} that is a valid, defined Lisp function
188 name. For example, if point is located following the text
133 @samp{(make-vector (car x)}, the innermost list containing point is the 189 @samp{(make-vector (car x)}, the innermost list containing point is the
134 one starting with @samp{(make-vector}, so the default is to describe 190 one that starts with @samp{(make-vector}, so the default is to describe the
135 the function @code{make-vector}. 191 function @code{make-vector}.
136 192
137 @kbd{C-h f} is often useful just to verify that you have the right 193 @kbd{C-h f} is often useful just to verify that you have the right
138 spelling for the function name. If @kbd{C-h f} mentions a default in the 194 spelling for the function name. If @kbd{C-h f} mentions a name from the
139 prompt, you have typed the name of a defined Lisp function. If that is 195 buffer as the default, that name must be defined as a Lisp function. If
140 what you wanted to know, just type @kbd{C-g} to cancel the @kbd{C-h f} 196 that is all you want to know, just type @kbd{C-g} to cancel the @kbd{C-h
141 command and continue editing. 197 f} command, then go on editing.
142 198
143 @kindex C-h w 199 @kindex C-h w
144 @findex where-is 200 @findex where-is
145 @kbd{C-h w @var{command} @key{RET}} (@code{where-s}) tells you what 201 @kbd{C-h w @var{command} @key{RET}} (@code{where-is}) tells you what
146 keys are bound to @var{command}. It prints a list of the keys in the 202 keys are bound to @var{command}. It prints a list of the keys in the
147 echo area. Alternatively, it informs you that a command is not bound to 203 echo area. Alternatively, it informs you that a command is not bound to
148 any keys, which implies that you must use @kbd{M-x} to call the 204 any keys, which implies that you must use @kbd{M-x} to call the
149 command.@refill 205 command.
150 206
151 @kindex C-h v 207 @kindex C-h v
152 @findex describe-variable 208 @findex describe-variable
153 @kbd{C-h v} (@code{describe-variable}) is like @kbd{C-h f} but 209 @kbd{C-h v} (@code{describe-variable}) is like @kbd{C-h f} but
154 describes Lisp variables instead of Lisp functions. Its default is the 210 describes Lisp variables instead of Lisp functions. Its default is the
155 Lisp symbol around or before point, if that is the name of a known Lisp 211 Lisp symbol around or before point, if that is the name of a known Lisp
156 variable. @xref{Variables}.@refill 212 variable. @xref{Variables}.
157 213
214 @node Apropos, Library Keywords, Name Help, Help
158 @section Apropos 215 @section Apropos
159 216
160 @kindex C-h a 217 @kindex C-h A
161 @findex command-apropos 218 @findex command-apropos
162 @cindex apropos 219 @cindex apropos
163 220
164 @table @kbd 221 @table @kbd
165 @item C-h a 222 @item C-h A
166 Show only symbols that are names of commands 223 Show only symbols that are names of commands
167 (@code{command-apropos}).@refill 224 (@code{command-apropos}).
168 225
169 @item M-x apropos @var{regexp} 226 @item M-x apropos @var{regexp}
170 Show all symbols whose names comtain matches for @var{regexp}. 227 Show all symbols whose names comtain matches for @var{regexp}.
171 @end table 228 @end table
172 229
173 It is possible to ask a question like, ``What are the commands for 230 A more sophisticated sort of question to ask is, ``What are the
174 working with files?'' To do this, type @kbd{C-h a file @key{RET}}, 231 commands for working with files?'' To ask this question, type @kbd{C-h
175 which displays a list of all command names that contain @samp{file}, 232 a file @key{RET}}, which displays a list of all command names that
176 such as @code{copy-file}, @code{find-file}, and so on. With each 233 contain @samp{file}, including @code{copy-file}, @code{find-file}, and
177 command name a brief description of its use and information on the keys 234 so on. With each command name appears a brief description of how to use
178 you can use to invoke it is displayed. For example, you would be 235 the command, and what keys you can currently invoke it with. For
179 informed that you can invoke @code{find-file} by typing @kbd{C-x C-f}. 236 example, it would say that you can invoke @code{find-file} by typing
180 The @kbd{a} in @kbd{C-h a} stands for `Apropos'; @kbd{C-h a} runs the 237 @kbd{C-x C-f}. The @kbd{A} in @kbd{C-h A} stands for `Apropos';
181 Lisp function @code{command-apropos}.@refill 238 @kbd{C-h A} runs the command @code{command-apropos}. This command
182 239 normally checks only commands (interactive functions); if you specify a
183 Because @kbd{C-h a} looks only for functions whose names contain the 240 prefix argument, it checks noninteractive functions as well.
241
242 Because @kbd{C-h A} looks only for functions whose names contain the
184 string you specify, you must use ingenuity in choosing the string. If 243 string you specify, you must use ingenuity in choosing the string. If
185 you are looking for commands for killing backwards and @kbd{C-h a 244 you are looking for commands for killing backwards and @kbd{C-h a
186 kill-backwards @key{RET}} doesn't reveal any commands, don't give up. 245 kill-backwards @key{RET}} doesn't reveal any, don't give up. Try just
187 Try just @kbd{kill}, or just @kbd{backwards}, or just @kbd{back}. Be 246 @kbd{kill}, or just @kbd{backwards}, or just @kbd{back}. Be persistent.
188 persistent. Pretend you are playing Adventure. Also note that you can 247 Pretend you are playing Adventure. Also note that you can use a regular
189 use a regular expression as the argument (@pxref{Regexps}). 248 expression as the argument, for more flexibility (@pxref{Regexps}).
190 249
191 Here is a set of arguments to give to @kbd{C-h a} that covers many 250 Here is a set of arguments to give to @kbd{C-h a} that covers many
192 classes of Emacs commands, since there are strong conventions for naming 251 classes of XEmacs commands, since there are strong conventions for
193 standard Emacs commands. By giving you a feeling for the naming 252 naming the standard XEmacs commands. By giving you a feel for the
194 conventions, this set of arguments can also help you develop a 253 naming conventions, this set should also serve to aid you in developing
195 technique for picking @code{apropos} strings. 254 a technique for picking @code{apropos} strings.
196 255
197 @quotation 256 @quotation
198 char, line, word, sentence, paragraph, region, page, sexp, list, defun, 257 char, line, word, sentence, paragraph, region, page, sexp, list, defun,
199 buffer, frame, window, file, dir, register, mode, 258 rect, buffer, frame, window, face, file, dir, register, mode, beginning,
200 beginning, end, forward, backward, next, previous, up, down, search, goto, 259 end, forward, backward, next, previous, up, down, search, goto, kill,
201 kill, delete, mark, insert, yank, fill, indent, case, 260 delete, mark, insert, yank, fill, indent, case, change, set, what, list,
202 change, set, what, list, find, view, describe. 261 find, view, describe, default.
203 @end quotation 262 @end quotation
204 263
205 @findex apropos 264 @findex apropos
206 To list all Lisp symbols that contain a match for a regexp, not just 265 To list all Lisp symbols that contain a match for a regexp, not just
207 the ones that are defined as commands, use the command @kbd{M-x apropos} 266 the ones that are defined as commands, use the command @kbd{M-x apropos}
208 instead of @kbd{C-h a}. 267 instead of @kbd{C-h A}. This command does not check key bindings by
209 268 default; specify a numeric argument if you want it to check them.
269
270 @findex apropos-documentation
271 The @code{apropos-documentation} command is like @code{apropos} except
272 that it searches documentation strings for matches for the specified
273 regular expression.
274
275 @findex apropos-value
276 The @code{apropos-value} command is like @code{apropos} except that it
277 searches symbols' values for matches for the specified regular
278 expression. This command does not check function definitions or
279 property lists by default; specify a numeric argument if you want it to
280 check them.
281
282 @vindex apropos-do-all
283 If the variable @code{apropos-do-all} is non-@code{nil}, the commands
284 above all behave as if they had been given a prefix argument.
285
286 If you want more information about a function definition, variable or
287 symbol property listed in the Apropos buffer, you can click on it with
288 @kbd{Mouse-2} or move there and type @key{RET}.
289
290 @node Library Keywords, Help Mode, Apropos, Help
291 @section Keyword Search for Lisp Libraries
292
293 @kindex C-h p
294 @findex finder-by-keyword
295 The @kbd{C-h p} command lets you search the standard Emacs Lisp
296 libraries by topic keywords. Here is a partial list of keywords you can
297 use:
298
299 @display
300 abbrev abbreviation handling, typing shortcuts, macros
301 bib code related to the `bib' bibliography processor
302 c C, C++, and Objective-C language support
303 calendar calendar and time management support
304 comm communications, networking, remote access to files
305 data support for editing files of data
306 docs support for Emacs documentation
307 dumped files preloaded into Emacs
308 emulations emulations of other editors
309 extensions Emacs Lisp language extensions
310 faces support for multiple fonts
311 frames support for Emacs frames and window systems
312 games games, jokes and amusements
313 hardware support for interfacing with exotic hardware
314 help support for on-line help systems
315 hypermedia support for links between text or other media types
316 i18n internationalization and alternate character-set support
317 internal code for Emacs internals, build process, defaults
318 languages specialized modes for editing programming languages
319 lisp Lisp support, including Emacs Lisp
320 local code local to your site
321 maint maintenance aids for the Emacs development group
322 mail modes for electronic-mail handling
323 matching various sorts of searching and matching
324 mouse mouse support
325 mule multi-language extensions
326 news support for netnews reading and posting
327 oop support for object-oriented programming
328 outlines support for hierarchical outlining
329 processes process, subshell, compilation, and job control support
330 terminals support for terminal types
331 tex code related to the TeX formatter
332 tools programming tools
333 unix front-ends/assistants for, or emulators of, UNIX features
334 vms support code for vms
335 wp word processing
336 @end display
337
338 @node Help Mode, Misc Help, Library Keywords, Help
339 @section Help Mode Commands
340
341 Help buffers provide the commands of View mode (@pxref{Misc File
342 Ops}), plus a few special commands of their own.
343
344 @table @kbd
345 @item @key{SPC}
346 Scroll forward.
347 @item @key{DEL}
348 @itemx @key{BS}
349 Scroll backward.
350 @c @item @key{RET}
351 @c Follow a cross reference at point.
352 @c @item @key{TAB}
353 @c Move point forward to the next cross reference.
354 @c @item S-@key{TAB}
355 @c Move point back to the previous cross reference.
356 @c @item Mouse-2
357 @c Follow a cross reference that you click on.
358 @end table
359
360 When a command name (@pxref{M-x,, Running Commands by Name}) or
361 variable name (@pxref{Variables}) appears in the documentation, it
362 normally appears inside paired single-quotes.
363
364 @node Misc Help, , Help Mode, Help
210 @section Other Help Commands 365 @section Other Help Commands
211 366
212 @kindex C-h i 367 @kindex C-h i
213 @findex info 368 @findex info
369 @cindex Info
370 @cindex manuals, on-line
371 @cindex on-line manuals
214 @kbd{C-h i} (@code{info}) runs the Info program, which is used for 372 @kbd{C-h i} (@code{info}) runs the Info program, which is used for
215 browsing through structured documentation files. The entire Emacs manual 373 browsing through structured documentation files. The entire XEmacs manual
216 is available within Info. Eventually all the documentation of the GNU 374 is available within Info. Eventually all the documentation of the GNU
217 system will be available. Type @kbd{h} after entering Info to run 375 system will be available. Type @kbd{h} after entering Info to run
218 a tutorial on using Info. 376 a tutorial on using Info.
377
378 If you specify a numeric argument, @kbd{C-h i} prompts for the name of
379 a documentation file. This way, you can browse a file which doesn't
380 have an entry in the top-level Info menu. It is also handy when you
381 need to get to the documentation quickly, and you know the exact name of
382 the file.
383
384 @kindex C-h C-f
385 @kindex C-h C-k
386 @findex Info-elisp-ref
387 @findex Info-goto-emacs-command-node
388 There are two special help commands for accessing XEmacs documentation
389 through Info. @kbd{C-h C-f @var{function} @key{RET}} enters Info and
390 goes straight to the documentation of the XEmacs function
391 @var{function}. @kbd{C-h C-k @var{key}} enters Info and goes straight
392 to the documentation of the key @var{key}. These two keys run the
393 commands @code{Info-elisp-ref} and
394 @code{Info-goto-emacs-key-command-node}.
219 395
220 @kindex C-h l 396 @kindex C-h l
221 @findex view-lossage 397 @findex view-lossage
222 If something surprising happens, and you are not sure what commands you 398 If something surprising happens, and you are not sure what commands you
223 typed, use @kbd{C-h l} (@code{view-lossage}). @kbd{C-h l} prints the last 399 typed, use @kbd{C-h l} (@code{view-lossage}). @kbd{C-h l} prints the last
224 100 command characters you typed. If you see commands you don't 400 100 command characters you typed in. If you see commands that you don't
225 know, use @kbd{C-h c} to find out what they do. 401 know, you can use @kbd{C-h c} to find out what they do.
226 402
227 @kindex C-h m 403 @kindex C-h m
228 @findex describe-mode 404 @findex describe-mode
229 Emacs has several major modes. Each mode redefines a few keys and 405 XEmacs has several major modes. Each mode redefines a few keys and
230 makes a few other changes in how editing works. @kbd{C-h m} 406 makes a few other changes in how editing works. @kbd{C-h m}
231 (@code{describe-mode}) prints documentation on the current major mode, 407 (@code{describe-mode}) prints documentation on the current major mode,
232 which normally describes all the commands that are changed in this mode. 408 which normally describes all the commands that are changed in this mode.
233 409
234 @kindex C-h b 410 @kindex C-h b
235 @findex describe-bindings 411 @findex describe-bindings
236 @kbd{C-h b} (@code{describe-bindings}) and @kbd{C-h s} 412 @kbd{C-h b} (@code{describe-bindings}) and @kbd{C-h s}
237 (@code{describe-syntax}) present information about the current Emacs 413 (@code{describe-syntax}) present information about the current XEmacs
238 mode that is not covered by @kbd{C-h m}. @kbd{C-h b} displays a list of 414 mode that is not covered by @kbd{C-h m}. @kbd{C-h b} displays a list of
239 all key bindings currently in effect, with the local bindings of the current 415 all the key bindings currently in effect, with the local bindings of the
240 major mode first, followed by the global bindings (@pxref{Key 416 current major mode first, followed by the global bindings (@pxref{Key
241 Bindings}). @kbd{C-h s} displays the contents of the syntax table with 417 Bindings}). @kbd{C-h s} displays the contents of the syntax table with
242 explanations of each character's syntax (@pxref{Syntax}).@refill 418 explanations of each character's syntax (@pxref{Syntax}).
243 419
420 You can get a similar list for a particular prefix key by typing
421 @kbd{C-h} after the prefix key. (There are a few prefix keys for which
422 this does not work---those that provide their own bindings for
423 @kbd{C-h}. One of these is @key{ESC}, because @kbd{@key{ESC} C-h} is
424 actually @kbd{C-M-h}, which marks a defun.)
425
426 @kindex C-h F
427 @findex xemacs-local-faq
244 @kindex C-h n 428 @kindex C-h n
245 @findex view-emacs-news 429 @findex view-emacs-news
246 @kindex C-h t 430 @kindex C-h t
247 @findex help-with-tutorial 431 @findex help-with-tutorial
248 @kindex C-h C-c 432 @kindex C-h C-c
250 @kindex C-h C-d 434 @kindex C-h C-d
251 @findex describe-distribution 435 @findex describe-distribution
252 @kindex C-h C-w 436 @kindex C-h C-w
253 @findex describe-no-warranty 437 @findex describe-no-warranty
254 The other @kbd{C-h} options display various files of useful 438 The other @kbd{C-h} options display various files of useful
255 information. @kbd{C-h C-w} (@code{describe-no-warranty}) displays 439 information. @kbd{C-h C-w} (@code{describe-no-warranty}) displays the
256 details on the complete absence of warranty for XEmacs. @kbd{C-h n} 440 full details on the complete absence of warranty for XEmacs. @kbd{C-h
257 (@code{view-emacs-news}) displays the file @file{emacs/etc/NEWS}, which 441 n} (@code{view-emacs-news}) displays the file @file{xemacs/etc/NEWS},
258 contains documentation on Emacs changes arranged chronologically. 442 which contains documentation on XEmacs changes arranged chronologically.
259 @kbd{C-h t} (@code{help-with-tutorial}) displays the learn-by-doing 443 @kbd{C-h F} (@code{xemacs-local-faq}) displays local version of the
260 Emacs tutorial. @kbd{C-h C-c} (@code{describe-copying}) displays the file 444 XEmacs frequentliy-answered-questions-list. @kbd{C-h t}
261 @file{emacs/etc/COPYING}, which tells you the conditions you must obey 445 (@code{help-with-tutorial}) displays the learn-by-doing XEmacs
262 in distributing copies of Emacs. @kbd{C-h C-d} 446 tutorial. @kbd{C-h C-c} (@code{describe-copying}) displays the file
447 @file{xemacs/etc/COPYING}, which tells you the conditions you must obey
448 in distributing copies of XEmacs. @kbd{C-h C-d}
263 (@code{describe-distribution}) displays another file named 449 (@code{describe-distribution}) displays another file named
264 @file{emacs/etc/DISTRIB}, which tells you how you can order a copy of 450 @file{xemacs/etc/DISTRIB}, which tells you how you can order a copy of
265 the latest version of Emacs.@refill 451 the latest version of XEmacs.