以下は補完が使えるときに、ミニバッファーで定義されている補完コマンドの一覧です。
可能な限りミニバッファーのテキストを補完します。補完できないときは、可能性のある補完候補のリストを表示します(minibuffer-complete
)。
ミニバッファーのテキストを単語単位で補完します(minibuffer-complete-word
)。このコマンドは、引数にスペースが含まれる可能性のあるファイル名などでは利用できません。
最初に可能な限り補完した後で、ミニバッファーのテキストを引数として確定します。補完の終了を参照してください。
補完候補の一覧を表示します(minibuffer-completion-help
)。
TAB
(minibuffer-complete
)は、もっとも基本的な補完コマンドです。これはミニバッファーのテキストとマッチする可能性のある、すべての補完候補を検索して、できるかぎりの補完を試みます。補完候補が選択される方法については、補完候補が選択される方法を参照してください。
SPC
(minibuffer-complete-word
)は、TABと同じように補完をおこないますが、次のハイフンまたは空白までしか補完しません。ミニバッファーが‘auto-f’の場合、‘auto-fill-mode’まで補完できますが、‘ill-’しか挿入しないので‘auto-fill-’となります。次にSPCを入力すると‘auto-fill-mode’が補完されます。
TABやSPCが補完できない場合、マッチする補完候補のリスト(複数ある場合)を、別のウィンドウに表示します。同じリストは?
(minibuffer-completion-help
)でも表示できます。以下は補完一覧で使うことができるコマンドです:
While in the minibuffer or in the completion list buffer, M-DOWN
(minibuffer-next-completion
and M-UP
(minibuffer-previous-completion
) navigate through the completions and
displayed in the completions buffer. When
minibuffer-completion-auto-choose
is non-nil
(which is the
default), using these commands also inserts the current completion candidate
into the minibuffer. If minibuffer-completion-auto-choose
is
nil
, you can use the M-RET command
(minibuffer-choose-completion
) to insert the completion candidates
into the minibuffer. By default, that exits the minibuffer, but with a
prefix argument, C-u M-RET inserts the currently active
candidate without exiting the minibuffer.
Typing M-v, while in the minibuffer, selects the window showing the
completion list (switch-to-completions
). This paves the way for
using the commands below. PageUp, prior and M-g M-c do
the same. You can also select the window in other ways (see 複数ウィンドウ).
補完リストを表示しているバッファーにいる際にはポイント位置にある補完候補を選択します(choose-completion
)。C-u
RETのようにプレフィックス引数を指定することで、ミニバッファーをexitせずにポイント位置の候補が挿入されるので、気が変わったら別の候補を選択することができます。
補完候補リストのバッファー内では、これらのキーは次の補完候補にポイントを移動します(next-completion
)。
補完候補リストのバッファー内では、これらのキーは前の補完候補にポイントを移動します(previous-completion
)。
補完候補リストのバッファー内ではリストバッファーを表示中のウィンドウをquitして、ミニバッファーを表示中のウィンドウを選択します
補完候補リストのバッファー内ではリストバッファーをkillしてそれを表示中のウィンドウを削除します(kill-current-buffer
)。