From: Richard Stallman <rms@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 4848@emacsbugs.donarmstrong.com
Subject: bug#4848: 23.1.50; \u and \x in string
Date: Wed, 04 Nov 2009 20:56:45 -0500 [thread overview]
Message-ID: <E1N5raf-0001W5-En@fencepost.gnu.org> (raw)
In-Reply-To: <83tyxbbgn7.fsf@gnu.org> (message from Eli Zaretskii on Tue, 03 Nov 2009 20:35:40 +0200)
I'm not sure what you wanted to be documented. Is the description in
"(elisp)General Escape Syntax" what you were looking for?
The version I have is from August. If it has been substantially
improved since then, maybe it is good. The text from August was
inadequate and even wrong:
To use hex, write a question mark followed by a backslash, @samp{x},
and the hexadecimal character code. You can use any number of hex
digits, so you can represent any character code in this way.
Thus, @samp{?\x41} for the character @kbd{A}, @samp{?\x1} for the
character @kbd{C-a}, and @code{?\x8e0} for the Latin-1 character
@iftex
@samp{@`a}.
@end iftex
@ifnottex
@samp{a} with grave accent.
@end ifnottex
And here is something from Non-ASCII In Strings:
You can also represent a multibyte non-@acronym{ASCII} character with its
character code: use a hex escape, @samp{\x@var{nnnnnnn}}, with as many
digits as necessary. (Multibyte non-@acronym{ASCII} character codes are all
greater than 256.) Any character which is not a valid hex digit
terminates this construct. If the next character in the string could be
interpreted as a hex digit, write @w{@samp{\ }} (backslash and space) to
terminate the hex escape---for example, @w{@samp{\x8e0\ }} represents
one character, @samp{a} with grave accent. @w{@samp{\ }} in a string
constant is just like backslash-newline; it does not contribute any
character to the string, but it does terminate the preceding hex escape.
next prev parent reply other threads:[~2009-11-05 1:56 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-02 5:31 bug#4848: 23.1.50; \u and \x in string Richard Stallman
2009-11-02 7:17 ` Stefan Monnier
2009-11-02 7:33 ` Jason Rumney
2009-11-03 13:39 ` Richard Stallman
2009-11-03 14:49 ` Stefan Monnier
2009-11-05 1:57 ` Richard Stallman
2009-11-05 2:48 ` Stefan Monnier
2009-11-03 18:35 ` Eli Zaretskii
2009-11-05 1:56 ` Richard Stallman [this message]
2016-06-14 2:45 ` Noam Postavsky
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=E1N5raf-0001W5-En@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=4848@emacsbugs.donarmstrong.com \
--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 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.