From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard M Stallman Newsgroups: gmane.emacs.devel Subject: Re: buffer-swap-text and multibyteness Date: Sun, 01 Feb 2009 17:49:08 -0500 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1233528743 9246 80.91.229.12 (1 Feb 2009 22:52:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2009 22:52:23 +0000 (UTC) Cc: eliz@gnu.org, handa@m17n.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 01 23:53:37 2009 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 1LTlBl-0002bz-Ln for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2009 23:53:18 +0100 Original-Received: from localhost ([127.0.0.1]:55795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTlAL-0002t9-38 for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2009 17:51:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTl9U-0002VL-Dp for emacs-devel@gnu.org; Sun, 01 Feb 2009 17:50:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTl9T-0002Ux-Qk for emacs-devel@gnu.org; Sun, 01 Feb 2009 17:50:55 -0500 Original-Received: from [199.232.76.173] (port=45740 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTl9T-0002Uj-Gv for emacs-devel@gnu.org; Sun, 01 Feb 2009 17:50:55 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:50893) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTl9S-0005sM-Fg for emacs-devel@gnu.org; Sun, 01 Feb 2009 17:50:54 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LTl7k-0005Dj-7e; Sun, 01 Feb 2009 17:49:08 -0500 In-reply-to: (message from Stefan Monnier on Sat, 31 Jan 2009 14:43:37 -0500) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:108537 Archived-At: I haven't looked at the code recently, but it does sound like an undesirable state of affairs, indeed. In tar-mode (and the way I imagine buffer-swap-text to be used), swapping the buffer is a rare operation that's basically only done when the the major mode changes. Rmail swaps the buffers twice every time you switch messages. A number of other commands also temporarily unswap. Before I worked on it, several other commands and functions used to unswap, but I altered them to operate on the proper buffer without altering the arrangements. Perhaps similar changes can be applied elsewhere.