GNU bug report logs - #78561
[PATCH] Add semantic linefeed support for paragraph filling

Previous Next

Package: emacs;

Reported by: Roi Martin <jroi.martin <at> gmail.com>

Date: Fri, 23 May 2025 09:59:02 UTC

Severity: normal

Tags: patch

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jordan Ellis Coppard <jc+o.emacs <at> wz.ht>
Cc: Roi Martin <jroi.martin <at> gmail.com>, 78561 <at> debbugs.gnu.org
Subject: bug#78561: [PATCH] Add semantic linefeed support for paragraph filling
Date: Sat, 21 Jun 2025 22:26:22 +0300
> Date: Sun, 22 Jun 2025 03:49:07 +0900
> From: Jordan Ellis Coppard <jc+o.emacs <at> wz.ht>
> Cc: bug-gnu-emacs <at> gnu.org
> 
> My 2c here is that this seems rather basic and while the tests pass with 
> toy lorem-ipsum language it fails completely if abbreviations are used, 
> for example, running M-x fill-paragraph-semlf over:
> 
> #+begin_example
> Hi there Chris! I see you've got your M.D. now so I suppose I should 
> call you Dr. Yoo. I hear you're also a newly appointed U.S. Rep., what 
> is that like? Good I hope.
> #+end_example
> 
> Gets split to:
> 
> #+begin_example
> Hi there Chris!
> I see you've got your M.D.
> now so I suppose I should call you Dr.
> Yoo.
> I hear you're also a newly appointed U.S.
> Rep., what is that like?
> Good I hope.
> #+end_example
> 
> This is not correct, one would expect:

Do you have sentence-end-double-space set to nil?  If yes, this is a
feature.  If no, that's indeed a bug, since semantic linefeed should
not consider a single space after a period to be the end of a sentence
in that case.

Roi, could you take a look, please?




This bug report was last modified 18 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.