Next: Registers, Previous: Text Properties, Up: Text
つぎの関数は、指定した領域内の文字をそれらの文字コードに基づいて置き換えます。
この関数は、カレントバッファのstartとendで定義される領域の すべての文字old-charを文字new-charに置き換える。
noundoが
nil
以外であると、subst-char-in-region
はアンドゥ用の変更を記録せず、 バッファに変更済みの印も付けない。 この機能は、選択表示(see Selective Display)の制御に使われている。
subst-char-in-region
はポイントを移動せず、nil
を返す。---------- Buffer: foo ---------- This is the contents of the buffer before. ---------- Buffer: foo ---------- (subst-char-in-region 1 20 ?i ?X) nil ---------- Buffer: foo ---------- ThXs Xs the contents of the buffer before. ---------- Buffer: foo ----------