Next: , Previous: , Up: コマンドループ   [Contents][Index]


22.6 コマンド後のポイントの調整

When a sequence of text has the display or composition property, or is invisible, there can be several buffer positions that result in the cursor being displayed at same place on the screen. Therefore, after a command finishes and returns to the command loop, if point is in such a sequence, the command loop normally moves point to try and make this sequence effectively intangible.

This point adjustment follows the following general rules: first, the adjustment should not change the overall direction of the command; second if the command moved point, the adjustment tries to ensure the cursor is also moved; third, Emacs prefers the edges of an intangible sequence and among those edges it prefers the non sticky ones, such that newly inserted text is visible.

変数disable-point-adjustmentをセットすることにより、コマンドはこの機能を抑制できます:

Variable: disable-point-adjustment

この変数が非nilならコマンドがコマンドループにリターンするとき、コマンドループはこれらのテキストプロパティをチェックせず、これらのプロパティをもつシーケンスの外にポイントを移動しない。

コマンドループは各コマンドを実行する前にこの変数をnilにセットするので、あるコマンドがこれをセットしても効果が適用されるのはそのコマンドにたいしてだけである。

Variable: global-disable-point-adjustment

この変数を非nilにセットするとシーケンス外にポイントを移動する、これらの機能は完全にオフになる。

This page has generated for branch:master, commit:762705fb24fd90db318f2e51c1e762452d26f7e2 to check Japanese translation.