Update doc string of 'insert'
authorUlrich Müller <ulm@gentoo.org>
Sat, 4 Jan 2025 09:37:59 +0000 (10:37 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sat, 4 Jan 2025 13:31:24 +0000 (15:31 +0200)
* src/editfns.c (Finsert): Mention 'decode-coding-string' instead
of the obsolete 'string-as-multibyte' in doc string.  (Bug#75345)

src/editfns.c

index a36768924442a42f83713e42d28e247e346bef54..e02cf14b9684f57a65e13796a5f48972deb94a9c 100644 (file)
@@ -1364,8 +1364,8 @@ 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.
+buffer; to accomplish this, apply `decode-coding-string' with the
+`no-conversion' coding system to the string and insert the result.
 
 usage: (insert &rest ARGS)  */)
   (ptrdiff_t nargs, Lisp_Object *args)