aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-02-23 00:32:18 -0800
committerGlenn Morris2012-02-23 00:32:18 -0800
commit49fe4321fbdf9bcb57b0b228c7d90e550128824c (patch)
tree27e491f8acf008982715418b23a8d70774f48f6f
parent8e911f6f933455fd1d6709dd60965fb9191e81d6 (diff)
downloademacs-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-RELEASE2
-rw-r--r--doc/emacs/ChangeLog5
-rw-r--r--doc/emacs/mini.texi32
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/minibuffer.el4
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
151macos.texi rgm (can't actually test any of it though) 151macos.texi rgm (can't actually test any of it though)
152maintaining.texi cyd 152maintaining.texi cyd
153mark.texi cyd 153mark.texi cyd
154mini.texi 154mini.texi rgm
155misc.texi cyd 155misc.texi cyd
156modes.texi cyd 156modes.texi cyd
157msdog.texi rgm (can't actually test any of it though) 157msdog.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 @@
12012-02-23 Glenn Morris <rgm@gnu.org> 12012-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
58directory}. For example, it may start out like this: 58directory}. For example, it may start out like this:
59 59
60@example 60@example
61Find File: /u2/emacs/src/ 61Find file: /u2/emacs/src/
62@end example 62@end example
63 63
64@noindent 64@noindent
65Here, @samp{Find File:@: } is the prompt and @samp{/u2/emacs/src/} is 65Here, @samp{Find file:@: } is the prompt and @samp{/u2/emacs/src/} is
66the default directory. If you now type @kbd{buffer.c} as input, that 66the default directory. If you now type @kbd{buffer.c} as input, that
67specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names}, 67specifies the file @file{/u2/emacs/src/buffer.c}. @xref{File Names},
68for information about the default directory. 68for information about the default directory.
@@ -79,7 +79,7 @@ name starting with a slash or a tilde after the default directory.
79For example, you can specify @file{/etc/termcap} as follows: 79For example, you can specify @file{/etc/termcap} as follows:
80 80
81@example 81@example
82Find File: /u2/emacs/src//etc/termcap 82Find file: /u2/emacs/src//etc/termcap
83@end example 83@end example
84 84
85@noindent 85@noindent
@@ -247,7 +247,10 @@ completion.
247completion alternatives (in this case, command names) that start with 247completion 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
251may be defined in your Emacs session. For example, if a command
252called @code{authorize-me} was defined, Emacs could only complete
253as 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
253next character; it could be @samp{-}, @samp{a}, or @samp{c}. So it 256next 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
387completion, with an exception: if you typed @key{TAB} and this 390completion, with an exception: if you typed @key{TAB} and this
388completed the text up to some intermediate state (i.e. one that is not 391completed the text up to some intermediate state (i.e., one that is not
389yet an exact completion match), typing @key{RET} right afterward does 392yet an exact completion match), typing @key{RET} right afterward does
390not submit the argument. Instead, Emacs asks for confirmation by 393not submit the argument. Instead, Emacs asks for confirmation by
391momentarily displaying @samp{[Confirm]} after the text; type @key{RET} 394momentarily displaying @samp{[Confirm]} after the text; type @key{RET}
@@ -450,8 +453,7 @@ position in the completion alternative.
450@item emacs22 453@item emacs22
451This completion style is similar to @code{basic}, except that it 454This completion style is similar to @code{basic}, except that it
452ignores the text in the minibuffer after point. It is so-named 455ignores the text in the minibuffer after point. It is so-named
453because it corresponds to the completion behavior in Emacs 22 and 456because it corresponds to the completion behavior in Emacs 22.
454earlier.
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
476matches @samp{lch} to @samp{list-command-history}. 478matches @samp{lch} to @samp{list-command-history}.
477@end table 479@end table
478 480
481@noindent
482There is also a very simple completion style called @code{emacs21}.
483In this style, if the text in the minibuffer is @samp{foobar},
484only matches starting with @samp{foobar} are considered.
485
486@vindex completion-category-overrides
487You can use different completion styles in different situations,
488by setting the variable @code{completion-category-overrides}.
489For example, the default setting says to use only @code{basic}
490and @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
522shows the completion list buffer on the second attempt to complete. 536shows the completion list buffer on the second attempt to complete.
523In other words, if there is nothing to complete, the first @key{TAB} 537In other words, if there is nothing to complete, the first @key{TAB}
524echoes @samp{Next char not unique}; the second @key{TAB} does the 538echoes @samp{Next char not unique}; the second @key{TAB} shows the
525completion list buffer. 539completion 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
690list in the variable @code{command-history}. Each element is a Lisp 704list in the variable @code{command-history}. Each element is a Lisp
691expression which describes one command and its arguments. Lisp programs 705expression that describes one command and its arguments. Lisp programs
692can re-execute a command by calling @code{eval} with the 706can 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
62012-02-23 Glenn Morris <rgm@gnu.org>
7
8 * minibuffer.el (completion-category-overrides): Doc fix.
9
62012-02-23 Stefan Monnier <monnier@iro.umontreal.ca> 102012-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."
510Each override has the shape (CATEGORY . ALIST) where ALIST is 510Each override has the shape (CATEGORY . ALIST) where ALIST is
511an association list that can specify properties such as: 511an 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.
514Categories are symbols such as `buffer' and `file', used when
515completing 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)