From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.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: Wed, 27 Apr 2016 10:20:12 +0300 Message-ID: <83a8kfzff7.fsf@gnu.org> References: <87y4jchwog.fsf@mbork.pl> <87wpywhwa8.fsf@mbork.pl> <87shyku4jt.fsf@mbork.pl> <8337qkb7v7.fsf@gnu.org> <87k2jwtfkj.fsf@mbork.pl> <83r3e49o4g.fsf@gnu.org> <87vb33h6ux.fsf@mbork.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1461741682 25269 80.91.229.3 (27 Apr 2016 07:21:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2016 07:21:22 +0000 (UTC) Cc: 20871@debbugs.gnu.org To: Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 09:21:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1avJmZ-0007yX-1N for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 09:21:11 +0200 Original-Received: from localhost ([::1]:41348 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avJmY-0001by-1z for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 03:21:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avJmT-0001Xp-PU for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 03:21:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avJmQ-0002TU-Jb for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 03:21:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avJmQ-0002TL-Gq for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 03:21:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avJmQ-0004m1-CL for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 03:21: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: Wed, 27 Apr 2016 07:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 20871 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 20871-submit@debbugs.gnu.org id=B20871.146174163918308 (code B ref 20871); Wed, 27 Apr 2016 07:21:02 +0000 Original-Received: (at 20871) by debbugs.gnu.org; 27 Apr 2016 07:20:39 +0000 Original-Received: from localhost ([127.0.0.1]:49341 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avJm2-0004lE-OI for submit@debbugs.gnu.org; Wed, 27 Apr 2016 03:20:38 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avJm1-0004l2-HV for 20871@debbugs.gnu.org; Wed, 27 Apr 2016 03:20:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avJls-0002P5-LZ for 20871@debbugs.gnu.org; Wed, 27 Apr 2016 03:20:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:42205) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avJls-0002P1-Iw; Wed, 27 Apr 2016 03:20:28 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2826 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1avJlr-0004iz-SZ; Wed, 27 Apr 2016 03:20:28 -0400 In-reply-to: <87vb33h6ux.fsf@mbork.pl> (message from Marcin Borkowski on Wed, 27 Apr 2016 09:02:36 +0200) 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: 208.118.235.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:116902 Archived-At: > From: Marcin Borkowski > Cc: 20871@debbugs.gnu.org > Date: Wed, 27 Apr 2016 09:02:36 +0200 > > >> I see. So you suggest that instead of patching > >> `fill-single-char-nobreak-p' I should have provided another function, > >> customized for Polish? > > > > Yes, I think so. There's already fill-french-nobreak-p, why shouldn't > > there be a Polish predicate? > > I attach a new patch. Is it better now? Yes, thanks. Just one comment, for your consideration: > + (looking-at "[^[:alpha:]][[:alpha:]]"))) You should be aware that starting with Emacs 25.1 [:alpha:] matches a very large class of characters, some of them having nothing in common with those used in Polish. So perhaps it is better to use '\cl' instead, which will only capture Latin characters? Just a thought -- your call.