diff options
| author | Glenn Morris | 2012-04-18 22:00:23 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-04-18 22:00:23 -0400 |
| commit | 9d2754f50c88dcf985104a3cd0bec5b75d32b12b (patch) | |
| tree | d5c8bfbfb042d4da1cf8ae59496a6e70470a2078 | |
| parent | 02a540a127be5fb4ccfc03fa0dc386711fd3b708 (diff) | |
| download | emacs-9d2754f50c88dcf985104a3cd0bec5b75d32b12b.tar.gz emacs-9d2754f50c88dcf985104a3cd0bec5b75d32b12b.zip | |
Small edits for doc/lispref/minibuf.texi
* doc/lispref/minibuf.texi: Standardize metasyntactic variables
("history", etc).
Use Texinfo-recommended form of quote+punctuation.
(Intro to Minibuffers): First minibuffer is #1, not #0.
Mention minibuffer-inactive-mode.
(Text from Minibuffer): Copyedits.
(Minibuffer History, Programmed Completion): Fix @var usage.
| -rw-r--r-- | doc/lispref/ChangeLog | 9 | ||||
| -rw-r--r-- | doc/lispref/minibuf.texi | 96 |
2 files changed, 67 insertions, 38 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 8b1e5b84836..b815dfbd1ef 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2012-04-19 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * minibuf.texi: Standardize metasyntactic variables ("history", etc). | ||
| 4 | Use Texinfo-recommended form of quote+punctuation. | ||
| 5 | (Intro to Minibuffers): First minibuffer is #1, not #0. | ||
| 6 | Mention minibuffer-inactive-mode. | ||
| 7 | (Text from Minibuffer): Copyedits. | ||
| 8 | (Minibuffer History, Programmed Completion): Fix @var usage. | ||
| 9 | |||
| 1 | 2012-04-18 Glenn Morris <rgm@gnu.org> | 10 | 2012-04-18 Glenn Morris <rgm@gnu.org> |
| 2 | 11 | ||
| 3 | * processes.texi (Serial Ports, Byte Packing, Bindat Spec) | 12 | * processes.texi (Serial Ports, Byte Packing, Bindat Spec) |
diff --git a/doc/lispref/minibuf.texi b/doc/lispref/minibuf.texi index a6ef0f52cfb..8fb2a349ac0 100644 --- a/doc/lispref/minibuf.texi +++ b/doc/lispref/minibuf.texi | |||
| @@ -60,8 +60,10 @@ boundary between the prompt and the actual text. | |||
| 60 | 60 | ||
| 61 | The minibuffer's window is normally a single line; it grows | 61 | The minibuffer's window is normally a single line; it grows |
| 62 | automatically if the contents require more space. You can explicitly | 62 | automatically if the contents require more space. You can explicitly |
| 63 | @c FIXME? Works in 23.4, not 24.0.95. (Bug#11276) | ||
| 63 | resize it temporarily with the window sizing commands; it reverts to | 64 | resize it temporarily with the window sizing commands; it reverts to |
| 64 | its normal size when the minibuffer is exited. You can resize it | 65 | its normal size when the minibuffer is exited. You can resize it |
| 66 | @c FIXME? Doesn't work in any version of Emacs? | ||
| 65 | permanently by using the window sizing commands in the frame's other | 67 | permanently by using the window sizing commands in the frame's other |
| 66 | window, when the minibuffer is not active. If the frame contains just | 68 | window, when the minibuffer is not active. If the frame contains just |
| 67 | a minibuffer, you can change the minibuffer's size by changing the | 69 | a minibuffer, you can change the minibuffer's size by changing the |
| @@ -73,9 +75,9 @@ of variables such as @code{this-command} and @code{last-command} | |||
| 73 | code that uses the minibuffer, if you do not want that to change them. | 75 | code that uses the minibuffer, if you do not want that to change them. |
| 74 | 76 | ||
| 75 | Under some circumstances, a command can use a minibuffer even if | 77 | Under some circumstances, a command can use a minibuffer even if |
| 76 | there is an active minibuffer; such minibuffers are called a | 78 | there is an active minibuffer; such a minibuffer is called a |
| 77 | @dfn{recursive minibuffer}. The first minibuffer is named | 79 | @dfn{recursive minibuffer}. The first minibuffer is named |
| 78 | @w{@samp{ *Minibuf-0*}}. Recursive minibuffers are named by | 80 | @w{@samp{ *Minibuf-1*}}. Recursive minibuffers are named by |
| 79 | incrementing the number at the end of the name. (The names begin with | 81 | incrementing the number at the end of the name. (The names begin with |
| 80 | a space so that they won't show up in normal buffer lists.) Of | 82 | a space so that they won't show up in normal buffer lists.) Of |
| 81 | several recursive minibuffers, the innermost (or most recently | 83 | several recursive minibuffers, the innermost (or most recently |
| @@ -91,6 +93,14 @@ to be done. @xref{Text from Minibuffer}, for the non-completion | |||
| 91 | minibuffer local maps. @xref{Completion Commands}, for the minibuffer | 93 | minibuffer local maps. @xref{Completion Commands}, for the minibuffer |
| 92 | local maps for completion. | 94 | local maps for completion. |
| 93 | 95 | ||
| 96 | @findex minibuffer-inactive-mode | ||
| 97 | @vindex minibuffer-inactive-mode-map | ||
| 98 | @cindex inactive minibuffer | ||
| 99 | When a minibuffer is inactive, it's major mode is | ||
| 100 | @code{minibuffer-inactive-mode}, with keymap | ||
| 101 | @code{minibuffer-inactive-mode-map}. This is only really useful if | ||
| 102 | the minibuffer is in a separate frame. @xref{Minibuffers and Frames}. | ||
| 103 | |||
| 94 | When Emacs is running in batch mode, any request to read from the | 104 | When Emacs is running in batch mode, any request to read from the |
| 95 | minibuffer actually reads a line from the standard input descriptor that | 105 | minibuffer actually reads a line from the standard input descriptor that |
| 96 | was supplied when Emacs was started. | 106 | was supplied when Emacs was started. |
| @@ -111,7 +121,7 @@ middle of a Lisp function. Instead, do all minibuffer input as part of | |||
| 111 | reading the arguments for a command, in the @code{interactive} | 121 | reading the arguments for a command, in the @code{interactive} |
| 112 | specification. @xref{Defining Commands}. | 122 | specification. @xref{Defining Commands}. |
| 113 | 123 | ||
| 114 | @defun read-from-minibuffer prompt-string &optional initial-contents keymap read hist default inherit-input-method | 124 | @defun read-from-minibuffer prompt &optional initial keymap read history default inherit-input-method |
| 115 | This function is the most general way to get input from the | 125 | This function is the most general way to get input from the |
| 116 | minibuffer. By default, it accepts arbitrary text and returns it as a | 126 | minibuffer. By default, it accepts arbitrary text and returns it as a |
| 117 | string; however, if @var{read} is non-@code{nil}, then it uses | 127 | string; however, if @var{read} is non-@code{nil}, then it uses |
| @@ -119,8 +129,8 @@ string; however, if @var{read} is non-@code{nil}, then it uses | |||
| 119 | Functions}). | 129 | Functions}). |
| 120 | 130 | ||
| 121 | The first thing this function does is to activate a minibuffer and | 131 | The first thing this function does is to activate a minibuffer and |
| 122 | display it with @var{prompt-string} as the prompt. This value must be a | 132 | display it with @var{prompt} (which must be a string) as the |
| 123 | string. Then the user can edit text in the minibuffer. | 133 | prompt. Then the user can edit text in the minibuffer. |
| 124 | 134 | ||
| 125 | When the user types a command to exit the minibuffer, | 135 | When the user types a command to exit the minibuffer, |
| 126 | @code{read-from-minibuffer} constructs the return value from the text in | 136 | @code{read-from-minibuffer} constructs the return value from the text in |
| @@ -132,7 +142,7 @@ reads the text and returns the resulting Lisp object, unevaluated. | |||
| 132 | The argument @var{default} specifies default values to make available | 142 | The argument @var{default} specifies default values to make available |
| 133 | through the history commands. It should be a string, a list of | 143 | through the history commands. It should be a string, a list of |
| 134 | strings, or @code{nil}. The string or strings become the minibuffer's | 144 | strings, or @code{nil}. The string or strings become the minibuffer's |
| 135 | ``future history,'' available to the user with @kbd{M-n}. | 145 | ``future history'', available to the user with @kbd{M-n}. |
| 136 | 146 | ||
| 137 | If @var{read} is non-@code{nil}, then @var{default} is also used | 147 | If @var{read} is non-@code{nil}, then @var{default} is also used |
| 138 | as the input to @code{read}, if the user enters empty input. | 148 | as the input to @code{read}, if the user enters empty input. |
| @@ -149,12 +159,13 @@ value of @code{minibuffer-local-map} is used as the keymap. Specifying | |||
| 149 | a keymap is the most important way to customize the minibuffer for | 159 | a keymap is the most important way to customize the minibuffer for |
| 150 | various applications such as completion. | 160 | various applications such as completion. |
| 151 | 161 | ||
| 152 | The argument @var{hist} specifies which history list variable to use | 162 | The argument @var{history} specifies a history list variable to use |
| 153 | for saving the input and for history commands used in the minibuffer. | 163 | for saving the input and for history commands used in the minibuffer. |
| 154 | It defaults to @code{minibuffer-history}. @xref{Minibuffer History}. | 164 | It defaults to @code{minibuffer-history}. You can optionally specify |
| 165 | a starting position in the history list as well. @xref{Minibuffer History}. | ||
| 155 | 166 | ||
| 156 | If the variable @code{minibuffer-allow-text-properties} is | 167 | If the variable @code{minibuffer-allow-text-properties} is |
| 157 | non-@code{nil}, then the string which is returned includes whatever text | 168 | non-@code{nil}, then the string that is returned includes whatever text |
| 158 | properties were present in the minibuffer. Otherwise all the text | 169 | properties were present in the minibuffer. Otherwise all the text |
| 159 | properties are stripped when the value is returned. | 170 | properties are stripped when the value is returned. |
| 160 | 171 | ||
| @@ -164,9 +175,9 @@ the setting of @code{enable-multibyte-characters} (@pxref{Text | |||
| 164 | Representations}) from whichever buffer was current before entering the | 175 | Representations}) from whichever buffer was current before entering the |
| 165 | minibuffer. | 176 | minibuffer. |
| 166 | 177 | ||
| 167 | Use of @var{initial-contents} is mostly deprecated; we recommend using | 178 | Use of @var{initial} is mostly deprecated; we recommend using |
| 168 | a non-@code{nil} value only in conjunction with specifying a cons cell | 179 | a non-@code{nil} value only in conjunction with specifying a cons cell |
| 169 | for @var{hist}. @xref{Initial Input}. | 180 | for @var{history}. @xref{Initial Input}. |
| 170 | @end defun | 181 | @end defun |
| 171 | 182 | ||
| 172 | @defun read-string prompt &optional initial history default inherit-input-method | 183 | @defun read-string prompt &optional initial history default inherit-input-method |
| @@ -179,11 +190,11 @@ The optional argument @var{default} is used as in | |||
| 179 | @code{read-from-minibuffer}, except that, if non-@code{nil}, it also | 190 | @code{read-from-minibuffer}, except that, if non-@code{nil}, it also |
| 180 | specifies a default value to return if the user enters null input. As | 191 | specifies a default value to return if the user enters null input. As |
| 181 | in @code{read-from-minibuffer} it should be a string, a list of | 192 | in @code{read-from-minibuffer} it should be a string, a list of |
| 182 | strings, or @code{nil} which is equivalent to an empty string. When | 193 | strings, or @code{nil}, which is equivalent to an empty string. When |
| 183 | @var{default} is a string, that string is the default value. When it | 194 | @var{default} is a string, that string is the default value. When it |
| 184 | is a list of strings, the first string is the default value. (All | 195 | is a list of strings, the first string is the default value. (All |
| 185 | these strings are available to the user in the ``future minibuffer | 196 | these strings are available to the user in the ``future minibuffer |
| 186 | history.'') | 197 | history''.) |
| 187 | 198 | ||
| 188 | This function works by calling the | 199 | This function works by calling the |
| 189 | @code{read-from-minibuffer} function: | 200 | @code{read-from-minibuffer} function: |
| @@ -202,16 +213,16 @@ This function works by calling the | |||
| 202 | @end smallexample | 213 | @end smallexample |
| 203 | @end defun | 214 | @end defun |
| 204 | 215 | ||
| 205 | @defun read-regexp prompt &optional default-value | 216 | @defun read-regexp prompt &optional default |
| 206 | This function reads a regular expression as a string from the | 217 | This function reads a regular expression as a string from the |
| 207 | minibuffer and returns it. The argument @var{prompt} is used as in | 218 | minibuffer and returns it. The argument @var{prompt} is used as in |
| 208 | @code{read-from-minibuffer}. The keymap used is | 219 | @code{read-from-minibuffer}. The keymap used is |
| 209 | @code{minibuffer-local-map}, and @code{regexp-history} is used as the | 220 | @code{minibuffer-local-map}, and @code{regexp-history} is used as the |
| 210 | history list (@pxref{Minibuffer History, regexp-history}). | 221 | history list (@pxref{Minibuffer History, regexp-history}). |
| 211 | 222 | ||
| 212 | The optional argument @var{default-value} specifies a default value to | 223 | The optional argument @var{default} specifies a default value to |
| 213 | return if the user enters null input; it should be a string, or | 224 | return if the user enters null input; it should be a string, or |
| 214 | @code{nil} which is equivalent to an empty string. | 225 | @code{nil}, which is equivalent to an empty string. |
| 215 | 226 | ||
| 216 | In addition, @code{read-regexp} collects a few useful candidates for | 227 | In addition, @code{read-regexp} collects a few useful candidates for |
| 217 | input and passes them to @code{read-from-minibuffer}, to make them | 228 | input and passes them to @code{read-from-minibuffer}, to make them |
| @@ -235,9 +246,9 @@ function, after computing the list of defaults as described above. | |||
| 235 | @end defun | 246 | @end defun |
| 236 | 247 | ||
| 237 | @defvar minibuffer-allow-text-properties | 248 | @defvar minibuffer-allow-text-properties |
| 238 | If this variable is @code{nil}, then @code{read-from-minibuffer} strips | 249 | If this variable is @code{nil}, then @code{read-from-minibuffer} |
| 239 | all text properties from the minibuffer input before returning it. | 250 | and @code{read-string} strip all text properties from the minibuffer |
| 240 | This variable also affects @code{read-string}. However, | 251 | input before returning it. However, |
| 241 | @code{read-no-blanks-input} (see below), as well as | 252 | @code{read-no-blanks-input} (see below), as well as |
| 242 | @code{read-minibuffer} and related functions (@pxref{Object from | 253 | @code{read-minibuffer} and related functions (@pxref{Object from |
| 243 | Minibuffer,, Reading Lisp Objects With the Minibuffer}), and all | 254 | Minibuffer,, Reading Lisp Objects With the Minibuffer}), and all |
| @@ -275,6 +286,12 @@ default, it makes the following bindings: | |||
| 275 | 286 | ||
| 276 | @item @kbd{M-r} | 287 | @item @kbd{M-r} |
| 277 | @code{previous-matching-history-element} | 288 | @code{previous-matching-history-element} |
| 289 | |||
| 290 | @ignore | ||
| 291 | @c Does not seem worth/appropriate mentioning. | ||
| 292 | @item @kbd{C-@key{TAB}} | ||
| 293 | @code{file-cache-minibuffer-complete} | ||
| 294 | @end ignore | ||
| 278 | @end table | 295 | @end table |
| 279 | @end defvar | 296 | @end defvar |
| 280 | 297 | ||
| @@ -305,6 +322,8 @@ This function discards text properties, regardless of the value of | |||
| 305 | @end smallexample | 322 | @end smallexample |
| 306 | @end defun | 323 | @end defun |
| 307 | 324 | ||
| 325 | @c Slightly unfortunate name, suggesting it might be related to the | ||
| 326 | @c Nextstep port... | ||
| 308 | @defvar minibuffer-local-ns-map | 327 | @defvar minibuffer-local-ns-map |
| 309 | This built-in variable is the keymap used as the minibuffer local keymap | 328 | This built-in variable is the keymap used as the minibuffer local keymap |
| 310 | in the function @code{read-no-blanks-input}. By default, it makes the | 329 | in the function @code{read-no-blanks-input}. By default, it makes the |
| @@ -441,7 +460,7 @@ is a list of strings (previous inputs), most recent first. | |||
| 441 | kinds of inputs. It's the Lisp programmer's job to specify the right | 460 | kinds of inputs. It's the Lisp programmer's job to specify the right |
| 442 | history list for each use of the minibuffer. | 461 | history list for each use of the minibuffer. |
| 443 | 462 | ||
| 444 | You specify a minibuffer history list with the optional @var{hist} | 463 | You specify a minibuffer history list with the optional @var{history} |
| 445 | argument to @code{read-from-minibuffer} or @code{completing-read}. | 464 | argument to @code{read-from-minibuffer} or @code{completing-read}. |
| 446 | Here are the possible values for it: | 465 | Here are the possible values for it: |
| 447 | 466 | ||
| @@ -457,7 +476,7 @@ Specifying 0 for @var{startpos} is equivalent to just specifying the | |||
| 457 | symbol @var{variable}. @code{previous-history-element} will display | 476 | symbol @var{variable}. @code{previous-history-element} will display |
| 458 | the most recent element of the history list in the minibuffer. If you | 477 | the most recent element of the history list in the minibuffer. If you |
| 459 | specify a positive @var{startpos}, the minibuffer history functions | 478 | specify a positive @var{startpos}, the minibuffer history functions |
| 460 | behave as if @code{(elt @var{variable} (1- @var{STARTPOS}))} were the | 479 | behave as if @code{(elt @var{variable} (1- @var{startpos}))} were the |
| 461 | history element currently shown in the minibuffer. | 480 | history element currently shown in the minibuffer. |
| 462 | 481 | ||
| 463 | For consistency, you should also specify that element of the history | 482 | For consistency, you should also specify that element of the history |
| @@ -465,7 +484,7 @@ as the initial minibuffer contents, using the @var{initial} argument | |||
| 465 | to the minibuffer input function (@pxref{Initial Input}). | 484 | to the minibuffer input function (@pxref{Initial Input}). |
| 466 | @end table | 485 | @end table |
| 467 | 486 | ||
| 468 | If you don't specify @var{hist}, then the default history list | 487 | If you don't specify @var{history}, then the default history list |
| 469 | @code{minibuffer-history} is used. For other standard history lists, | 488 | @code{minibuffer-history} is used. For other standard history lists, |
| 470 | see below. You can also create your own history list variable; just | 489 | see below. You can also create your own history list variable; just |
| 471 | initialize it to @code{nil} before the first use. | 490 | initialize it to @code{nil} before the first use. |
| @@ -560,7 +579,7 @@ A history list for arguments that are Lisp expressions to evaluate. | |||
| 560 | @section Initial Input | 579 | @section Initial Input |
| 561 | 580 | ||
| 562 | Several of the functions for minibuffer input have an argument called | 581 | Several of the functions for minibuffer input have an argument called |
| 563 | @var{initial} or @var{initial-contents}. This is a mostly-deprecated | 582 | @var{initial}. This is a mostly-deprecated |
| 564 | feature for specifying that the minibuffer should start out with | 583 | feature for specifying that the minibuffer should start out with |
| 565 | certain text, instead of empty as usual. | 584 | certain text, instead of empty as usual. |
| 566 | 585 | ||
| @@ -577,7 +596,7 @@ to offer useful default inputs to the user. | |||
| 577 | 596 | ||
| 578 | There is just one situation where you should specify a string for an | 597 | There is just one situation where you should specify a string for an |
| 579 | @var{initial} argument. This is when you specify a cons cell for the | 598 | @var{initial} argument. This is when you specify a cons cell for the |
| 580 | @var{hist} or @var{history} argument. @xref{Minibuffer History}. | 599 | @var{history} argument. @xref{Minibuffer History}. |
| 581 | 600 | ||
| 582 | @var{initial} can also be a cons cell of the form @code{(@var{string} | 601 | @var{initial} can also be a cons cell of the form @code{(@var{string} |
| 583 | . @var{position})}. This means to insert @var{string} in the | 602 | . @var{position})}. This means to insert @var{string} in the |
| @@ -663,7 +682,7 @@ If @var{collection} is an alist (@pxref{Association Lists}), the | |||
| 663 | permissible completions are the elements of the alist that are either | 682 | permissible completions are the elements of the alist that are either |
| 664 | strings, or conses whose @sc{car} is a string or symbol. | 683 | strings, or conses whose @sc{car} is a string or symbol. |
| 665 | Symbols are converted to strings using @code{symbol-name}. Other | 684 | Symbols are converted to strings using @code{symbol-name}. Other |
| 666 | elements of the alist are ignored. (Remember that in Emacs Lisp, the | 685 | elements of the alist are ignored. (Remember that in Emacs Lisp, the |
| 667 | elements of alists do not @emph{have} to be conses.) In particular, a | 686 | elements of alists do not @emph{have} to be conses.) In particular, a |
| 668 | list of strings is allowed, even though we usually do not | 687 | list of strings is allowed, even though we usually do not |
| 669 | think of such lists as alists. | 688 | think of such lists as alists. |
| @@ -880,7 +899,7 @@ Here is a usage example: | |||
| 880 | This section describes the basic interface for reading from the | 899 | This section describes the basic interface for reading from the |
| 881 | minibuffer with completion. | 900 | minibuffer with completion. |
| 882 | 901 | ||
| 883 | @defun completing-read prompt collection &optional predicate require-match initial hist default inherit-input-method | 902 | @defun completing-read prompt collection &optional predicate require-match initial history default inherit-input-method |
| 884 | This function reads a string in the minibuffer, assisting the user by | 903 | This function reads a string in the minibuffer, assisting the user by |
| 885 | providing completion. It activates the minibuffer with prompt | 904 | providing completion. It activates the minibuffer with prompt |
| 886 | @var{prompt}, which must be a string. | 905 | @var{prompt}, which must be a string. |
| @@ -935,13 +954,13 @@ The function @code{completing-read} uses | |||
| 935 | @code{minibuffer-local-must-match-map} if @var{require-match} is | 954 | @code{minibuffer-local-must-match-map} if @var{require-match} is |
| 936 | non-@code{nil}. @xref{Completion Commands}. | 955 | non-@code{nil}. @xref{Completion Commands}. |
| 937 | 956 | ||
| 938 | The argument @var{hist} specifies which history list variable to use for | 957 | The argument @var{history} specifies which history list variable to use for |
| 939 | saving the input and for minibuffer history commands. It defaults to | 958 | saving the input and for minibuffer history commands. It defaults to |
| 940 | @code{minibuffer-history}. @xref{Minibuffer History}. | 959 | @code{minibuffer-history}. @xref{Minibuffer History}. |
| 941 | 960 | ||
| 942 | The argument @var{initial} is mostly deprecated; we recommend using a | 961 | The argument @var{initial} is mostly deprecated; we recommend using a |
| 943 | non-@code{nil} value only in conjunction with specifying a cons cell | 962 | non-@code{nil} value only in conjunction with specifying a cons cell |
| 944 | for @var{hist}. @xref{Initial Input}. For default input, use | 963 | for @var{history}. @xref{Initial Input}. For default input, use |
| 945 | @var{default} instead. | 964 | @var{default} instead. |
| 946 | 965 | ||
| 947 | If the argument @var{inherit-input-method} is non-@code{nil}, then the | 966 | If the argument @var{inherit-input-method} is non-@code{nil}, then the |
| @@ -1545,17 +1564,17 @@ The file is @point{} | |||
| 1545 | @end example | 1564 | @end example |
| 1546 | @end defopt | 1565 | @end defopt |
| 1547 | 1566 | ||
| 1548 | @defun read-shell-command prompt &optional initial-contents hist &rest args | 1567 | @defun read-shell-command prompt &optional initial history &rest args |
| 1549 | This function reads a shell command from the minibuffer, prompting | 1568 | This function reads a shell command from the minibuffer, prompting |
| 1550 | with @var{prompt} and providing intelligent completion. It completes | 1569 | with @var{prompt} and providing intelligent completion. It completes |
| 1551 | the first word of the command using candidates that are appropriate | 1570 | the first word of the command using candidates that are appropriate |
| 1552 | for command names, and the rest of the command words as file names. | 1571 | for command names, and the rest of the command words as file names. |
| 1553 | 1572 | ||
| 1554 | This function uses @code{minibuffer-local-shell-command-map} as the | 1573 | This function uses @code{minibuffer-local-shell-command-map} as the |
| 1555 | keymap for minibuffer input. The @var{hist} argument specifies the | 1574 | keymap for minibuffer input. The @var{history} argument specifies the |
| 1556 | history list to use; if is omitted or @code{nil}, it defaults to | 1575 | history list to use; if is omitted or @code{nil}, it defaults to |
| 1557 | @code{shell-command-history} (@pxref{Minibuffer History, | 1576 | @code{shell-command-history} (@pxref{Minibuffer History, |
| 1558 | shell-command-history}). The optional argument @var{initial-contents} | 1577 | shell-command-history}). The optional argument @var{initial} |
| 1559 | specifies the initial content of the minibuffer (@pxref{Initial | 1578 | specifies the initial content of the minibuffer (@pxref{Initial |
| 1560 | Input}). The rest of @var{args}, if present, are used as the | 1579 | Input}). The rest of @var{args}, if present, are used as the |
| 1561 | @var{default} and @var{inherit-input-method} arguments in | 1580 | @var{default} and @var{inherit-input-method} arguments in |
| @@ -1727,9 +1746,10 @@ some completion alternative; @code{nil} otherwise. | |||
| 1727 | 1746 | ||
| 1728 | @item (boundaries . @var{suffix}) | 1747 | @item (boundaries . @var{suffix}) |
| 1729 | This specifies a @code{completion-boundaries} operation. The function | 1748 | This specifies a @code{completion-boundaries} operation. The function |
| 1730 | should return @code{(boundaries START . END)}, where START is the | 1749 | should return @code{(boundaries @var{start} . @var{end})}, where |
| 1731 | position of the beginning boundary in the specified string, and END is | 1750 | @var{start} is the position of the beginning boundary in the specified |
| 1732 | the position of the end boundary in SUFFIX. | 1751 | string, and @var{end} is the position of the end boundary in |
| 1752 | @var{suffix}. | ||
| 1733 | 1753 | ||
| 1734 | @item metadata | 1754 | @item metadata |
| 1735 | This specifies a request for information about the state of the | 1755 | This specifies a request for information about the state of the |
| @@ -1891,7 +1911,7 @@ the call. | |||
| 1891 | This function asks the user a question, expecting input in the echo | 1911 | This function asks the user a question, expecting input in the echo |
| 1892 | area. It returns @code{t} if the user types @kbd{y}, @code{nil} if the | 1912 | area. It returns @code{t} if the user types @kbd{y}, @code{nil} if the |
| 1893 | user types @kbd{n}. This function also accepts @key{SPC} to mean yes | 1913 | user types @kbd{n}. This function also accepts @key{SPC} to mean yes |
| 1894 | and @key{DEL} to mean no. It accepts @kbd{C-]} to mean ``quit,'' like | 1914 | and @key{DEL} to mean no. It accepts @kbd{C-]} to mean ``quit'', like |
| 1895 | @kbd{C-g}, because the question might look like a minibuffer and for | 1915 | @kbd{C-g}, because the question might look like a minibuffer and for |
| 1896 | that reason the user might try to use @kbd{C-]} to get out. The answer | 1916 | that reason the user might try to use @kbd{C-]} to get out. The answer |
| 1897 | is a single character, with no @key{RET} needed to terminate it. Upper | 1917 | is a single character, with no @key{RET} needed to terminate it. Upper |
| @@ -1952,10 +1972,10 @@ We show successive lines of echo area messages, but only one actually | |||
| 1952 | appears on the screen at a time. | 1972 | appears on the screen at a time. |
| 1953 | @end defun | 1973 | @end defun |
| 1954 | 1974 | ||
| 1955 | @defun y-or-n-p-with-timeout prompt seconds default-value | 1975 | @defun y-or-n-p-with-timeout prompt seconds default |
| 1956 | Like @code{y-or-n-p}, except that if the user fails to answer within | 1976 | Like @code{y-or-n-p}, except that if the user fails to answer within |
| 1957 | @var{seconds} seconds, this function stops waiting and returns | 1977 | @var{seconds} seconds, this function stops waiting and returns |
| 1958 | @var{default-value}. It works by setting up a timer; see @ref{Timers}. | 1978 | @var{default}. It works by setting up a timer; see @ref{Timers}. |
| 1959 | The argument @var{seconds} may be an integer or a floating point number. | 1979 | The argument @var{seconds} may be an integer or a floating point number. |
| 1960 | @end defun | 1980 | @end defun |
| 1961 | 1981 | ||
| @@ -2081,7 +2101,7 @@ answer); @var{function} is a function of one argument (an object from | |||
| 2081 | 2101 | ||
| 2082 | When the user responds with @var{char}, @code{map-y-or-n-p} calls | 2102 | When the user responds with @var{char}, @code{map-y-or-n-p} calls |
| 2083 | @var{function}. If it returns non-@code{nil}, the object is considered | 2103 | @var{function}. If it returns non-@code{nil}, the object is considered |
| 2084 | ``acted upon,'' and @code{map-y-or-n-p} advances to the next object in | 2104 | ``acted upon'', and @code{map-y-or-n-p} advances to the next object in |
| 2085 | @var{list}. If it returns @code{nil}, the prompt is repeated for the | 2105 | @var{list}. If it returns @code{nil}, the prompt is repeated for the |
| 2086 | same object. | 2106 | same object. |
| 2087 | 2107 | ||