diff options
| author | Glenn Morris | 2012-02-23 00:32:18 -0800 |
|---|---|---|
| committer | Glenn Morris | 2012-02-23 00:32:18 -0800 |
| commit | 49fe4321fbdf9bcb57b0b228c7d90e550128824c (patch) | |
| tree | 27e491f8acf008982715418b23a8d70774f48f6f | |
| parent | 8e911f6f933455fd1d6709dd60965fb9191e81d6 (diff) | |
| download | emacs-49fe4321fbdf9bcb57b0b228c7d90e550128824c.tar.gz emacs-49fe4321fbdf9bcb57b0b228c7d90e550128824c.zip | |
Checked mini.texi
* doc/emacs/mini.texi (Minibuffer File, Completion Options, Repetition):
Copyedits.
(Completion Example): Other M-x au* commands may be defined.
(Completion Styles): Mention emacs21 and completion-category-overrides.
* lisp/minibuffer.el (completion-category-overrides): Doc fix.
* admin/FOR-RELEASE: Related markup.
| -rw-r--r-- | admin/FOR-RELEASE | 2 | ||||
| -rw-r--r-- | doc/emacs/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/emacs/mini.texi | 32 | ||||
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/minibuffer.el | 4 |
5 files changed, 36 insertions, 11 deletions
diff --git a/admin/FOR-RELEASE b/admin/FOR-RELEASE index 72e63dd8255..12b99e49688 100644 --- a/admin/FOR-RELEASE +++ b/admin/FOR-RELEASE | |||
| @@ -151,7 +151,7 @@ kmacro.texi cyd | |||
| 151 | macos.texi rgm (can't actually test any of it though) | 151 | macos.texi rgm (can't actually test any of it though) |
| 152 | maintaining.texi cyd | 152 | maintaining.texi cyd |
| 153 | mark.texi cyd | 153 | mark.texi cyd |
| 154 | mini.texi | 154 | mini.texi rgm |
| 155 | misc.texi cyd | 155 | misc.texi cyd |
| 156 | modes.texi cyd | 156 | modes.texi cyd |
| 157 | msdog.texi rgm (can't actually test any of it though) | 157 | msdog.texi rgm (can't actually test any of it though) |
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index c85ea5e1ea1..2f3a4ee1680 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2012-02-23 Glenn Morris <rgm@gnu.org> | 1 | 2012-02-23 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * mini.texi (Minibuffer File, Completion Options, Repetition): | ||
| 4 | Copyedits. | ||
| 5 | (Completion Example): Other M-x au* commands may be defined. | ||
| 6 | (Completion Styles): Mention emacs21 and completion-category-overrides. | ||
| 7 | |||
| 3 | * msdog.texi (Text and Binary, ls in Lisp, Windows HOME) | 8 | * msdog.texi (Text and Binary, ls in Lisp, Windows HOME) |
| 4 | (Windows Keyboard, Windows Mouse, Windows Processes) | 9 | (Windows Keyboard, Windows Mouse, Windows Processes) |
| 5 | (Windows Printing, Windows Misc): Copyedits. | 10 | (Windows Printing, Windows Misc): Copyedits. |
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi index ca8e8f705b4..e20d5a347cd 100644 --- a/doc/emacs/mini.texi +++ b/doc/emacs/mini.texi | |||
| @@ -58,11 +58,11 @@ some initial text ending in a slash. This is the @dfn{default | |||
| 58 | directory}. For example, it may start out like this: | 58 | directory}. For example, it may start out like this: |
| 59 | 59 | ||
| 60 | @example | 60 | @example |
| 61 | Find File: /u2/emacs/src/ | 61 | Find file: /u2/emacs/src/ |
| 62 | @end example | 62 | @end example |
| 63 | 63 | ||
| 64 | @noindent | 64 | @noindent |
| 65 | Here, @samp{Find File:@: } is the prompt and @samp{/u2/emacs/src/} is | 65 | Here, @samp{Find file:@: } is the prompt and @samp{/u2/emacs/src/} is |
| 66 | the default directory. If you now type @kbd{buffer.c} as input, that | 66 | the default directory. If you now type @kbd{buffer.c} as input, that |
| 67 | specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names}, | 67 | specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names}, |
| 68 | for information about the default directory. | 68 | for information about the default directory. |
| @@ -79,7 +79,7 @@ name starting with a slash or a tilde after the default directory. | |||
| 79 | For example, you can specify @file{/etc/termcap} as follows: | 79 | For example, you can specify @file{/etc/termcap} as follows: |
| 80 | 80 | ||
| 81 | @example | 81 | @example |
| 82 | Find File: /u2/emacs/src//etc/termcap | 82 | Find file: /u2/emacs/src//etc/termcap |
| 83 | @end example | 83 | @end example |
| 84 | 84 | ||
| 85 | @noindent | 85 | @noindent |
| @@ -247,7 +247,10 @@ completion. | |||
| 247 | completion alternatives (in this case, command names) that start with | 247 | completion alternatives (in this case, command names) that start with |
| 248 | @samp{au}. There are several, including @code{auto-fill-mode} and | 248 | @samp{au}. There are several, including @code{auto-fill-mode} and |
| 249 | @code{autoconf-mode}, but they all begin with @code{auto}, so the | 249 | @code{autoconf-mode}, but they all begin with @code{auto}, so the |
| 250 | @samp{au} in the minibuffer completes to @samp{auto}. | 250 | @samp{au} in the minibuffer completes to @samp{auto}. (More commands |
| 251 | may be defined in your Emacs session. For example, if a command | ||
| 252 | called @code{authorize-me} was defined, Emacs could only complete | ||
| 253 | as far as @samp{aut}.) | ||
| 251 | 254 | ||
| 252 | If you type @key{TAB} again immediately, it cannot determine the | 255 | If you type @key{TAB} again immediately, it cannot determine the |
| 253 | next character; it could be @samp{-}, @samp{a}, or @samp{c}. So it | 256 | next character; it could be @samp{-}, @samp{a}, or @samp{c}. So it |
| @@ -385,7 +388,7 @@ it just submits the argument as you have entered it. | |||
| 385 | @item | 388 | @item |
| 386 | @dfn{Permissive completion with confirmation} is like permissive | 389 | @dfn{Permissive completion with confirmation} is like permissive |
| 387 | completion, with an exception: if you typed @key{TAB} and this | 390 | completion, with an exception: if you typed @key{TAB} and this |
| 388 | completed the text up to some intermediate state (i.e. one that is not | 391 | completed the text up to some intermediate state (i.e., one that is not |
| 389 | yet an exact completion match), typing @key{RET} right afterward does | 392 | yet an exact completion match), typing @key{RET} right afterward does |
| 390 | not submit the argument. Instead, Emacs asks for confirmation by | 393 | not submit the argument. Instead, Emacs asks for confirmation by |
| 391 | momentarily displaying @samp{[Confirm]} after the text; type @key{RET} | 394 | momentarily displaying @samp{[Confirm]} after the text; type @key{RET} |
| @@ -450,8 +453,7 @@ position in the completion alternative. | |||
| 450 | @item emacs22 | 453 | @item emacs22 |
| 451 | This completion style is similar to @code{basic}, except that it | 454 | This completion style is similar to @code{basic}, except that it |
| 452 | ignores the text in the minibuffer after point. It is so-named | 455 | ignores the text in the minibuffer after point. It is so-named |
| 453 | because it corresponds to the completion behavior in Emacs 22 and | 456 | because it corresponds to the completion behavior in Emacs 22. |
| 454 | earlier. | ||
| 455 | @end table | 457 | @end table |
| 456 | 458 | ||
| 457 | @noindent | 459 | @noindent |
| @@ -476,6 +478,18 @@ and initialisms. For example, when completing command names, it | |||
| 476 | matches @samp{lch} to @samp{list-command-history}. | 478 | matches @samp{lch} to @samp{list-command-history}. |
| 477 | @end table | 479 | @end table |
| 478 | 480 | ||
| 481 | @noindent | ||
| 482 | There is also a very simple completion style called @code{emacs21}. | ||
| 483 | In this style, if the text in the minibuffer is @samp{foobar}, | ||
| 484 | only matches starting with @samp{foobar} are considered. | ||
| 485 | |||
| 486 | @vindex completion-category-overrides | ||
| 487 | You can use different completion styles in different situations, | ||
| 488 | by setting the variable @code{completion-category-overrides}. | ||
| 489 | For example, the default setting says to use only @code{basic} | ||
| 490 | and @code{substring} completion for buffer names. | ||
| 491 | |||
| 492 | |||
| 479 | @node Completion Options | 493 | @node Completion Options |
| 480 | @subsection Completion Options | 494 | @subsection Completion Options |
| 481 | 495 | ||
| @@ -521,7 +535,7 @@ commands never display the completion list buffer; you must type | |||
| 521 | @kbd{?} to display the list. If the value is @code{lazy}, Emacs only | 535 | @kbd{?} to display the list. If the value is @code{lazy}, Emacs only |
| 522 | shows the completion list buffer on the second attempt to complete. | 536 | shows the completion list buffer on the second attempt to complete. |
| 523 | In other words, if there is nothing to complete, the first @key{TAB} | 537 | In other words, if there is nothing to complete, the first @key{TAB} |
| 524 | echoes @samp{Next char not unique}; the second @key{TAB} does the | 538 | echoes @samp{Next char not unique}; the second @key{TAB} shows the |
| 525 | completion list buffer. | 539 | completion list buffer. |
| 526 | 540 | ||
| 527 | @vindex completion-cycle-threshold | 541 | @vindex completion-cycle-threshold |
| @@ -688,7 +702,7 @@ value. @xref{Incremental Search}. | |||
| 688 | @vindex command-history | 702 | @vindex command-history |
| 689 | The list of previous minibuffer-using commands is stored as a Lisp | 703 | The list of previous minibuffer-using commands is stored as a Lisp |
| 690 | list in the variable @code{command-history}. Each element is a Lisp | 704 | list in the variable @code{command-history}. Each element is a Lisp |
| 691 | expression which describes one command and its arguments. Lisp programs | 705 | expression that describes one command and its arguments. Lisp programs |
| 692 | can re-execute a command by calling @code{eval} with the | 706 | can re-execute a command by calling @code{eval} with the |
| 693 | @code{command-history} element. | 707 | @code{command-history} element. |
| 694 | 708 | ||
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4f8fd60deaa..7e7588d69e8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -3,6 +3,10 @@ | |||
| 3 | * emacs-lisp/lisp.el (beginning-of-defun-raw): Don't call end-of-defun | 3 | * emacs-lisp/lisp.el (beginning-of-defun-raw): Don't call end-of-defun |
| 4 | when it might call us back infinitely (bug#10797). | 4 | when it might call us back infinitely (bug#10797). |
| 5 | 5 | ||
| 6 | 2012-02-23 Glenn Morris <rgm@gnu.org> | ||
| 7 | |||
| 8 | * minibuffer.el (completion-category-overrides): Doc fix. | ||
| 9 | |||
| 6 | 2012-02-23 Stefan Monnier <monnier@iro.umontreal.ca> | 10 | 2012-02-23 Stefan Monnier <monnier@iro.umontreal.ca> |
| 7 | 11 | ||
| 8 | * minibuffer.el (completion-table-with-context): Fix inf-loop. | 12 | * minibuffer.el (completion-table-with-context): Fix inf-loop. |
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 2414baf8e3c..9ee29a7e20c 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el | |||
| @@ -510,7 +510,9 @@ styles for specific categories, such as files, buffers, etc." | |||
| 510 | Each override has the shape (CATEGORY . ALIST) where ALIST is | 510 | Each override has the shape (CATEGORY . ALIST) where ALIST is |
| 511 | an association list that can specify properties such as: | 511 | an association list that can specify properties such as: |
| 512 | - `styles': the list of `completion-styles' to use for that category. | 512 | - `styles': the list of `completion-styles' to use for that category. |
| 513 | - `cycle': the `completion-cycle-threshold' to use for that category." | 513 | - `cycle': the `completion-cycle-threshold' to use for that category. |
| 514 | Categories are symbols such as `buffer' and `file', used when | ||
| 515 | completing buffer and file names, respectively." | ||
| 514 | :version "24.1" | 516 | :version "24.1" |
| 515 | :type `(alist :key-type (choice :tag "Category" | 517 | :type `(alist :key-type (choice :tag "Category" |
| 516 | (const buffer) | 518 | (const buffer) |