emacs-pretest-bug
[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: Thu, 03 Jun 2004 15:38:44 +0900
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

Could anyone please take on the work to fix that problem?
Thanks in advance.

-------------------- Start of forwarded message --------------------
From: Katsumi Yamaoka <address@hidden>
Newsgroups: gmane.emacs.pretest.bugs
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]