From: "Mattias Engdegård" <mattiase@acm.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 37036@debbugs.gnu.org
Subject: bug#37036: [PATCH] Inconsistent ASCII and Latin char categories
Date: Thu, 15 Aug 2019 19:37:49 +0200 [thread overview]
Message-ID: <2B0EDC85-CAAE-4658-AA6D-85AF4842BFCF@acm.org> (raw)
In-Reply-To: <83pnl6pdo6.fsf@gnu.org>
15 aug. 2019 kl. 18.59 skrev Eli Zaretskii <eliz@gnu.org>:
>
> 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.
next prev parent reply other threads:[~2019-08-15 17:37 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-15 12:17 bug#37036: [PATCH] Inconsistent ASCII and Latin char categories Mattias Engdegård
2019-08-15 15:27 ` Eli Zaretskii
2019-08-15 15:46 ` Mattias Engdegård
2019-08-15 16:23 ` Eli Zaretskii
2019-08-15 16:30 ` Mattias Engdegård
2019-08-15 16:59 ` Eli Zaretskii
2019-08-15 17:37 ` Mattias Engdegård [this message]
2019-08-15 19:23 ` Eli Zaretskii
2019-08-15 19:46 ` Eli Zaretskii
2019-08-15 22:19 ` Mattias Engdegård
2019-08-16 9:33 ` Eli Zaretskii
2019-08-16 10:48 ` Mattias Engdegård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2B0EDC85-CAAE-4658-AA6D-85AF4842BFCF@acm.org \
--to=mattiase@acm.org \
--cc=37036@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).