emacs-devel
[Top][All Lists]
Advanced

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

Re: do-auto-fill bug?


From: Katsumi Yamaoka
Subject: Re: do-auto-fill bug?
Date: Tue, 06 Jul 2004 09:10:55 +0900
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Hi,

I sent a bug report to the pretest-bug list toward the end of
May, however there is no response so far.  Is no one being
troubled with the problem?  The patch I included in the report
seems to have no problem so far, and I hope it will be applied.

Thanks in advance.

-------------------- Start of forwarded message --------------------
From: Katsumi Yamaoka <address@hidden>
To: address@hidden
Subject: do-auto-fill bug?
Date: Thu, 27 May 2004 19:33:24 +0900
Message-ID: <address@hidden>

Hi,

I'm being annoyed with a strange behavior in the auto-fill-mode.
When I type SPC at the end of a line and the column just equals
fill-column, breaking the line takes place at the end of the word
in front of one, not there.  Here's an example:

---------x---------x---------x---------x---------x---------x---------x
The quick brown fox jumps over the lazy dog. The quick brown fox jumps

When fill-column is 70, that line will be folded as follows after
typing SPC at the end of the line:

---------x---------x---------x---------x---------x---------x---------x
The quick brown fox jumps over the lazy dog. The quick brown fox
jumps 

I made a change temporarily like the following patch in order to
cope with the problem:

*** 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.

Regards,
-- 
Katsumi Yamaoka <address@hidden>

-------------------- End of forwarded message --------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]