From: David Kastrup <dak@gnu.org>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>, emacs-devel@gnu.org
Subject: Re: do-auto-fill bug?
Date: 06 Jul 2004 09:29:28 +0200 [thread overview]
Message-ID: <x5smc5r3tz.fsf@lola.goethe.zz> (raw)
In-Reply-To: <m14qolycnz.fsf-monnier+emacs@gnu.org>
Stefan <monnier@iro.umontreal.ca> writes:
> > 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.
>
> I've taken a quick look a while back but haven't had the time to come up
> with a good bugfix yet. Maybe your patch (improved to also prevent
> breaking in front of "[ \t]*$") is good enough,
I failed to followup on the following posting on emacs-pretest-bug.
Maybe one of the fixes is better than the other?
From: Richard Stallman <rms@gnu.org>
To: David Kastrup <dak@gnu.org>
CC: emacs-pretest-bug@gnu.org
Subject: Re: auto-fill-mode and filling paragraphs differ
References: <x5hdw31zyf.fsf@lola.goethe.zz>
Message-Id: <E1B9Hjs-0006U4-Re@fencepost.gnu.org>
Date: Fri, 02 Apr 2004 01:01:12 -0500
I would interpret this as the last permissable column of content.
According to C-x =, column 70 is the column _after_ fsafd. If we now
say "ok, at this column, the end of line is legal", it would appear
that auto-fill-mode wraps one column too early. I think that typing a
space immediately at the end of line should _not_ wrap the preceding
word to the next line, but merely replace the typed space (instead of
the last space before that) with a newline.
I agree with you. Does this patch give correct results?
*** fill.el.~1.170.~ Fri Mar 26 12:04:37 2004
--- fill.el Thu Apr 1 23:12:54 2004
***************
*** 353,359 ****
;; Don't split a line if the rest would look like a new paragraph.
(unless use-hard-newlines
(save-excursion
! (skip-chars-forward " \t") (looking-at paragraph-start)))
(run-hook-with-args-until-success 'fill-nobreak-predicate)))))
;; Put `fill-find-break-point-function' property to charsets which
--- 353,364 ----
;; Don't split a line if the rest would look like a new paragraph.
(unless use-hard-newlines
(save-excursion
! (skip-chars-forward " \t")
! ;; If this break point is at the end of the line,
! ;; which can occur for auto-fill, don't consider the newline
! ;; which follows as a reason to return t.
! (and (not (eolp))
! (looking-at paragraph-start))))
(run-hook-with-args-until-success 'fill-nobreak-predicate)))))
;; Put `fill-find-break-point-function' property to charsets which
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2004-07-06 7:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <b9ybrka9n2j.fsf@jpl.org>
2004-07-06 0:10 ` do-auto-fill bug? Katsumi Yamaoka
2004-07-06 4:38 ` Stefan
2004-07-06 7:29 ` David Kastrup [this message]
2004-07-06 8:07 ` Katsumi Yamaoka
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x5smc5r3tz.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=yamaoka@jpl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).