From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#20871: 25.0.50; fill-single-char-nobreak-p does not recognize a single-letter word when it is preceded by an open paren Date: Sat, 17 Aug 2019 09:57:13 +0300 Message-ID: <83mug8nut2.fsf@gnu.org> References: <9A9C6F59-CB27-42D1-911E-F027B443B9BE@acm.org> <8336i1p8zd.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="19642"; mail-complaints-to="usenet@blaine.gmane.org" Cc: mattiase@acm.org, mbork@mbork.pl, 20871@debbugs.gnu.org To: =?UTF-8?Q?Micha=C5=82?= Nazarewicz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 17 08:58:20 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hysfL-0004wO-An for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 08:58:19 +0200 Original-Received: from localhost ([::1]:34554 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hysfK-00025c-4d for geb-bug-gnu-emacs@m.gmane.org; Sat, 17 Aug 2019 02:58:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37223) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hysf5-00025R-FK for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 02:58:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hysf4-00028l-Ey for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 02:58:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:46472) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hysf4-00028f-C2 for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 02:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hysf4-0004qe-8t for bug-gnu-emacs@gnu.org; Sat, 17 Aug 2019 02:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Aug 2019 06:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20871 X-GNU-PR-Package: emacs Original-Received: via spool by 20871-submit@debbugs.gnu.org id=B20871.156602505118591 (code B ref 20871); Sat, 17 Aug 2019 06:58:02 +0000 Original-Received: (at 20871) by debbugs.gnu.org; 17 Aug 2019 06:57:31 +0000 Original-Received: from localhost ([127.0.0.1]:55293 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyseY-0004pm-Pr for submit@debbugs.gnu.org; Sat, 17 Aug 2019 02:57:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53086) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyseW-0004pY-GG for 20871@debbugs.gnu.org; Sat, 17 Aug 2019 02:57:29 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:37457) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hyseQ-0001xo-9X; Sat, 17 Aug 2019 02:57:22 -0400 Original-Received: from [176.228.60.248] (port=2780 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hyseL-0006w1-QW; Sat, 17 Aug 2019 02:57:18 -0400 In-reply-to: (message from =?UTF-8?Q?Micha=C5=82?= Nazarewicz on Fri, 16 Aug 2019 16:30:55 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165247 Archived-At: > From: Michał Nazarewicz > Date: Fri, 16 Aug 2019 16:30:55 +0100 > Cc: Mattias Engdegård , mbork@mbork.pl, > 20871@debbugs.gnu.org > > On Fri, 16 Aug 2019 at 13:53, Eli Zaretskii wrote: > > Michal says that the original fill-single-char-nobreak-p function > > was supposed to handle the Polish case as well. If that's true, > > perhaps we should deprecate fill-polish-nobreak-p. > > I’m in favour of deprecating one of the functions, yes. OK, but see below. > > However, I do wonder how can a general function handle these cases, > > since in general there's no problem in breaking a line after > > single-letter words. > > We could try and look at `tildify-mode’ for inspiration and especially > ‘tildify-space-pattern’¹ which is: > > "[,:;(][ \t]*[a]\\|\\<[AIKOSUVWZikosuvwz]" My problem is conceptual rather than practical. Since in , e.g., English it is okay to break a line after single-letter words, whereas in Polish it is not, I wonder how can we have a single function satisfy both requirements. We would need some option, and then we would need to decide what is the trigger for changing the value of that option -- it could be the user, or the language environment, or maybe something else. tildify.el explicitly says that its defaults are for a specific language, so I don't think it solves the problem that bothers me, as described above. This is why I originally suggested a separate function -- having that is equivalent to having an option which determines a behavior that depends on the language. I'm also okay with extending tildify.el to support more than just Czech rules, but that's a separate issue.