Commit c061dd8f authored by Kenichi Handa's avatar Kenichi Handa
Browse files

(Fstring_as_multibyte): Escape backslashes in the

docstring.
parent e9b01d1f
...@@ -1153,13 +1153,13 @@ Beware, this often doesn't really do what you think it does. ...@@ -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). It is similar to (decode-coding-string STRING 'emacs-mule-unix).
If you're not sure, whether to use `string-as-multibyte' or If you're not sure, whether to use `string-as-multibyte' or
`string-to-multibyte', use `string-to-multibyte'. Beware: `string-to-multibyte', use `string-to-multibyte'. Beware:
(aref (string-as-multibyte "\201") 0) -> 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") 0) -> 192 (aka ?\\300)
(aref (string-as-multibyte "\300\201") 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 "\\300\\201") 1) -> 129 (aka ?\\201)
but but
(aref (string-as-multibyte "\201\300") 0) -> 2240 (aref (string-as-multibyte "\\201\\300") 0) -> 2240
(aref (string-as-multibyte "\201\300") 1) -> <error> */) (aref (string-as-multibyte "\\201\\300") 1) -> <error> */)
(string) (string)
Lisp_Object string; Lisp_Object string;
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment