From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#37036: [PATCH] Inconsistent ASCII and Latin char categories Date: Thu, 15 Aug 2019 19:37:49 +0200 Message-ID: <2B0EDC85-CAAE-4658-AA6D-85AF4842BFCF@acm.org> References: <83zhkaphy7.fsf@gnu.org> <183B7811-9B30-4D6B-BFCA-36A13CE8B6DB@acm.org> <83v9uypfdm.fsf@gnu.org> <83pnl6pdo6.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="105158"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37036@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 15 19:39:22 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 1hyJic-000RA4-4t for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 19:39:22 +0200 Original-Received: from localhost ([::1]:45046 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyJia-0003PA-AC for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 13:39:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56151) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyJiO-0003Mk-IS for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 13:39:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyJiI-0004aY-2R for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 13:39:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43600) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyJiH-0004aN-Nk for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 13:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyJiH-0002bh-K5 for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 13:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2019 17:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37036 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 37036-submit@debbugs.gnu.org id=B37036.15658906829940 (code B ref 37036); Thu, 15 Aug 2019 17:39:01 +0000 Original-Received: (at 37036) by debbugs.gnu.org; 15 Aug 2019 17:38:02 +0000 Original-Received: from localhost ([127.0.0.1]:52419 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyJhJ-0002aG-Os for submit@debbugs.gnu.org; Thu, 15 Aug 2019 13:38:02 -0400 Original-Received: from mail1424c50.megamailservers.eu ([91.136.14.24]:53306 helo=mail102c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyJhG-0002Zh-Og for 37036@debbugs.gnu.org; Thu, 15 Aug 2019 13:37:59 -0400 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1565890671; bh=iTdWbgHU0DtNhMpOu1PJcdWIVcif0sKQkq5dGY5aIDU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=F22wQ4uBhK1Y6z3DUV1WW0XmX0LGNGmEGegkNa4ncvXvYPn3h8YK8nr1IIfGXysfO wugKtsYlfXXOZGgm42hCk4mf5nufJSr5+lxZf8dIxVPIRXPRjIAu/xv5FoKdDNwStn gItOFpIBj+YXYoqIoQHeUrCF++9EAC/WnoMLi0tQ= Feedback-ID: mattiase@acm.or Original-Received: from [192.168.0.4] ([188.150.171.71]) (authenticated bits=0) by mail102c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id x7FHbnAm001766; Thu, 15 Aug 2019 17:37:51 +0000 In-Reply-To: <83pnl6pdo6.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0215.5D55986F.003D, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=IrUwjo3g c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=mDV3o1hIAAAA:8 a=ZUCG9ohdz5s2HSUL68QA:9 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 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:165131 Archived-At: 15 aug. 2019 kl. 18.59 skrev Eli Zaretskii : >=20 > What about "abcdef^A^B"? Does M-f stop before the control characters? Yes. Does forward-word use categories? > I guess I don't understand the rationale for the change. Categories > are Emacs's invention, and their purpose is mostly to allow us to use > regexps for searching certain characters, and other similar > subtleties. Your rationale seems to be some attempt to be formally > "consistent". But this is not a formal attribute, it is entirely > ad-hoc, as can be easily seen by just looking at the list of the > categories. The more categories are arbitrary, the less useful they are. Why would = anyone use categories to discriminate characters if they do not have a = sensible, useful and predictable structure? If 'Latin' means 'Latin = letters, some symbols, some whitespace, some control chars, Indo-Arabic = digits and the occasional Greek letter', which it does today, then who = can use it correctly? Consider the function fill-polish-nobreak-p. It is clearly written with = the assumption of a reasonable definition of the Latin category, and it = doesn't work as expected because of that. Those who reviewed that = function thought it looked reasonable, as did I when I read it. It is perfectly clear that categories have been introduced in an ad-hoc = way to solve problems as they arose, but that doesn't mean that no = mistakes were made even for those narrow purposes.