diff options
| author | Chong Yidong | 2011-10-08 15:17:34 -0400 |
|---|---|---|
| committer | Chong Yidong | 2011-10-08 15:17:34 -0400 |
| commit | de09aa521c0424dfb24bbb47e4eb864827ffca76 (patch) | |
| tree | 912502048dc75e8546707309fd2d4ced0f9add0b | |
| parent | 2d3fe5d71eec0228a29ce62306878e8a01890bfe (diff) | |
| download | emacs-de09aa521c0424dfb24bbb47e4eb864827ffca76.tar.gz emacs-de09aa521c0424dfb24bbb47e4eb864827ffca76.zip | |
* doc/emacs/mini.texi (Completion Options): Document completion-cycle-threshold.
| -rw-r--r-- | doc/emacs/ChangeLog | 4 | ||||
| -rw-r--r-- | doc/emacs/mini.texi | 43 | ||||
| -rw-r--r-- | etc/NEWS | 16 |
3 files changed, 38 insertions, 25 deletions
diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 4d9a204e1f8..d2d861c4e2a 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-10-08 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * mini.texi (Completion Options): Add completion-cycle-threshold. | ||
| 4 | |||
| 1 | 2011-10-08 Eli Zaretskii <eliz@gnu.org> | 5 | 2011-10-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * mule.texi (Bidirectional Editing): Correct some inaccuracies. | 7 | * mule.texi (Bidirectional Editing): Correct some inaccuracies. |
diff --git a/doc/emacs/mini.texi b/doc/emacs/mini.texi index a9b0394e9b7..a3822ba2bf2 100644 --- a/doc/emacs/mini.texi +++ b/doc/emacs/mini.texi | |||
| @@ -462,24 +462,26 @@ variable @code{read-file-name-completion-ignore-case} is | |||
| 462 | non-@code{nil}. The default value is @code{nil} on systems that have | 462 | non-@code{nil}. The default value is @code{nil} on systems that have |
| 463 | case-sensitive file-names, such as GNU/Linux; it is non-@code{nil} on | 463 | case-sensitive file-names, such as GNU/Linux; it is non-@code{nil} on |
| 464 | systems that have case-insensitive file-names, such as Microsoft | 464 | systems that have case-insensitive file-names, such as Microsoft |
| 465 | Windows. When completing buffer names, case is significant by | 465 | Windows. When completing buffer names, case differences are ignored |
| 466 | default; to ignore case differences, change the variable | 466 | if the variable @code{read-buffer-completion-ignore-case} is |
| 467 | @code{read-buffer-completion-ignore-case} to a non-@code{nil} value. | 467 | non-@code{nil}; the default is @code{nil}. |
| 468 | 468 | ||
| 469 | @vindex completion-ignored-extensions | 469 | @vindex completion-ignored-extensions |
| 470 | @cindex ignored file names, in completion | 470 | @cindex ignored file names, in completion |
| 471 | When completing file names, Emacs usually omits certain alternatives | 471 | When completing file names, Emacs usually omits certain alternatives |
| 472 | that are considered unlikely to be chosen. The variable | 472 | that are considered unlikely to be chosen, as determined by the list |
| 473 | @code{completion-ignored-extensions} contains a list of strings; a | 473 | variable @code{completion-ignored-extensions}. Each element in the |
| 474 | file name ending in any of those strings is ignored as a completion | 474 | list should be a string; any file name ending in such a string is |
| 475 | alternative. The standard value of this variable has several elements | 475 | ignored as a completion alternative. Any element ending in a slash |
| 476 | including @code{".o"}, @code{".elc"}, and @code{"~"}. For example, if | 476 | (@file{/}) represents a subdirectory name. The standard value of |
| 477 | a directory contains @samp{foo.c} and @samp{foo.elc}, @samp{foo} | 477 | @code{completion-ignored-extensions} has several elements including |
| 478 | @code{".o"}, @code{".elc"}, and @code{"~"}. For example, if a | ||
| 479 | directory contains @samp{foo.c} and @samp{foo.elc}, @samp{foo} | ||
| 478 | completes to @samp{foo.c}. However, if @emph{all} possible | 480 | completes to @samp{foo.c}. However, if @emph{all} possible |
| 479 | completions end in ``ignored'' strings, they are not ignored: in the | 481 | completions end in ``ignored'' strings, they are not ignored: in the |
| 480 | previous example, @samp{foo.e} completes to @samp{foo.elc}. | 482 | previous example, @samp{foo.e} completes to @samp{foo.elc}. Emacs |
| 481 | Displaying the completion list disregards | 483 | disregards @code{completion-ignored-extensions} when showing |
| 482 | @code{completion-ignored-extensions}; all completions are listed. | 484 | completion alternatives in the completion list. |
| 483 | 485 | ||
| 484 | @vindex completion-auto-help | 486 | @vindex completion-auto-help |
| 485 | If @code{completion-auto-help} is set to @code{nil}, the completion | 487 | If @code{completion-auto-help} is set to @code{nil}, the completion |
| @@ -490,11 +492,18 @@ In other words, if there is nothing to complete, the first @key{TAB} | |||
| 490 | echoes @samp{Next char not unique}; the second @key{TAB} does the | 492 | echoes @samp{Next char not unique}; the second @key{TAB} does the |
| 491 | completion list buffer. | 493 | completion list buffer. |
| 492 | 494 | ||
| 493 | If an element of @code{completion-ignored-extensions} ends in a | 495 | @vindex completion-cycle-threshold |
| 494 | slash (@file{/}), it's a subdirectory name; that directory and its | 496 | If @code{completion-cycle-threshold} is non-@code{nil}, completion |
| 495 | contents are ignored. Elements of | 497 | commands can ``cycle'' through completion alternatives. Normally, if |
| 496 | @code{completion-ignored-extensions} that do not end in a slash are | 498 | there is more than one completion alternative for the text in the |
| 497 | ordinary file names. | 499 | minibuffer, a completion command completes up to the longest common |
| 500 | substring. If you change @code{completion-cycle-threshold} to | ||
| 501 | @code{t}, the completion command instead completes to the first of | ||
| 502 | those completion alternatives; each subsequent invocation of the | ||
| 503 | completion command replaces that with the next completion alternative, | ||
| 504 | in a cyclic manner. If you give @code{completion-cycle-threshold} a | ||
| 505 | numeric value @var{n}, completion commands switch to this cycling | ||
| 506 | behavior only when there are fewer than @var{n} alternatives. | ||
| 498 | 507 | ||
| 499 | @cindex Icomplete mode | 508 | @cindex Icomplete mode |
| 500 | @findex icomplete-mode | 509 | @findex icomplete-mode |
| @@ -103,7 +103,7 @@ rather than their own completion code. | |||
| 103 | --- | 103 | --- |
| 104 | *** Completion in a non-minibuffer now tries to detect the end of completion | 104 | *** Completion in a non-minibuffer now tries to detect the end of completion |
| 105 | and pops down the *Completions* buffer accordingly. | 105 | and pops down the *Completions* buffer accordingly. |
| 106 | 106 | +++ | |
| 107 | *** Completion can cycle, depending on completion-cycle-threshold. | 107 | *** Completion can cycle, depending on completion-cycle-threshold. |
| 108 | +++ | 108 | +++ |
| 109 | *** New completion style `substring'. | 109 | *** New completion style `substring'. |
| @@ -112,13 +112,6 @@ and pops down the *Completions* buffer accordingly. | |||
| 112 | 112 | ||
| 113 | *** Completion of buffers now uses substring completion by default. | 113 | *** Completion of buffers now uses substring completion by default. |
| 114 | 114 | ||
| 115 | *** `completing-read' can be customized using the new variable | ||
| 116 | `completing-read-function'. | ||
| 117 | |||
| 118 | *** minibuffer-local-filename-must-match-map is not used any more. | ||
| 119 | Instead, the bindings in minibuffer-local-filename-completion-map are combined | ||
| 120 | with minibuffer-local-must-match-map. | ||
| 121 | |||
| 122 | ** Mail changes | 115 | ** Mail changes |
| 123 | 116 | ||
| 124 | The default of `send-mail-function' is now `sendmail-query-once', | 117 | The default of `send-mail-function' is now `sendmail-query-once', |
| @@ -1133,6 +1126,13 @@ can specify various details of the data returned by `all-completions': | |||
| 1133 | - `display-sort-function' to specify how to sort entries in *Completions*. | 1126 | - `display-sort-function' to specify how to sort entries in *Completions*. |
| 1134 | - `cycle-sort-function' to specify how to sort entries when cycling. | 1127 | - `cycle-sort-function' to specify how to sort entries when cycling. |
| 1135 | 1128 | ||
| 1129 | *** minibuffer-local-filename-must-match-map is not used any more. | ||
| 1130 | Instead, the bindings in minibuffer-local-filename-completion-map are | ||
| 1131 | combined with minibuffer-local-must-match-map. | ||
| 1132 | |||
| 1133 | *** New variable `completing-read-function' allows overriding the | ||
| 1134 | behavior of `completing-read'. | ||
| 1135 | |||
| 1136 | ** `glyphless-char-display' can now distinguish between graphical and | 1136 | ** `glyphless-char-display' can now distinguish between graphical and |
| 1137 | text terminal display, via a char-table entry that is a cons cell. | 1137 | text terminal display, via a char-table entry that is a cons cell. |
| 1138 | 1138 | ||