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 09:56:15 -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 1224597495 31844 80.91.229.12 (21 Oct 2008 13:58:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2008 13:58:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 21 15:59:11 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 1KsHjp-0005dP-Uq for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 15:57:34 +0200 Original-Received: from localhost ([127.0.0.1]:60365 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsHij-0005x6-Vx for ged-emacs-devel@m.gmane.org; Tue, 21 Oct 2008 09:56:26 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KsHie-0005tJ-Fi for emacs-devel@gnu.org; Tue, 21 Oct 2008 09:56:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KsHic-0005rE-TV for emacs-devel@gnu.org; Tue, 21 Oct 2008 09:56:20 -0400 Original-Received: from [199.232.76.173] (port=48507 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KsHic-0005qu-Lq for emacs-devel@gnu.org; Tue, 21 Oct 2008 09:56:18 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:59990 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KsHia-0004M8-Sq; Tue, 21 Oct 2008 09:56:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAIp8/UhFxLrB/2dsb2JhbACBcsQDg1CBCg X-IronPort-AV: E=Sophos;i="4.33,457,1220241600"; d="scan'208";a="28653658" Original-Received: from 69-196-186-193.dsl.teksavvy.com (HELO pastel.home) ([69.196.186.193]) by ironport2-out.teksavvy.com with ESMTP; 21 Oct 2008 09:56:15 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 1F45D7F1F; Tue, 21 Oct 2008 09:56:15 -0400 (EDT) In-Reply-To: (Eli Zaretskii's message of "Tue, 21 Oct 2008 12:42:10 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:104747 Archived-At: > 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