emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-26 8f18d12: Improve documentation of decoding into a unibyte b


From: Eli Zaretskii
Subject: Re: emacs-26 8f18d12: Improve documentation of decoding into a unibyte buffer
Date: Mon, 27 May 2019 19:42:12 +0300

> From: Stefan Monnier <address@hidden>
> Date: Mon, 27 May 2019 08:24:46 -0400
> 
> >     (string-as-unibyte STRING)
> >
> >       This function is obsolete since 26.1;
> >       use `encode-coding-string'.
> >       Probably introduced at or before Emacs version 20.3.
> >       This function does not change global state, including the match data.
> >
> > Having trawled through the elisp manual, for the life of me itʼs not
> > clear which coding system I should use. 'raw-text'? 'us-ascii'?
> > Something Else?
> 
> The coding that most closely corresponds to what string-as-unibyte does
> is `emacs-internal`.

Why "most closely"?  Maybe I'm missing something, but I think it
corresponds exactly.  (I actually prefer using utf-8-emacs-unix, since
emacs-internal is an alias, and deceptively doesn't mention its EOL
conversion.)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]