From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#4848: 23.1.50; \u and \x in string Date: Wed, 04 Nov 2009 20:56:45 -0500 Message-ID: References: <83tyxbbgn7.fsf@gnu.org> Reply-To: rms@gnu.org, 4848@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1257386882 13424 80.91.229.12 (5 Nov 2009 02:08:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Nov 2009 02:08:02 +0000 (UTC) Cc: 4848@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 05 03:07:55 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N5rlQ-0001GJ-UJ for geb-bug-gnu-emacs@m.gmane.org; Thu, 05 Nov 2009 03:07:53 +0100 Original-Received: from localhost ([127.0.0.1]:52077 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5rlQ-00006x-Ic for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Nov 2009 21:07:52 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N5rkz-0008IT-8l for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 21:07:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N5rkt-0008GL-Oj for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 21:07:24 -0500 Original-Received: from [199.232.76.173] (port=51047 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N5rkt-0008GB-Kw for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 21:07:19 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52167) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N5rks-0006IA-TD for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2009 21:07:19 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA527Gcn003029; Wed, 4 Nov 2009 18:07:16 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nA5258SG002615; Wed, 4 Nov 2009 18:05:08 -0800 Resent-Date: Wed, 4 Nov 2009 18:05:08 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Richard Stallman Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Thu, 05 Nov 2009 02:05:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4848 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4848-submit@emacsbugs.donarmstrong.com id=B4848.12573862071389 (code B ref 4848); Thu, 05 Nov 2009 02:05:07 +0000 Original-Received: (at 4848) by emacsbugs.donarmstrong.com; 5 Nov 2009 01:56:47 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA51ukdR001386 for <4848@emacsbugs.donarmstrong.com>; Wed, 4 Nov 2009 17:56:47 -0800 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1N5raf-0001W5-En; Wed, 04 Nov 2009 20:56:45 -0500 In-reply-to: <83tyxbbgn7.fsf@gnu.org> (message from Eli Zaretskii on Tue, 03 Nov 2009 20:35:40 +0200) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 04 Nov 2009 21:07:24 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32417 Archived-At: 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.