From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski 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, 30 Apr 2016 14:26:28 +0200 Message-ID: <87vb2zth8r.fsf@mbork.pl> 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> <83a8kfzff7.fsf@gnu.org> <87shy4vc9x.fsf@mbork.pl> <838tzvpcjb.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1462019263 20860 80.91.229.3 (30 Apr 2016 12:27:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Apr 2016 12:27:43 +0000 (UTC) Cc: 20871@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Apr 30 14:27:31 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 1awTzf-0006Xp-EK for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 14:27:31 +0200 Original-Received: from localhost ([::1]:58293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awTzb-0006nF-54 for geb-bug-gnu-emacs@m.gmane.org; Sat, 30 Apr 2016 08:27:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52913) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awTzR-0006YJ-J7 for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 08:27:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1awTzF-0004lJ-HE for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 08:27:12 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1awTzF-0004kp-Da for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 08:27:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1awTzB-0003yl-WC for bug-gnu-emacs@gnu.org; Sat, 30 Apr 2016 08:27:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Marcin Borkowski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 30 Apr 2016 12:27:01 +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.146201920015268 (code B ref 20871); Sat, 30 Apr 2016 12:27:01 +0000 Original-Received: (at 20871) by debbugs.gnu.org; 30 Apr 2016 12:26:40 +0000 Original-Received: from localhost ([127.0.0.1]:56452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awTyq-0003yC-Kt for submit@debbugs.gnu.org; Sat, 30 Apr 2016 08:26:40 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:55742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1awTyo-0003y4-FJ for 20871@debbugs.gnu.org; Sat, 30 Apr 2016 08:26:39 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 0E0C8B1E89E; Sat, 30 Apr 2016 14:26:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lWsZHTX+XZv9; Sat, 30 Apr 2016 14:26:32 +0200 (CEST) Original-Received: from localhost (98-171.echostar.pl [213.156.98.171]) by mail.mojserwer.eu (Postfix) with ESMTPSA id 9F3BDB1E89D; Sat, 30 Apr 2016 14:26:31 +0200 (CEST) User-agent: mu4e 0.9.13; emacs 25.1.50.9 In-reply-to: <838tzvpcjb.fsf@gnu.org> 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:117320 Archived-At: On 2016-04-30, at 13:21, Eli Zaretskii wrote: >> From: Marcin Borkowski >> Cc: 20871@debbugs.gnu.org >> Date: Fri, 29 Apr 2016 14:18:34 +0200 >> >> >> + (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. >> >> I guess you are right, Eli - in fact, all one-letter words in Polish are >> matched by [aiouwz]. I decided to go with \cl, as you suggested, >> though - this way, the function could be (probably) useful also for >> Slovaks, for instance. I attach the corrected patch. > > LGTM, thanks. Thanks! >> Just to be sure: in my Emacs, \cl matches also ą, ę, ż, ź, á, ö etc. Is >> it intentional? > > Yes. \cl matches any character that belongs to any of the Latin > blocks. > >> Is it documented somewhere? > > Not sure what needs to be documented, please elaborate. Well, at first I thought that "Latin" means "matching [a-z]". Finding out that accented letter qualify, too, was a (pleasant) surprise. Finding that out using `describe-categories' is a bit tricky, since its output contains ranges, and I don't know which of them does e.g. "ą" belong to. The output of `describe-categories' says "Legend of category mnemonics (see the tail for the longer description)"; I guess the "longer" description might say something more. For instance, this line: (define-category ?l "Latin") in characters.el could be replaced by (define-category ?l "Latin Latin letters (including those with diacritics)") This way, there would be at least a hint at the bottom of the *Help* buffer displayed by `describe-categories'. WDYT? Would you like me to prepare a patch? Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University