From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: buffer-swap-text Date: Tue, 21 Oct 2008 18:06:46 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224626822 16080 80.91.229.12 (21 Oct 2008 22:07:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 22:07:02 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 22 00:08:02 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KsPOU-0007OJ-FH for ged-emacs-devel@m.gmane.org; Wed, 22 Oct 2008 00:08:02 +0200 Original-Received: from localhost ([127.0.0.1]:47765 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsPNP-0006gd-2w for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 18:06:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsPNL-0006fe-4B for emacs-devel@gnu.org; Tue, 21 Oct 2008 18:06:51 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsPNK-0006f0-6z for emacs-devel@gnu.org; Tue, 21 Oct 2008 18:06:50 -0400 Original-Received: from [199.232.76.173] (port=52633 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsPNK-0006et-2q for emacs-devel@gnu.org; Tue, 21 Oct 2008 18:06:50 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]:49505) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsPNH-0004hA-VF; Tue, 21 Oct 2008 18:06:48 -0400 Original-Received: from alfajor.home (vpn-132-204-232-223.acd.umontreal.ca [132.204.232.223]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id m9LM7Jgn030956; Tue, 21 Oct 2008 18:07:19 -0400 Original-Received: by alfajor.home (Postfix, from userid 20848) id 62E2C1C178; Tue, 21 Oct 2008 18:06:46 -0400 (EDT) In-Reply-To: (Richard M. Stallman's message of "Tue, 21 Oct 2008 15:40:15 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3130=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:104790 Archived-At: > 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