From: Eli Zaretskii <eliz@gnu.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: emacs-devel@gnu.org
Subject: Re: char properties vs char properties: two different meanings
Date: Wed, 11 Sep 2013 22:31:02 +0300 [thread overview]
Message-ID: <83mwnji2a1.fsf@gnu.org> (raw)
In-Reply-To: <b4084aa4-30c2-440f-87ea-eace2651c219@default>
> Date: Wed, 11 Sep 2013 10:18:42 -0700 (PDT)
> From: Drew Adams <drew.adams@oracle.com>
>
> Not sure what a good solution might be, but we have a terminology problem:
> there are two completely different notions of "character property" used
> in Emacs Lisp:
>
> 1. A character property is either a text property or an overlay property.
> It is what function `get-char-property' returns. It is good to have
> a term that covers both. I use it in doc for functions I have that
> act on either, for instance.
>
> 2. A character property is a named attribute of a character...
> See (elisp) `Character Properties'.
No, we have only 1 "character property": the second one you mention.
The first one lives in function names and is called "char-property".
This is unfortunate (and has bad mnemonic value, IMO), but that's
water under the bridge, because these APIs existed long before Emacs
started supporting Unicode.
> Is "character code property" accurate?
No. There's no property to the "code" of the character. The addition
of "code" was a kludge, to work around the fact that char-property was
already taken.
But please don't confuse API names and terminology. They don't need
to be 100% the same. It's good if they are, but it's not a
catastrophe if they aren't.
Just stop talking about character properties in the first sense in
human-readable text, such as doc strings. The manual doesn't use
"char property" anywhere.
prev parent reply other threads:[~2013-09-11 19:31 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-11 17:18 char properties vs char properties: two different meanings Drew Adams
2013-09-11 19:31 ` Eli Zaretskii [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83mwnji2a1.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.