The following option enables automatically selecting the window under the mouse pointer. This accomplishes a policy similar to that of window managers that give focus to a frame (and thus trigger its subsequent selection) whenever the mouse pointer enters its window-system window (see 入力のフォーカス).
この変数が非nil
なら、Emacsはマウスポインターの下のウィンドウの自動的な選択を試みる。有意な値は以下のとおり:
これは自動選択トリガー後の遅延秒数を指定する。マウスポインター下のウィンドウはこの遅延秒数の間マウスが留まった後に選択される。
負の数値は正の数値と同様の効果をもつが、数値の絶対数の遅延秒数の間マウスポインターがウィンドウ内に留まり加えて移動を停止した後にウィンドウを選択する点が異なる。
その他の非nil
値はマウスポインターがウィンドウ上にエンターすると即座にウィンドウを選択することを意味する。
いずれのケースでもウィンドウの選択をトリガーするために、マウスポインターはウィンドウのテキスト領域にエンターしなければならない。スクロールバーのスライダーのドラッグやウィンドウのモードラインではコンセプト的には自動選択を発生させるべきではない。
マウスによる自動選択はミニバッファーウィンドウがアクティブなときのみ選択を行い、アクティブなミニバッファーウィンドウの選択解除は決して行わない。
Mouse auto-selection can be used to emulate a focus follows mouse policy for
child frames (see 子フレーム) which usually are not tracked by the
window manager. This requires setting the value of
focus-follows-mouse
(see 入力のフォーカス) to a non-nil
value.
If the value of focus-follows-mouse
is auto-raise
, entering a
child frame with the mouse will raise it automatically above all other child
frames of that frame’s parent frame.