emacs-devel
[Top][All Lists]
Advanced

[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 18:06:46 -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?

> We need to address the general question of what C-x C-s should do in a
> buffer where you have done the swap.  I think your question is part of
> that question.

This depends on the use case.  It might be worthwhile to point to
write-region-annotate-functions as a good way to do the save (at least
it's the method used in tar-mode and seems to provide a sane behavior,
even in cases where the user uses write-region or C-x C-w).


        Stefan




reply via email to

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