annotate man/xemacs/help.texi @ 371:cc15677e0335 r21-2b1

Import from CVS: tag r21-2b1
author cvs
date Mon, 13 Aug 2007 11:03:08 +0200
parents 972bbb6d6ca2
children 2f8bb876ab1d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
1
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
2 @node Help, Mark, M-x, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @chapter Help
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 @cindex help
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5 @cindex self-documentation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 Emacs provides extensive help features which revolve around a single
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 character, @kbd{C-h}. @kbd{C-h} is a prefix key that is used only for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 documentation-printing commands. The characters you can type after
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 @kbd{C-h} are called @dfn{help options}. One help option is @kbd{C-h};
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 you use it to ask for help about using @kbd{C-h}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13 @kbd{C-h C-h} prints a list of the possible help options, and then asks
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 you to type the desired option. It prompts with the string:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 @smallexample
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
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:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 @end smallexample
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 You should type one of those characters.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 Typing a third @kbd{C-h} displays a description of what the options mean;
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 Emacs still waits for you to type an option. To cancel, type @kbd{C-g}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 Here is a summary of the defined help commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 @item C-h a @var{string} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 Display a list of commands whose names contain @var{string}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 (@code{command-@*apropos}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 @item C-h b
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33 Display a table of all key bindings currently in effect, with local bindings of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 the current major mode first, followed by all global bindings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 (@code{describe-bindings}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 @item C-h c @var{key}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37 Print the name of the command that @var{key} runs (@code{describe-key-@*briefly}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 @kbd{c} is for `character'. For more extensive information on @var{key},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 use @kbd{C-h k}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 @item C-h f @var{function} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 Display documentation on the Lisp function named @var{function}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 (@code{describe-function}). Note that commands are Lisp functions, so
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 a command name may be used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 @item C-h i
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45 Run Info, the program for browsing documentation files (@code{info}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 The complete Emacs manual is available online in Info.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 @item C-h k @var{key}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 Display name and documentation of the command @var{key} runs (@code{describe-key}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 @item C-h l
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 Display a description of the last 100 characters you typed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51 (@code{view-lossage}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 @item C-h m
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 Display documentation of the current major mode (@code{describe-mode}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 @item C-h n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 Display documentation of Emacs changes, most recent first
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56 (@code{view-emacs-news}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 @item C-h p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 Display a table of all mouse bindings currently in effect now, with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 local bindings of the current major mode first, followed by all global bindings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 (@code{describe-pointer}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 @item C-h s
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 Display current contents of the syntax table, plus an explanation of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63 what they mean (@code{describe-syntax}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 @item C-h t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 Display the Emacs tutorial (@code{help-with-tutorial}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66 @item C-h v @var{var} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 Display the documentation of the Lisp variable @var{var}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 (@code{describe-@*variable}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 @item C-h w @var{command} @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 Print which keys run the command named @var{command} (@code{where-is}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 @item M-x apropos @var{regexp}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72 Show all symbols whose names contain matches for @var{regexp}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 @section Documentation for a Key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 @kindex C-h c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 @findex describe-key-briefly
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 The most basic @kbd{C-h} options are @kbd{C-h c}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 (@code{describe-key-briefly}) and @kbd{C-h k}@*(@code{describe-key}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 @kbd{C-h c @var{key}} prints the name of the command that @var{key} is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 bound to in the echo area. For example, @kbd{C-h c C-f} prints
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 @samp{forward-char}. Since command names are chosen to describe what
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 the command does, using this option is a good way to get a somewhat cryptic
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 description of what @var{key} does.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
86
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
87 @kindex C-h k
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 @findex describe-key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 @kbd{C-h k @var{key}} is similar to @kbd{C-h c} but gives more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90 information. It displays the documentation string of the function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 @var{key} is bound to as well as its name. @var{key} is a string or
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 vector of events. When called interactively, @var{key} may also be a menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 selection. This information does not usually fit into the echo area, so a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94 window is used for the display.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 @section Help by Command or Variable Name
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 @kindex C-h f
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 @findex describe-function
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100 @vindex describe-function-show-arglist
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 @kbd{C-h f} (@code{describe-function}) reads the name of a Lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 function using the minibuffer, then displays that function's
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 documentation string in a window. Since commands are Lisp functions,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 you can use the argument @var{function} to get the documentation of a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 command that you know by name. For example,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 C-h f auto-fill-mode @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 displays the documentation for @code{auto-fill-mode}. Using @kbd{C-h f}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113 is the only way to see the documentation of a command that is not bound
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 to any key, that is, a command you would normally call using @kbd{M-x}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 If the variable @code{describe-function-show-arglist} is @code{t},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 @code{describe-function} shows its arglist if the @var{function} is not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 an autoload function.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 @kbd{C-h f} is also useful for Lisp functions you are planning to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 use in a Lisp program. For example, if you have just written the code
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 @code{(make-vector len)} and want to make sure you are using
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 @code{make-vector} properly, type @kbd{C-h f make-vector @key{RET}}. Because
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 @kbd{C-h f} allows all function names, not just command names, you may find
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 that some of your favorite abbreviations that work in @kbd{M-x} don't work
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 in @kbd{C-h f}. An abbreviation may be unique among command names, yet fail
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126 to be unique when other function names are allowed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 If you type @key{RET}, leaving the minibuffer empty, @kbd{C-h f} by
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 default describes the function called by the innermost Lisp expression
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131 in the buffer around point, @i{provided} that that is a valid, defined Lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 function name. For example, if point is located following the text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 @samp{(make-vector (car x)}, the innermost list containing point is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 one starting with @samp{(make-vector}, so the default is to describe
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 the function @code{make-vector}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 @kbd{C-h f} is often useful just to verify that you have the right
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138 spelling for the function name. If @kbd{C-h f} mentions a default in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 prompt, you have typed the name of a defined Lisp function. If that is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 what you wanted to know, just type @kbd{C-g} to cancel the @kbd{C-h f}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 command and continue editing.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 @kindex C-h w
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 @findex where-is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 @kbd{C-h w @var{command} @key{RET}} (@code{where-s}) tells you what
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 keys are bound to @var{command}. It prints a list of the keys in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 echo area. Alternatively, it informs you that a command is not bound to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148 any keys, which implies that you must use @kbd{M-x} to call the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 command.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 @kindex C-h v
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 @findex describe-variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 @kbd{C-h v} (@code{describe-variable}) is like @kbd{C-h f} but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 describes Lisp variables instead of Lisp functions. Its default is the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 Lisp symbol around or before point, if that is the name of a known Lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156 variable. @xref{Variables}.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 @section Apropos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160 @kindex C-h a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 @findex command-apropos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 @cindex apropos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 @item C-h a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 Show only symbols that are names of commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 (@code{command-apropos}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169 @item M-x apropos @var{regexp}
371
cc15677e0335 Import from CVS: tag r21-2b1
cvs
parents: 363
diff changeset
170 Show all symbols whose names comtain matches for @var{regexp}.
0
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 It is possible to ask a question like, ``What are the commands for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 working with files?'' To do this, type @kbd{C-h a file @key{RET}},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 which displays a list of all command names that contain @samp{file},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176 such as @code{copy-file}, @code{find-file}, and so on. With each
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 command name a brief description of its use and information on the keys
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 you can use to invoke it is displayed. For example, you would be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 informed that you can invoke @code{find-file} by typing @kbd{C-x C-f}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 The @kbd{a} in @kbd{C-h a} stands for `Apropos'; @kbd{C-h a} runs the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 Lisp function @code{command-apropos}.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183 Because @kbd{C-h a} looks only for functions whose names contain the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 string you specify, you must use ingenuity in choosing the string. If
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 you are looking for commands for killing backwards and @kbd{C-h a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 kill-backwards @key{RET}} doesn't reveal any commands, don't give up.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 Try just @kbd{kill}, or just @kbd{backwards}, or just @kbd{back}. Be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 persistent. Pretend you are playing Adventure. Also note that you can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189 use a regular expression as the argument (@pxref{Regexps}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 Here is a set of arguments to give to @kbd{C-h a} that covers many
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 classes of Emacs commands, since there are strong conventions for naming
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 standard Emacs commands. By giving you a feeling for the naming
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194 conventions, this set of arguments can also help you develop a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 technique for picking @code{apropos} strings.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 @quotation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 char, line, word, sentence, paragraph, region, page, sexp, list, defun,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 buffer, frame, window, file, dir, register, mode,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 beginning, end, forward, backward, next, previous, up, down, search, goto,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 kill, delete, mark, insert, yank, fill, indent, case,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 change, set, what, list, find, view, describe.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 @end quotation
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 @findex apropos
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 To list all Lisp symbols that contain a match for a regexp, not just
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 the ones that are defined as commands, use the command @kbd{M-x apropos}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 instead of @kbd{C-h a}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 @section Other Help Commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 @kindex C-h i
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 @findex info
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 @kbd{C-h i} (@code{info}) runs the Info program, which is used for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 browsing through structured documentation files. The entire Emacs manual
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 is available within Info. Eventually all the documentation of the GNU
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217 system will be available. Type @kbd{h} after entering Info to run
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 a tutorial on using Info.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 @kindex C-h l
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 @findex view-lossage
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222 If something surprising happens, and you are not sure what commands you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 typed, use @kbd{C-h l} (@code{view-lossage}). @kbd{C-h l} prints the last
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 100 command characters you typed. If you see commands you don't
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 know, use @kbd{C-h c} to find out what they do.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 @kindex C-h m
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 @findex describe-mode
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 Emacs has several major modes. Each mode redefines a few keys and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 makes a few other changes in how editing works. @kbd{C-h m}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 (@code{describe-mode}) prints documentation on the current major mode,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 which normally describes all the commands that are changed in this mode.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 @kindex C-h b
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 @findex describe-bindings
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 @kbd{C-h b} (@code{describe-bindings}) and @kbd{C-h s}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 (@code{describe-syntax}) present information about the current Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 mode that is not covered by @kbd{C-h m}. @kbd{C-h b} displays a list of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 all key bindings currently in effect, with the local bindings of the current
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 major mode first, followed by the global bindings (@pxref{Key
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 Bindings}). @kbd{C-h s} displays the contents of the syntax table with
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 explanations of each character's syntax (@pxref{Syntax}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244 @kindex C-h n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 @findex view-emacs-news
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 @kindex C-h t
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 @findex help-with-tutorial
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 @kindex C-h C-c
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 @findex describe-copying
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 @kindex C-h C-d
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 @findex describe-distribution
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 @kindex C-h C-w
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 @findex describe-no-warranty
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 The other @kbd{C-h} options display various files of useful
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255 information. @kbd{C-h C-w} (@code{describe-no-warranty}) displays
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 details on the complete absence of warranty for XEmacs. @kbd{C-h n}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 (@code{view-emacs-news}) displays the file @file{emacs/etc/NEWS}, which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258 contains documentation on Emacs changes arranged chronologically.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 @kbd{C-h t} (@code{help-with-tutorial}) displays the learn-by-doing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 Emacs tutorial. @kbd{C-h C-c} (@code{describe-copying}) displays the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 @file{emacs/etc/COPYING}, which tells you the conditions you must obey
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 in distributing copies of Emacs. @kbd{C-h C-d}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 (@code{describe-distribution}) displays another file named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 @file{emacs/etc/DISTRIB}, which tells you how you can order a copy of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 the latest version of Emacs.@refill