[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ぶら下がり処理が後続行で行われることがある



In article <20051205.175746.82629497.horiguti@xxxxxxxxxxxxxxxxxxxx>, Kyotaro HORIGUCHI <horiguti@xxxxxxxxxxx> writes:

> 堀口です. 
>  kinsoku が微妙な動作をします. 

> 参考 http://www.meadowy.org/meadow/ticket/252

>  auto-fill-mode で禁則処理を行うときに現在の行が fill-column より
> 長いけれど切る場所がないときに後ろの行の中で切れる最初のポイントを
> 見つけて見境なく切ってしまいます.

報告ありがとうございます。

> =====
> Index: lisp/international/kinsoku.el
> ===================================================================
> --- lisp/international/kinsoku.el	(revision 3996)
> +++ lisp/international/kinsoku.el	(working copy)
> @@ -127,6 +127,7 @@
>  	 (save-excursion
>  	   (forward-char 1)
>  	   (while (and (not (eobp))
> +		       (not (eq (following-char) ?\n))
>  		       (or (aref (char-category-set (following-char)) ?>)
>  			   ;; protect non-kinsoku words
>  			   (not (or (eq (preceding-char) ? )
> -- 

上記の代りに eobp ではなく eolp を使うよう修正しました。 

---
半田@AIST