* about meta character and character coding .
@ 2009-08-06 6:57 waterloo
0 siblings, 0 replies; 2+ messages in thread
From: waterloo @ 2009-08-06 6:57 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 652 bytes --]
I can not understand the following para in Emacs Lisp Reference :
In a string, the 2**7 bit attached to an ASCII character indicates a
> meta character; thus, the meta characters that can fit in a string have
> codes in the range from 128 to 255, and are the meta versions of the
> ordinary ASCII characters. (In Emacs versions 18 and older, this
> convention was used for characters outside of strings as well.)
One bit has two states.
Does 2**7 bit denote 7 bits ?
What does `thus, the meta characters that can fit in a string have
codes in the range from 128 to 255, and are the meta versions of the
ordinary ASCII characters. ' mean ?
Thanks
[-- Attachment #2: Type: text/html, Size: 855 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <mailman.4011.1249541851.2239.help-gnu-emacs@gnu.org>]
* Re: about meta character and character coding .
[not found] <mailman.4011.1249541851.2239.help-gnu-emacs@gnu.org>
@ 2009-08-06 10:37 ` Colin S. Miller
0 siblings, 0 replies; 2+ messages in thread
From: Colin S. Miller @ 2009-08-06 10:37 UTC (permalink / raw)
To: help-gnu-emacs
waterloo wrote:
> I can not understand the following para in Emacs Lisp Reference :
>
> In a string, the 2**7 bit attached to an ASCII character indicates a
> meta character; thus, the meta characters that can fit in a string have
> codes in the range from 128 to 255, and are the meta versions of the
> ordinary ASCII characters. (In Emacs versions 18 and older, this
> convention was used for characters outside of strings as well.)
>
>
> One bit has two states.
> Does 2**7 bit denote 7 bits ?
It means the 7th bit (counting from 0),
which has the value 128, or 2 to the power of 7.
(the caret character, which is sometime used to represent powerof,
also means the bitwise-or operation in the C programming language).
>
> What does `thus, the meta characters that can fit in a string have
> codes in the range from 128 to 255, and are the meta versions of the
> ordinary ASCII characters. ' mean ?
It means the character A has value 65, and meta-A has the value 193,
being 128+65.
> Thanks
HTH,
Colin S. Miller
--
Replace the obvious in my email address with the first three letters of the hostname to reply.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-08-06 10:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-06 6:57 about meta character and character coding waterloo
[not found] <mailman.4011.1249541851.2239.help-gnu-emacs@gnu.org>
2009-08-06 10:37 ` Colin S. Miller
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).