From: Stefan Kangas <stefan@marxist.se>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Glenn Morris <rgm@gnu.org>,
Geoff Shannon <geoffpshannon@gmail.com>,
17321@debbugs.gnu.org, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: bug#17321: 24.3.50; Fill paragraph fails with period in fill-column
Date: Sun, 10 Oct 2021 16:01:31 -0700 [thread overview]
Message-ID: <CADwFkm=rrMqed02wjXQBbjWeo15cYeGjhkoixjhVKV5mc-_tKg@mail.gmail.com> (raw)
In-Reply-To: <87fsukraaj.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sat, 04 Sep 2021 10:53:56 +0200")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>
>>> ;; Don't break after a period followed by just one space.
>>> ;; Move back to the previous place to break.
>>> ;; The reason is that if a period ends up at the end of a
>>> ;; line, further fills will assume it ends a sentence.
>>> ;; If we now know it does not end a sentence, avoid putting
>>> ;; it at the end of the line.
>>
>> It's likely that this is causing the problem, but I'm not convinced that
>> it justifies the current behavior. IOW, I think it's just a bug.
>
> Ah, this explains the weird behaviour I see from time to time.
>
> If I have
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eius.|
>
> then his a space, I get
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
> eius. |
>
> Then I type on
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
> eius. Ut enim ad|
>
> And then hitting `M-q' gives me
>
> Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eius.
> Ut enim ad|
>
> Anybody against changing this odd behaviour in `fill-nobreak-p'? It's
> not quite clear what the overall repercussions would be, though.
No complaints here. :-)
The most annoying thing is that it does this:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eius. Ut enim ad|
Pressing M-q leads to:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eius.
Ut enim ad|
Pressing M-q again leads to:
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eius. Ut enim ad|
It would IMO be really good if we could avoid this.
next prev parent reply other threads:[~2021-10-10 23:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-23 0:51 bug#17321: 24.3.50; Fill paragraph fails with period in fill-column Geoff Shannon
2014-05-03 0:47 ` Glenn Morris
2014-05-03 0:49 ` Glenn Morris
2014-05-03 21:00 ` Geoff Shannon
2014-05-04 4:22 ` Stefan Monnier
2021-09-04 8:53 ` Lars Ingebrigtsen
2021-10-10 23:01 ` Stefan Kangas [this message]
2021-10-11 7:59 ` Lars Ingebrigtsen
2021-10-11 20:18 ` Stefan Kangas
2021-10-11 8:18 ` Lars Ingebrigtsen
2021-12-25 6:08 ` Stefan Kangas
2021-12-25 11:59 ` Lars Ingebrigtsen
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADwFkm=rrMqed02wjXQBbjWeo15cYeGjhkoixjhVKV5mc-_tKg@mail.gmail.com' \
--to=stefan@marxist.se \
--cc=17321@debbugs.gnu.org \
--cc=geoffpshannon@gmail.com \
--cc=larsi@gnus.org \
--cc=monnier@iro.umontreal.ca \
--cc=rgm@gnu.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.