# HG changeset patch # User Kim F. Storm # Date 1042806634 0 # Node ID 41213ea7b9d6d8bb50a0696349f72cecf083df3f # Parent 22acf8859243e1f54c45a8cd881ff3f42d5aefdf (Finsert): Mention `string-make-multibyte' and `string-as-multibyte' in doc string. diff -r 22acf8859243 -r 41213ea7b9d6 src/editfns.c --- a/src/editfns.c Fri Jan 17 12:30:22 2003 +0000 +++ b/src/editfns.c Fri Jan 17 12:30:34 2003 +0000 @@ -2061,9 +2061,14 @@ Any other markers at the point of insertion remain before the text. If the current buffer is multibyte, unibyte strings are converted -to multibyte for insertion (see `unibyte-char-to-multibyte'). +to multibyte for insertion (see `string-make-multibyte'). If the current buffer is unibyte, multibyte strings are converted -to unibyte for insertion. +to unibyte for insertion (see `string-make-unibyte'). + +When operating on binary data, it may be necessary to preserve the +original bytes of a unibyte string when inserting it into a multibyte +buffer; to accomplish this, apply `string-as-multibyte' to the string +and insert the result. usage: (insert &rest ARGS) */) (nargs, args)