annotate man/xemacs/mini.texi @ 22:8fc7fe29b841 r19-15b94

Import from CVS: tag r19-15b94
author cvs
date Mon, 13 Aug 2007 08:50:29 +0200
parents 376386a54a3c
children 74fd4e045ea6
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 Minibuffer, M-x, Undo, Top
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
3 @chapter The Minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
4 @cindex minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
5
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
6 Emacs commands use the @dfn{minibuffer} to read arguments more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
7 complicated than a single number. Minibuffer arguments can be file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
8 names, buffer names, Lisp function names, Emacs command names, Lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
9 expressions, and many other things, depending on the command reading the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
10 argument. To edit the argument in the minibuffer, you can use Emacs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
11 editing commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
12
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
13
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
14 @cindex prompt
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
15 When the minibuffer is in use, it appears in the echo area, and the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
16 cursor moves there. The beginning of the minibuffer line displays a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
17 @dfn{prompt} indicating what kind of input you should supply and how it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
18 will be used. The prompt is often derived from the name of the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
19 the argument is for. The prompt normally ends with a colon.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
20
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
21 @cindex default argument
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
22 Sometimes a @dfn{default argument} appears in parentheses after the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
23 colon; it, too, is part of the prompt. The default is used as the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
24 argument value if you enter an empty argument (e.g., by just typing @key{RET}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
25 For example, commands that read buffer names always show a default, which
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
26 is the name of the buffer that will be used if you type just @key{RET}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
27
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
28 @kindex C-g
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
29 The simplest way to give a minibuffer argument is to type the text you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
30 want, terminated by @key{RET} to exit the minibuffer. To get out
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
31 of the minibuffer and cancel the command that it was for, type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
32 @kbd{C-g}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
33
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
34 Since the minibuffer uses the screen space of the echo area, it can
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
35 conflict with other ways Emacs customarily uses the echo area. Here is how
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
36 Emacs handles such conflicts:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
37
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
38 @itemize @bullet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
39 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
40 If a command gets an error while you are in the minibuffer, this does
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
41 not cancel the minibuffer. However, the echo area is needed for the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
42 error message and therefore the minibuffer itself is hidden for a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
43 while. It comes back after a few seconds, or as soon as you type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
44 anything.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
45
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
46 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
47 If you use a command in the minibuffer whose purpose is to print a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
48 message in the echo area (for example @kbd{C-x =}) the message is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
49 displayed normally, and the minibuffer is hidden for a while. It comes back
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
50 after a few seconds, or as soon as you type anything.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
51
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
52 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
53 Echoing of keystrokes does not take place while the minibuffer is in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
54 use.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
55 @end itemize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
56
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
57 @menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
58 * File: Minibuffer File. Entering file names with the minibuffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
59 * Edit: Minibuffer Edit. How to edit in the minibuffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
60 * Completion:: An abbreviation facility for minibuffer input.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
61 * Repetition:: Re-executing commands that used the minibuffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
62 @end menu
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
63
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
64 @node Minibuffer File, Minibuffer Edit, Minibuffer, Minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
65 @section Minibuffers for File Names
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
66
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
67 Sometimes the minibuffer starts out with text in it. For example, when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
68 you are supposed to give a file name, the minibuffer starts out containing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
69 the @dfn{default directory}, which ends with a slash. This informs
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
70 you in which directory the file will be looked for if you do not specify
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
71 a different one. For example, the minibuffer might start out with:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
72
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
73 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
74 Find File: /u2/emacs/src/
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
75 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
76
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
77 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
78 where @samp{Find File:@: } is the prompt. Typing @kbd{buffer.c} specifies
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
79 the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
80 @*@file{/u2/emacs/src/buffer.c}. To find files in nearby
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
81 directories, use @samp{..}; thus, if you type @kbd{../lisp/simple.el}, the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
82 file that you visit will be the one named
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
83 @*@file{/u2/emacs/lisp/simple.el}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
84 Alternatively, you can use @kbd{M-@key{DEL}} to kill directory names you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
85 don't want (@pxref{Words}).@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 You can also type an absolute file name, one starting with a slash or a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
88 tilde, ignoring the default directory. For example, to find the file
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
89 @file{/etc/termcap}, just type the name, giving:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
90
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
91 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
92 Find File: /u2/emacs/src//etc/termcap
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
93 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
94
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
95 @noindent
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
96 Two slashes in a row are not normally meaningful in Unix file names, but
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
97 they are allowed in XEmacs. They mean, ``ignore everything before the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
98 second slash in the pair.'' Thus, @samp{/u2/emacs/src/} is ignored, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
99 you get the file @file{/etc/termcap}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
100
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
101 @vindex insert-default-directory
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
102 If you set @code{insert-default-directory} to @code{nil}, the default
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
103 directory is not inserted in the minibuffer. This way, the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
104 starts out empty. But the name you type, if relative, is still
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
105 interpreted with respect to the same default directory.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
106
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
107 @node Minibuffer Edit, Completion, Minibuffer File, Minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
108 @section Editing in the Minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
109
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
110 The minibuffer is an Emacs buffer (albeit a peculiar one), and the usual
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
111 Emacs commands are available for editing the text of an argument you are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
112 entering.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
113
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
114 Since @key{RET} in the minibuffer is defined to exit the minibuffer,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
115 you must use @kbd{C-o} or @kbd{C-q @key{LFD}} to insert a newline into
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
116 the minibuffer. (Recall that a newline is really the @key{LFD}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
117 character.)
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
118
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
119 The minibuffer has its own window, which always has space on the screen
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
120 but acts as if it were not there when the minibuffer is not in use. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
121 minibuffer window is just like the others; you can switch to another
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
122 window with @kbd{C-x o}, edit text in other windows, and perhaps even
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
123 visit more files before returning to the minibuffer to submit the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
124 argument. You can kill text in another window, return to the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
125 window, and then yank the text to use it in the argument. @xref{Windows}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
126
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
127 There are, however, some restrictions on the use of the minibuffer window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
128 You cannot switch buffers in it---the minibuffer and its window are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
129 permanently attached. You also cannot split or kill the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
130 window, but you can make it taller with @kbd{C-x ^}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
131
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
132 @kindex C-M-v
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
133 If you are in the minibuffer and issue a command that displays help
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
134 text in another window, that window will be scrolled if you type
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
135 @kbd{M-C-v} while in the minibuffer until you exit the minibuffer. This
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
136 feature is helpful if a completing minibuffer gives you a long list of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
137 possible completions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
138
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
139 If the variable @code{minibuffer-confirm-incomplete} is @code{t}, you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
140 are asked for confirmation if there is no known completion for the text
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
141 you typed. For example, if you attempted to visit a non-existent file,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
142 the minibuffer might read:
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
143 @example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
144 Find File:chocolate_bar.c [no completions, confirm]
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
145 @end example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
146 If you press @kbd{Return} again, that confirms the filename. Otherwise,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
147 you can continue editing it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
148
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
149 Emacs supports recursive use of the minibuffer. However, it is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
150 easy to do this by accident (because of autorepeating keyboards, for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
151 example) and get confused. Therefore, most Emacs commands that use the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
152 minibuffer refuse to operate if the minibuffer window is selected. If the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
153 minibuffer is active but you have switched to a different window, recursive
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
154 use of the minibuffer is allowed---if you know enough to try to do this,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
155 you probably will not get confused.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
156
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
157 @vindex enable-recursive-minibuffers
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
158 If you set the variable @code{enable-recursive-minibuffers} to be
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
159 non-@code{nil}, recursive use of the minibuffer is always allowed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
160
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
161 @node Completion, Repetition, Minibuffer Edit, Minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
162 @section Completion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
163 @cindex completion
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
164
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
165 When appropriate, the minibuffer provides a @dfn{completion} facility.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
166 You type the beginning of an argument and one of the completion keys,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
167 and Emacs visibly fills in the rest, depending on what you have already
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
168 typed.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
169
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
170 When completion is available, certain keys---@key{TAB}, @key{RET}, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
171 @key{SPC}---are redefined to complete an abbreviation present in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
172 minibuffer into a longer string that it stands for, by matching it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
173 against a set of @dfn{completion alternatives} provided by the command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
174 reading the argument. @kbd{?} is defined to display a list of possible
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
175 completions of what you have inserted.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
176
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
177 For example, when the minibuffer is being used by @kbd{Meta-x} to read
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
178 the name of a command, it is given a list of all available Emacs command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
179 names to complete against. The completion keys match the text in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
180 minibuffer against all the command names, find any additional characters of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
181 the name that are implied by the ones already present in the minibuffer,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
182 and add those characters to the ones you have given.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
183
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
184 Case is normally significant in completion because it is significant in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
185 most of the names that you can complete (buffer names, file names, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
186 command names). Thus, @samp{fo} will not complete to @samp{Foo}. When you
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
187 are completing a name in which case does not matter, case may be ignored
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
188 for completion's sake if specified by program.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
189
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
190 When a completion list is displayed, the completions will highlight as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
191 you move the mouse over them. Clicking the middle mouse button on any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
192 highlighted completion will ``select'' it just as if you had typed it in
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
193 and hit @key{RET}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
194
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
195 @subsection A Completion Example
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
196
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
197 @kindex TAB
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
198 @findex minibuffer-complete
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
199 Consider the following example. If you type @kbd{Meta-x au @key{TAB}},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
200 @key{TAB} looks for alternatives (in this case, command names) that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
201 start with @samp{au}. There are only two commands: @code{auto-fill-mode} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
202 @code{auto-save-mode}. They are the same as far as @code{auto-}, so the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
203 @samp{au} in the minibuffer changes to @samp{auto-}.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
204
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
205 If you type @key{TAB} again immediately, there are multiple possibilities
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
206 for the very next character---it could be @samp{s} or @samp{f}---so no more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
207 characters are added; but a list of all possible completions is displayed
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
208 in another window.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
209
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
210 If you go on to type @kbd{f @key{TAB}}, this @key{TAB} sees
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
211 @samp{auto-f}. The only command name starting this way is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
212 @code{auto-fill-mode}, so completion inserts the rest of that command. You
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
213 now have @samp{auto-fill-mode} in the minibuffer after typing just @kbd{au
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
214 @key{TAB} f @key{TAB}}. Note that @key{TAB} has this effect because in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
215 minibuffer it is bound to the function @code{minibuffer-complete} when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
216 completion is supposed to be done.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
217
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
218 @subsection Completion Commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
219
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
220 Here is a list of all the completion commands defined in the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
221 when completion is available.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
222
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
223 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
224 @item @key{TAB}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
225 Complete the text in the minibuffer as much as possible @*
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
226 (@code{minibuffer-complete}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
227 @item @key{SPC}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
228 Complete the text in the minibuffer but don't add or fill out more
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
229 than one word (@code{minibuffer-complete-word}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
230 @item @key{RET}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
231 Submit the text in the minibuffer as the argument, possibly completing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
232 first as described below (@code{minibuffer-complete-and-exit}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
233 @item ?
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
234 Print a list of all possible completions of the text in the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
235 (@code{minibuffer-list-completions}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
236 @item @key{button2}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
237 Select the highlighted text under the mouse as a minibuffer response.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
238 When the minibuffer is being used to prompt the user for a completion,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
239 any valid completions which are visible on the screen will be highlighted
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
240 when the mouse moves over them. Clicking @key{button2} will select the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
241 highlighted completion and exit the minibuffer.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
242 (@code{minibuf-select-highlighted-completion}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
243 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
244
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
245 @kindex SPC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
246 @findex minibuffer-complete-word
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
247 @key{SPC} completes in a way that is similar to @key{TAB}, but it never
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
248 goes beyond the next hyphen or space. If you have @samp{auto-f} in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
249 minibuffer and type @key{SPC}, it finds that the completion is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
250 @samp{auto-fill-mode}, but it stops completing after @samp{fill-}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
251 The result is @samp{auto-fill-}. Another @key{SPC} at this point
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
252 completes all the way to @samp{auto-fill-mode}. @key{SPC} in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
253 minibuffer runs the function @code{minibuffer-complete-word} when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
254 completion is available.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
255
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
256 There are three different ways that @key{RET} can work in completing
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
257 minibuffers, depending on how the argument will be used.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
258
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
259 @itemize @bullet
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
260 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
261 @dfn{Strict} completion is used when it is meaningless to give any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
262 argument except one of the known alternatives. For example, when
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
263 @kbd{C-x k} reads the name of a buffer to kill, it is meaningless to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
264 give anything but the name of an existing buffer. In strict
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
265 completion, @key{RET} refuses to exit if the text in the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
266 does not complete to an exact match.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
267
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
268 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
269 @dfn{Cautious} completion is similar to strict completion, except that
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
270 @key{RET} exits only if the text was an exact match already, not
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
271 needing completion. If the text is not an exact match, @key{RET} does
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
272 not exit, but it does complete the text. If it completes to an exact
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
273 match, a second @key{RET} will exit.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
274
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
275 Cautious completion is used for reading file names for files that must
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
276 already exist.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
277
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
278 @item
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
279 @dfn{Permissive} completion is used when any string is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
280 meaningful, and the list of completion alternatives is just a guide.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
281 For example, when @kbd{C-x C-f} reads the name of a file to visit, any
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
282 file name is allowed, in case you want to create a file. In
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
283 permissive completion, @key{RET} takes the text in the minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
284 exactly as given, without completing it.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
285 @end itemize
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
286
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
287 The completion commands display a list of all possible completions in a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
288 window whenever there is more than one possibility for the very next
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
289 character. Typing @kbd{?} explicitly requests such a list. The
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
290 list of completions counts as help text, so @kbd{C-M-v} typed in the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
291 minibuffer scrolls the list.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
292
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
293 @vindex completion-ignored-extensions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
294 When completion is done on file names, certain file names are usually
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
295 ignored. The variable @code{completion-ignored-extensions} contains a list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
296 of strings; a file whose name ends in any of those strings is ignored as a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
297 possible completion. The standard value of this variable has several
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
298 elements including @code{".o"}, @code{".elc"}, @code{".dvi"} and @code{"~"}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
299 The effect is that, for example, @samp{foo} completes to @samp{foo.c}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
300 even though @samp{foo.o} exists as well. If the only possible completions
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
301 are files that end in ``ignored'' strings, they are not ignored.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
302
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
303 @vindex completion-auto-help
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
304 If a completion command finds the next character is undetermined, it
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
305 automatically displays a list of all possible completions. If the variable
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
306 @code{completion-auto-help} is set to @code{nil}, this does not happen,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
307 and you must type @kbd{?} to display the possible completions.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
308
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
309 @vindex minibuffer-confirm-incomplete
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
310 If the variable @code{minibuffer-confirm-incomplete} is set to @code{t},
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
311 then in contexts where @code{completing-read} allows answers that are
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
312 not valid completions, an extra @key{RET} must be typed to confirm the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
313 response. This is helpful for catching typos.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
314
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
315 @node Repetition,, Completion, Minibuffer
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
316 @section Repeating Minibuffer Commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
317 @cindex command history
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
318 @cindex history of commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
319
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
320 Every command that uses the minibuffer at least once is recorded on a
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
321 special history list, together with the values of the minibuffer arguments,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
322 so that you can repeat the command easily. In particular, every
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
323 use of @kbd{Meta-x} is recorded, since @kbd{M-x} uses the minibuffer to
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
324 read the command name.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
325
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
326 @findex list-command-history
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
327 @c widecommands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
328 @table @kbd
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
329 @item C-x @key{ESC}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
330 Re-execute a recent minibuffer command @*(@code{repeat-complex-command}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
331 @item M-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
332 Within @kbd{C-x @key{ESC}}, move to previous recorded command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
333 (@code{previous-history-element}).
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
334 @item M-n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
335 Within @kbd{C-x @key{ESC}}, move to the next (more recent) recorded
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
336 command (@code{next-history-element}).@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
337 @item M-x list-command-history
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
338 Display the entire command history, showing all the commands
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
339 @kbd{C-x @key{ESC}} can repeat, most recent first.@refill
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
340 @end table
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
341
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
342 @kindex C-x ESC
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
343 @findex repeat-complex-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
344 @kbd{C-x @key{ESC}} is used to re-execute a recent command that used
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
345 the minibuffer. With no argument, it repeats the last command. A numeric
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
346 argument specifies which command to repeat; 1 means the last one, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
347 larger numbers specify earlier commands.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
348
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
349 @kbd{C-x @key{ESC}} works by turning the previous command into a Lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
350 expression and then entering a minibuffer initialized with the text for
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
351 that expression. If you type just @key{RET}, the command is repeated as
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
352 before. You can also change the command by editing the Lisp expression.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
353 The expression you finally submit will be executed. The repeated
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
354 command is added to the front of the command history unless it is
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
355 identical to the most recently executed command already there.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
356
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
357 Even if you don't understand Lisp syntax, it will probably be obvious
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
358 which command is displayed for repetition. If you do not change the text,
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
359 you can be sure the command will repeat exactly as before.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
360
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
361 @kindex M-n
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
362 @kindex M-p
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
363 @findex next-complex-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
364 @findex previous-complex-command
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
365 If you are in the minibuffer for @kbd{C-x @key{ESC}} and the command shown
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
366 to you is not the one you want to repeat, you can move around the list of
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
367 previous commands using @kbd{M-n} and @kbd{M-p}. @kbd{M-p} replaces the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
368 contents of the minibuffer with the next earlier recorded command, and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
369 @kbd{M-n} replaces it with the next later command. After finding the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
370 desired previous command, you can edit its expression and then
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
371 resubmit it by typing @key{RET}. Any editing you have done on the
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
372 command to be repeated is lost if you use @kbd{M-n} or @kbd{M-p}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
373
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
374 @kbd{M-n} and @kbd{M-p} are specially defined within @kbd{C-x @key{ESC}}
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
375 to run the commands @code{previous-history-element} and
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
376 @code{next-history-element}.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
377
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
378 @vindex command-history
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
379 The list of previous commands using the minibuffer is stored as a Lisp
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
380 list in the variable @code{command-history}. Each element of the list
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
381 is a Lisp expression which describes one command and its arguments.
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
382 Lisp programs can reexecute a command by feeding the corresponding
376386a54a3c Import from CVS: tag r19-14
cvs
parents:
diff changeset
383 @code{command-history} element to @code{eval}.