]> code.delx.au - gnu-emacs/commitdiff
(Fstring_as_multibyte): Escape backslashes in the
authorKenichi Handa <handa@m17n.org>
Tue, 19 Jul 2005 02:38:57 +0000 (02:38 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 19 Jul 2005 02:38:57 +0000 (02:38 +0000)
docstring.

src/fns.c

index f1e83f727a5888f39e0803b08337b433de9daeb0..aefc61b7d94cc6860ff18ab4f696d2f4123cd44a 100644 (file)
--- a/src/fns.c
+++ b/src/fns.c
@@ -1153,13 +1153,13 @@ Beware, this often doesn't really do what you think it does.
 It is similar to (decode-coding-string STRING 'emacs-mule-unix).
 If you're not sure, whether to use `string-as-multibyte' or
 `string-to-multibyte', use `string-to-multibyte'.  Beware:
-   (aref (string-as-multibyte "\201") 0) -> 129 (aka ?\201)
-   (aref (string-as-multibyte "\300") 0) -> 192 (aka ?\300)
-   (aref (string-as-multibyte "\300\201") 0) -> 192 (aka ?\300)
-   (aref (string-as-multibyte "\300\201") 1) -> 129 (aka ?\201)
+   (aref (string-as-multibyte "\\201") 0) -> 129 (aka ?\\201)
+   (aref (string-as-multibyte "\\300") 0) -> 192 (aka ?\\300)
+   (aref (string-as-multibyte "\\300\\201") 0) -> 192 (aka ?\\300)
+   (aref (string-as-multibyte "\\300\\201") 1) -> 129 (aka ?\\201)
 but
-   (aref (string-as-multibyte "\201\300") 0) -> 2240
-   (aref (string-as-multibyte "\201\300") 1) -> <error>  */)
+   (aref (string-as-multibyte "\\201\\300") 0) -> 2240
+   (aref (string-as-multibyte "\\201\\300") 1) -> <error>  */)
      (string)
      Lisp_Object string;
 {