emacs-devel
[Top][All Lists]
Advanced

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

Re: master b8062be 3/5: Remove some compat code from eudc-bob.el


From: Stefan Monnier
Subject: Re: master b8062be 3/5: Remove some compat code from eudc-bob.el
Date: Sat, 15 Aug 2020 08:56:05 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>> > Yeah, setting buffer-file-coding-system here is nonsensical, I think?
>>> > buffer-file-coding-system is something you set if you have characters in
>>> > the buffer, but a unibyte buffer contains only bytes, so no coding system
>>> > conversion will be done when saving the buffer, I'd always assumed?
>>> 
>>> Precisely.
>>
>> Well, modulo the EOL conversion, as discussed.
>
> Oh, so then it is needed...  which is unfortunate.  But that explains
> all that (let ((coding-system-for-write 'binary)) ...) code all over
> Emacs.  :-)

There's a case to be made that coding-systems shouldn't affect unibyte
data at all (i.e. not even EOL).  Whether we could do it without
introducing too much breakage (and whether we should do it) is unclear
to me.


        Stefan




reply via email to

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