From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Michal Nazarewicz 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: Fri, 02 Feb 2018 10:18:37 +0100 Organization: https://mina86.com/ Message-ID: References: <87y4jchwog.fsf@mbork.pl> <87wpywhwa8.fsf@mbork.pl> <87shyku4jt.fsf@mbork.pl> <8337qkb7v7.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1517588172 16449 195.159.176.226 (2 Feb 2018 16:16:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 2 Feb 2018 16:16:12 +0000 (UTC) Cc: 20871@debbugs.gnu.org To: Eli Zaretskii , Marcin Borkowski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 02 17:16:07 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehe0F-00037u-9l for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Feb 2018 17:15:51 +0100 Original-Received: from localhost ([::1]:38643 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehe2G-0007O4-AA for geb-bug-gnu-emacs@m.gmane.org; Fri, 02 Feb 2018 11:17:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52008) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ehdEF-00042v-Un for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 10:27:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ehdDB-0003Rn-SN for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 10:26:15 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46267) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ehdDB-0003Hy-Eh for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 10:25:09 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ehXUs-0003IH-5D for bug-gnu-emacs@gnu.org; Fri, 02 Feb 2018 04:19:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michal Nazarewicz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 02 Feb 2018 09:19: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.151756312912643 (code B ref 20871); Fri, 02 Feb 2018 09:19:02 +0000 Original-Received: (at 20871) by debbugs.gnu.org; 2 Feb 2018 09:18:49 +0000 Original-Received: from localhost ([127.0.0.1]:53344 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehXUf-0003Hr-41 for submit@debbugs.gnu.org; Fri, 02 Feb 2018 04:18:49 -0500 Original-Received: from mail-wm0-f50.google.com ([74.125.82.50]:36831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ehXUd-0003Hb-EH for 20871@debbugs.gnu.org; Fri, 02 Feb 2018 04:18:47 -0500 Original-Received: by mail-wm0-f50.google.com with SMTP id f3so10890505wmc.1 for <20871@debbugs.gnu.org>; Fri, 02 Feb 2018 01:18:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:in-reply-to:organization:references:face :openpgp:date:message-id:mime-version:content-transfer-encoding; bh=4AokbJYTKaUjaDXmg2fHlPvtHyZwR/4okVqwWwI1c3c=; b=IwFBYsctH/6cmCyC2/dwSKRHIKdoR6Q3pMkiAzsgp5qRVnAJxuz/IgLpVFzC9wsKnO Oq5NsLizj3bbLfJ+zkoOQb46zq/HtGzGrBMq2jZoGVfQtJ/IZy9ebFz9XvR89ucZiUxL q2OMjNVGbxtGiJBpabRlZNcv8mXysVLm9gRk/z/Bxy33kCeAz9HE7Afl7pOswZB41wxE q6zyAmKocLbYioMI5cmLNz/m8oHitChXzKLUWoDbEXqcCsBO0H6wkKn0EPwBEZLmtfHw Daii798IL9TDl+gYU+0quj4skVYS3/fj/rg1+21aE8CAqGPda1e4U7pCDZqBaHcpmBXw aZww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:in-reply-to :organization:references:face:openpgp:date:message-id:mime-version :content-transfer-encoding; bh=4AokbJYTKaUjaDXmg2fHlPvtHyZwR/4okVqwWwI1c3c=; b=NLI8owmYyagrZorQ90jiSt3sXm2muasu2WT6jbBbnQr1ZIsRQpAZPEk23suC5Dk9Iz mdQWEmm8Ud3CL5MMesuOoWJkWqnCZ0k70a9sVWfWc/vUKjFM6ZUb9HQwd3vHxcuXngUk 1utKUiNBH6Y07Y5fHhkOB+XbCtSJtRqLe24Gj5/O656yl6URzXy3tyXN9LCMyCLNmDw2 Xx+yvLA/+Ue38KjVYB4ahX5wdcZyxGia8fnhMJvc806Pd18VjCSCY/YOJpnd9aJfK29Q 5kR9Qt5AaUfzUZY7rr5XIT1pQlI33Rq/YE27zAiEztp9U90XO7R3bmyulEDu8bnBdOkv zG0Q== X-Gm-Message-State: AKwxytdDcqHTTmc20rTOE0iA+jLqLrTvt48kZjBlAwgnWYFq1yKsMDhx w9zgsFnCbV+7Zxcy5R4D8zlyyJzSaUA= X-Google-Smtp-Source: AH8x227x5M7Krglwov1Xl21kG6pBFp7qieMx82XSKqiPsX6GP+rawVUEzndvplQR7PqnrydE0ZCh7w== X-Received: by 10.80.213.94 with SMTP id f30mr10964798edj.38.1517563121121; Fri, 02 Feb 2018 01:18:41 -0800 (PST) Original-Received: from mpn-glaptop ([2620:0:105f:315:8b11:dc5e:ed21:14cc]) by smtp.gmail.com with ESMTPSA id r7sm1196631edc.23.2018.02.02.01.18.38 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 02 Feb 2018 01:18:39 -0800 (PST) In-Reply-To: <8337qkb7v7.fsf@gnu.org> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWjgIPUupJ7V0jLrom4gmjPs42bY0MdFRLHgE5UPDCbfGm9mH6qmkAJAAACNUlEQVQ4y23SMW/aQBQHcKtb2Zx0abZeIxuTCSELJVmiinboRpGHJktloROQzUQcB2vUXFe35XBYUicRAiYUVSjfru/d+QwlnDz5p/97z+dnVcw5WVQ2zxpcdrQTTiIin3bB6lcaTnaBO5c8eoJG2yBl5El+Ob3fglMW3RUIkQ9xxQ8UBEFQafiVZ/5wZqWExM+LvwEegAY856xZO7MgQkq3jxpO56GXxO5VDQAjpVmWqPLYoSGvIahIuvAVHLeEEDd9DRYAkUcKzscAUgCQ0hwSKBOExuh7kvQQUskY4yjsHqeaCfFjLK6x1AzeeyiRD/C1JW5aGqw5IS5mZre+FVz0RVtoUGPJmBCP/4QPJGKUA1oEMJwAHIv+JljYZYCJi1FRQS2DaUw6sgsQTMfb0Fz9RvjyP3iR01x9RGj0N6HgcefS819CSjidDwIFPSFEDgRg1tUw2oBXAB33T2DV63XbM6AqhZzysm3ZcKZrKBAn5O7Q1rAqGoBKNGRsmUG1n0NKaJtd2RnscTWvnom6fGngDaNrCNl728A+c2gLQP8PFpkEjNWjlGqQfPEhWRqoInSyi2p+drsGDjhAeAeSQI8kfjSwbwCn8gblvIftInzT30HdQT2HlU4gwCbLSQ7VFqVEA0RCtjTwtnjdLlkasNjQwF7x02F2iQSL8XIGB8 VQ71WBKHHf5XCIgLUUtIcGSBPhdZIQorpEBrxsqT3GYgRpmicIqrsEgSZm3FG+iJbHYid0/wGj+iTGCXRsqQAAAABJRU5ErkJggg== OpenPGP: id=AC1F5F5CD41888F8CC8458582060401250751FF4; url=https://mina86.com/mina86.pub X-Hashcash: 1:20:180202:20871@debbugs.gnu.org::8+57/yWRgQrnVxTP:000000000000000000000000000000000000000005hO X-Hashcash: 1:20:180202:mbork@mbork.pl::kKUSblz7oIJelKjH:0005ZZZ X-Hashcash: 1:20:180202:eliz@gnu.org::g7pAReooNIgACr2Q:000001CUu X-Spam-Score: 0.2 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 0.2 (/) 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:142800 Archived-At: On Sun, Apr 17 2016, Eli Zaretskii wrote: > Could you please elaborate on the bug itself? > > See, the function in question, fill-single-char-nobreak-p, is > documented as a possible value to use in the fill hook, for a very > specific purpose. If you are saying that it doesn't fulfill that > purpose well enough, please show a use case where it fails to do that. > At least the situation you described, with " (a", doesn't seem to fit > the use cases which this function is supposed to cover, since the > parenthesis makes a 2-character sequence, whereas > fill-single-char-nobreak-p aims to support isolated one-character > words. As person who wrote =E2=80=98fill-single-char-nobreak-p=E2=80=99 I can say = that its intention was to work for Polish and Czech typography. In other words, what Marcin reported is a genuine defect in the function. In particular, function=E2=80=99s documentation mentions *one-letter* seque= nces, not *one-character* sequences: Return non-nil if a one-letter word is before point. (Admittedly, the name of the function is misleading). As such, I would suggest applying the fix to =E2=80=98fill-single-char-nobreak-p=E2=80=99 rather than introducing a new = function. (And perhaps adding an alias and deprecating the old name if misleading name is too big of a problem). As another point of context, ideally, =E2=80=98tildify-mode=E2=80=99 and =E2=80=98fill-single-char-nobreak-p=E2=80=99 would use the exact same logic= since they both work to address the same underlying typographic conventions. --=20 Best regards =E3=83=9F=E3=83=8F=E3=82=A6 =E2=80=9C=F0=9D=93=B6=F0=9D=93=B2=F0=9D=93=B7= =F0=9D=93=AA86=E2=80=9D =E3=83=8A=E3=82=B6=E3=83=AC=E3=83=B4=E3=82=A4=E3=83= =84 =C2=ABIf at first you don=E2=80=99t succeed, give up skydiving=C2=BB