[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Thinking about changed buffers
From: |
Lars Magne Ingebrigtsen |
Subject: |
Re: Thinking about changed buffers |
Date: |
Mon, 28 Mar 2016 20:00:30 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
Andreas Schwab <address@hidden> writes:
> You cannot just look at the decoded contents. If the coding system is
> changed the encoded contents will change even if the buffer contents
> didn't.
I don't think that's correct. Loading a file does (basically)
1) put the bytes from the file into memory
2) decode them into internal representation
3) (set-buffer-modified-p nil)
It's from that point on we care whether the contents of the buffer has
changed, not from when we loaded the bytes from the file into memory.
So the coding system is irrelevant.
Or do you mean if the user explicitly changes the coding system... in
the buffer? How does that happen?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- Thinking about changed buffers, Lars Magne Ingebrigtsen, 2016/03/28
- Re: Thinking about changed buffers, Andreas Schwab, 2016/03/28
- Re: Thinking about changed buffers,
Lars Magne Ingebrigtsen <=
- Re: Thinking about changed buffers, Andreas Schwab, 2016/03/28
- Re: Thinking about changed buffers, Lars Magne Ingebrigtsen, 2016/03/28
- Re: Thinking about changed buffers, Eli Zaretskii, 2016/03/28
- Re: Thinking about changed buffers, Lars Magne Ingebrigtsen, 2016/03/28
- Re: Thinking about changed buffers, Eli Zaretskii, 2016/03/28
- Re: Thinking about changed buffers, Lars Magne Ingebrigtsen, 2016/03/28
- Re: Thinking about changed buffers, Eli Zaretskii, 2016/03/28
- Re: Thinking about changed buffers, Lars Magne Ingebrigtsen, 2016/03/28
- Re: Thinking about changed buffers, Eli Zaretskii, 2016/03/28
- Re: Thinking about changed buffers, Lars Magne Ingebrigtsen, 2016/03/28