[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: |
Thu, 13 Aug 2020 09:58:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> I think we can simply delete the line that sets
> buffer-file-coding-system: in a unibyte buffer it doesn't
> matter anyway.
IIRC it can make a difference w.r.t line-endings.
> (And it's wrong to use 'binary' for producing files that will
> be processed by programs other than Emacs, because 'binary' spills out
> the Emacs internal representation of characters.)
It's definitely not wrong for unibyte buffers where there's no "internal
representation of characters" that can spill out ;-)
And AFAIK it's not wrong for multybyte buffers:
- Either the content of the buffer is limited to ascii and eight-bit
chars in which case the output is exactly right.
- Or there are other chars and there is simply no correct output.
We should likely signal an error in this case, tho we probably just
end up exposing the internal utf-8-like encoding instead, indeed.
Still the error is not necessarily in the use of `binary` in that case
but in the actual content of the buffer.
Stefan
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Lars Ingebrigtsen, 2020/08/12
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Stefan Monnier, 2020/08/12
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Lars Ingebrigtsen, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Eli Zaretskii, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el,
Stefan Monnier <=
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Eli Zaretskii, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Stefan Monnier, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Eli Zaretskii, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Stefan Monnier, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Eli Zaretskii, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Stefan Monnier, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Eli Zaretskii, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Stefan Monnier, 2020/08/13
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Eli Zaretskii, 2020/08/14
- Re: master b8062be 3/5: Remove some compat code from eudc-bob.el, Lars Ingebrigtsen, 2020/08/14