help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: `write-region' writes different bytes than passed to it?


From: Philipp Stephani
Subject: Re: `write-region' writes different bytes than passed to it?
Date: Sun, 23 Dec 2018 00:16:27 +0100

Am Di., 11. Dez. 2018 um 20:53 Uhr schrieb Stefan Monnier
<monnier@iro.umontreal.ca>:
>
> > I'm not sure that single use case is important enough to change
> > something that was working like that since Emacs 23.  Who knows how
> > many more important use cases this will break?
>
> Oh, indeed, especially since it sounds to me like the problem is in the
> original code (if you don't want to change bytes, the use a `binary`
> encoding rather than utf-8).

That wouldn't work with multibyte strings, right? Because they need to
be encoded.

>
> > This whole area is crawling with heuristics, whose only justification
> > is that it does TRT in the vast majority of use cases.
>
> Exactly: I think we should try and get rid of those heuristics
> (progressively).  Actually, it's already what we've been doing since
> Emacs-20, tho "lately" the progression in this respect has slowed
> down I think.
>

I'd definitely welcome any simplification in this area. There seems to
be a lot of incidental complexity and undocumented corner cases here.



reply via email to

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