all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Glenn Morris <rgm@gnu.org>,
	Geoff Shannon <geoffpshannon@gmail.com>,
	17321@debbugs.gnu.org
Subject: bug#17321: 24.3.50; Fill paragraph fails with period in fill-column
Date: Sat, 04 Sep 2021 10:53:56 +0200	[thread overview]
Message-ID: <87fsukraaj.fsf@gnus.org> (raw)
In-Reply-To: <jwvsioqkwd4.fsf-monnier+emacsbugs@gnu.org> (Stefan Monnier's message of "Sun, 04 May 2014 00:22:16 -0400")

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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  reply	other threads:[~2021-09-04  8:53 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 [this message]
2021-10-10 23:01       ` Stefan Kangas
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=87fsukraaj.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=17321@debbugs.gnu.org \
    --cc=geoffpshannon@gmail.com \
    --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.