aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/ChangeLog4
-rw-r--r--doc/emacs/mini.texi43
2 files changed, 30 insertions, 17 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