[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: buffer-swap-text
From: |
Stefan Monnier |
Subject: |
Re: buffer-swap-text |
Date: |
Tue, 21 Oct 2008 09:56:15 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> Should this function swap the value of buffer-file-coding-system as
> well? Otherwise, we could confuse the user if the swapped text cannot
> be saved with the current buffer's encoding, and we will then pop up
> questions when the user tries to save.
I see buffer-swap-text as a (very) low-level function. So, I'd rather
let the code that uses it deal with things like
buffer-file-coding-system. I don't think we have enough experience with
it to decide whether that variable (or any other for that matter) needs
to be swap alongside the buffer's text.
Stefan