]> git.eshelyaron.com Git - emacs.git/commitdiff
; Document buffer name completion narrowing by major mode
authorEshel Yaron <me@eshelyaron.com>
Tue, 26 Dec 2023 15:48:35 +0000 (16:48 +0100)
committerEshel Yaron <me@eshelyaron.com>
Tue, 26 Dec 2023 15:48:35 +0000 (16:48 +0100)
doc/emacs/buffers.texi
doc/emacs/mini.texi

index b6aafe24b9643db0a26719674877f0d207b03cc8..21e1609ee1427e37645b98cf1ceb1143a887ed34 100644 (file)
@@ -109,8 +109,11 @@ related commands, use @dfn{permissive completion with confirmation}
 for minibuffer completion: if you type @key{RET} when the minibuffer
 text names a nonexistent buffer, Emacs prints @samp{[Confirm]} and you
 must type a second @key{RET} to submit that buffer name.
-@xref{Completion Exit}, for details.  For other completion options and
-features, see @ref{Completion Options}.
+@xref{Completion Exit}, for details.  You can restrict the list of
+possible completions to only include buffers with a certain major mode
+by typing @kbd{C-x n m} in the minibuffer.  @xref{Narrow Completions}.
+For other completion options and features, see @ref{Completion
+Options}.
 
   If you specify a buffer that does not exist, @kbd{C-x b} creates a
 new, empty buffer that is not visiting any file, and selects it for
index 50def33b9246f7ebf53c7b08222055478128462b..49983a411cfd1226771245a6bca2a545aee92862 100644 (file)
@@ -678,10 +678,13 @@ read a symbol name from the minibuffer, such as @kbd{C-h f} and
 @kbd{C-h o} (@pxref{Name Help}), let you restrict the completions list
 with @kbd{C-x n m} to show only symbols with a given property.
 @xref{Symbol Properties,,,elisp,The Emacs Lisp Reference Manual}.
-When the command does not provide a specific way of restricting
-completion candidates, @kbd{C-x n m} prompts you for a regular
-expression and narrows the completions list to only include candidates
-which match that regular expression.  @xref{Regexps}.
+Similarly, commands that read a buffer name, such as @kbd{C-x b}
+(@pxref{Select Buffer}), make @kbd{C-x n m} restrict the completions
+list by candidate buffer major mode.  When the command does not
+provide a specific way of restricting completion candidates, @kbd{C-x
+n m} prompts you for a regular expression and narrows the completions
+list to only include candidates which match that regular expression.
+@xref{Regexps}.
 
 When you narrow the completions list with @kbd{C-x n n} or with
 @kbd{C-x n m}, Emacs extends the completions heading line with a