Document string-as-{unibyte,multibyte} as obsolete in manual

* doc/lispref/nonascii.texi (Selecting a Representation): Document
string-as-unibyte and string-as-multibyte as obsolete.
This commit is contained in:
Stefan Kangas 2025-01-11 02:28:15 +01:00
parent 7f76f872eb
commit 6de2ee5663

View file

@ -341,6 +341,9 @@ buffer. An indirect buffer always inherits the representation of its
base buffer. base buffer.
@end defun @end defun
The following two functions are obsolete and will be removed in a future
version of Emacs; use @code{encode-coding-string} instead.
@defun string-as-unibyte string @defun string-as-unibyte string
If @var{string} is already a unibyte string, this function returns If @var{string} is already a unibyte string, this function returns
@var{string} itself. Otherwise, it returns a new string with the same @var{string} itself. Otherwise, it returns a new string with the same