Function: ido-switch-buffer

ido-switch-buffer is an autoloaded, interactive and byte-compiled function defined in ido.el.gz.

Signature

(ido-switch-buffer)

Documentation

Switch to another buffer.

The buffer is displayed according to ido-default-buffer-method -- the default is to show it in the same window, unless it is already visible in another frame.

As you type in a string, all of the buffers matching the string are displayed if substring-matching is used (default). Look at ido-enable-prefix and ido-toggle-prefix. When you have found the buffer you want, it can then be selected. As you type, most keys have their normal keybindings, except for the following:
RET Select the buffer at the front of the list of matches.
If the list is empty, possibly prompt to create new buffer.

C-j (ido-select-text) Use the current input string verbatim.

C-s (ido-next-match) Put the first element at the end of the list.
C-r (ido-prev-match) Put the last element at the start of the list.
TAB (ido-complete) Complete a common suffix to the current string that matches
all buffers. If there is only one match, select that buffer.
If there is no common suffix, show a list of all matching buffers
in a separate window.
C-e (ido-edit-input) Edit input string.
C-x C-b (ido-fallback-command) Fallback to non-ido version of current command.
C-t (ido-toggle-regexp) Toggle regexp searching.
C-p (ido-toggle-prefix) Toggle between substring and prefix matching.
C-c (ido-toggle-case) Toggle case-sensitive searching of buffer names.
? (ido-completion-help) Show list of matching buffers in separate window.
C-x C-f (ido-enter-find-file) Drop into ido-find-file.
C-k (ido-kill-buffer-at-head) Kill buffer at head of buffer list.
C-a (ido-toggle-ignore) Toggle ignoring buffers listed in ido-ignore-buffers.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/ido.el.gz
;;; ----------- IDONIZED FUNCTIONS ------------

;;;###autoload
(defun ido-switch-buffer ()
  "Switch to another buffer.
The buffer is displayed according to `ido-default-buffer-method' -- the
default is to show it in the same window, unless it is already visible
in another frame.

As you type in a string, all of the buffers matching the string are
displayed if substring-matching is used (default).  Look at
`ido-enable-prefix' and `ido-toggle-prefix'.  When you have found the
buffer you want, it can then be selected.  As you type, most keys have
their normal keybindings, except for the following: \\<ido-buffer-completion-map>

RET\tSelect the buffer at the front of the list of matches.
\tIf the list is empty, possibly prompt to create new buffer.

\\[ido-select-text]\tUse the current input string verbatim.

\\[ido-next-match]\tPut the first element at the end of the list.
\\[ido-prev-match]\tPut the last element at the start of the list.
\\[ido-complete]\tComplete a common suffix to the current string that matches
\tall buffers.  If there is only one match, select that buffer.
\tIf there is no common suffix, show a list of all matching buffers
\tin a separate window.
\\[ido-edit-input]\tEdit input string.
\\[ido-fallback-command]\tFallback to non-ido version of current command.
\\[ido-toggle-regexp]\tToggle regexp searching.
\\[ido-toggle-prefix]\tToggle between substring and prefix matching.
\\[ido-toggle-case]\tToggle case-sensitive searching of buffer names.
\\[ido-completion-help]\tShow list of matching buffers in separate window.
\\[ido-enter-find-file]\tDrop into `ido-find-file'.
\\[ido-kill-buffer-at-head]\tKill buffer at head of buffer list.
\\[ido-toggle-ignore]\tToggle ignoring buffers listed in `ido-ignore-buffers'."
  (interactive)
  (ido-buffer-internal ido-default-buffer-method))