aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2011-10-08 15:17:34 -0400
committerChong Yidong2011-10-08 15:17:34 -0400
commitde09aa521c0424dfb24bbb47e4eb864827ffca76 (patch)
tree912502048dc75e8546707309fd2d4ced0f9add0b
parent2d3fe5d71eec0228a29ce62306878e8a01890bfe (diff)
downloademacs-de09aa521c0424dfb24bbb47e4eb864827ffca76.tar.gz
emacs-de09aa521c0424dfb24bbb47e4eb864827ffca76.zip
* doc/emacs/mini.texi (Completion Options): Document completion-cycle-threshold.
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/mini.texi43
-rw-r--r--etc/NEWS16
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 @@
12011-10-08 Chong Yidong <cyd@stupidchicken.com>
2
3 * mini.texi (Completion Options): Add completion-cycle-threshold.
4
12011-10-08 Eli Zaretskii <eliz@gnu.org> 52011-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
462non-@code{nil}. The default value is @code{nil} on systems that have 462non-@code{nil}. The default value is @code{nil} on systems that have
463case-sensitive file-names, such as GNU/Linux; it is non-@code{nil} on 463case-sensitive file-names, such as GNU/Linux; it is non-@code{nil} on
464systems that have case-insensitive file-names, such as Microsoft 464systems that have case-insensitive file-names, such as Microsoft
465Windows. When completing buffer names, case is significant by 465Windows. When completing buffer names, case differences are ignored
466default; to ignore case differences, change the variable 466if the variable @code{read-buffer-completion-ignore-case} is
467@code{read-buffer-completion-ignore-case} to a non-@code{nil} value. 467non-@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
472that are considered unlikely to be chosen. The variable 472that are considered unlikely to be chosen, as determined by the list
473@code{completion-ignored-extensions} contains a list of strings; a 473variable @code{completion-ignored-extensions}. Each element in the
474file name ending in any of those strings is ignored as a completion 474list should be a string; any file name ending in such a string is
475alternative. The standard value of this variable has several elements 475ignored as a completion alternative. Any element ending in a slash
476including @code{".o"}, @code{".elc"}, and @code{"~"}. For example, if 476(@file{/}) represents a subdirectory name. The standard value of
477a 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
479directory contains @samp{foo.c} and @samp{foo.elc}, @samp{foo}
478completes to @samp{foo.c}. However, if @emph{all} possible 480completes to @samp{foo.c}. However, if @emph{all} possible
479completions end in ``ignored'' strings, they are not ignored: in the 481completions end in ``ignored'' strings, they are not ignored: in the
480previous example, @samp{foo.e} completes to @samp{foo.elc}. 482previous example, @samp{foo.e} completes to @samp{foo.elc}. Emacs
481Displaying the completion list disregards 483disregards @code{completion-ignored-extensions} when showing
482@code{completion-ignored-extensions}; all completions are listed. 484completion 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}
490echoes @samp{Next char not unique}; the second @key{TAB} does the 492echoes @samp{Next char not unique}; the second @key{TAB} does the
491completion list buffer. 493completion list buffer.
492 494
493 If an element of @code{completion-ignored-extensions} ends in a 495@vindex completion-cycle-threshold
494slash (@file{/}), it's a subdirectory name; that directory and its 496 If @code{completion-cycle-threshold} is non-@code{nil}, completion
495contents are ignored. Elements of 497commands can ``cycle'' through completion alternatives. Normally, if
496@code{completion-ignored-extensions} that do not end in a slash are 498there is more than one completion alternative for the text in the
497ordinary file names. 499minibuffer, a completion command completes up to the longest common
500substring. If you change @code{completion-cycle-threshold} to
501@code{t}, the completion command instead completes to the first of
502those completion alternatives; each subsequent invocation of the
503completion command replaces that with the next completion alternative,
504in a cyclic manner. If you give @code{completion-cycle-threshold} a
505numeric value @var{n}, completion commands switch to this cycling
506behavior 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
diff --git a/etc/NEWS b/etc/NEWS
index e3453b3a92f..99cb7b5ab48 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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
105and pops down the *Completions* buffer accordingly. 105and 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.
119Instead, the bindings in minibuffer-local-filename-completion-map are combined
120with minibuffer-local-must-match-map.
121
122** Mail changes 115** Mail changes
123 116
124The default of `send-mail-function' is now `sendmail-query-once', 117The 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.
1130Instead, the bindings in minibuffer-local-filename-completion-map are
1131combined with minibuffer-local-must-match-map.
1132
1133*** New variable `completing-read-function' allows overriding the
1134behavior of `completing-read'.
1135
1136** `glyphless-char-display' can now distinguish between graphical and 1136** `glyphless-char-display' can now distinguish between graphical and
1137text terminal display, via a char-table entry that is a cons cell. 1137text terminal display, via a char-table entry that is a cons cell.
1138 1138