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

Re: auto-fill-mode



>>>>> In [mule-ja : No.08725] 山岡 wrote:

> Emacs CVS head で auto-fill-mode にすると、行の自動折り返しが変
> なのです。fill-column ちょうどの場所で space をたたくと、そこに
> ある語の始めの場所で改行してしまいます。

この件を pretest-bug に出してみました。以下はそれに添付した応急
パッチです。

*** fill.el~	Sun Apr 18 22:21:52 2004
--- fill.el	Thu May 27 10:29:30 2004
***************
*** 333,339 ****
  and `fill-nobreak-invisible'."
    (or
     (and fill-nobreak-invisible (line-move-invisible (point)))
!    (unless (bolp)
      (or
       ;; Don't break after a period followed by just one space.
       ;; Move back to the previous place to break.
--- 333,339 ----
  and `fill-nobreak-invisible'."
    (or
     (and fill-nobreak-invisible (line-move-invisible (point)))
!    (unless (or (bolp) (looking-at "[ \t]*$"))
      (or
       ;; Don't break after a period followed by just one space.
       ;; Move back to the previous place to break.
-- 
Katsumi Yamaoka <yamaoka@xxxxxxx>