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 and multibyteness Date: Sun, 01 Feb 2009 21:39:05 -0500 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 1233594861 25568 80.91.229.12 (2 Feb 2009 17:14:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 17:14:21 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 18:15:34 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 1LU2OI-00049O-1I for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 18:15:22 +0100 Original-Received: from localhost ([127.0.0.1]:33796 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU2Mz-0000DI-9T for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 12:14:01 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LU2I2-0003G1-O3 for emacs-devel@gnu.org; Mon, 02 Feb 2009 12:08:55 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LU2I1-0003Ew-Qj for emacs-devel@gnu.org; Mon, 02 Feb 2009 12:08:54 -0500 Original-Received: from [199.232.76.173] (port=43021 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LU2I1-0003EZ-KW for emacs-devel@gnu.org; Mon, 02 Feb 2009 12:08:53 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:46608 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LU2I0-0000YP-CU; Mon, 02 Feb 2009 12:08:52 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AswEAD+3hknO+IQk/2dsb2JhbACBbsozhBQGgmw X-IronPort-AV: E=Sophos;i="4.37,366,1231131600"; d="scan'208";a="33208372" Original-Received: from 206-248-132-36.dsl.teksavvy.com (HELO ceviche.home) ([206.248.132.36]) by ironport2-out.teksavvy.com with ESMTP; 02 Feb 2009 12:08:51 -0500 Original-Received: by ceviche.home (Postfix, from userid 20848) id 96367B44BA; Sun, 1 Feb 2009 21:39:05 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Mon, 02 Feb 2009 11:14:56 +0900") 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:108590 Archived-At: > I think rmail-buffer and rmail-view-buffer should be set > consistently to the unibyte buffer containing RMAIL file and > to the multibyte buffer showing one message to a user. > And, most of the interactive functions should just do > something like this: > (set-buffer rmail-buffer) > ... > (switch-to-buffer rmail-view-buffer) > Is the conbination of set-buffer and switch-to-buffer > heavier than two buffer-swap-text? Yes. we agree (except that switch-to-buffer is a function I would prefer to see disapppear, so better use something else like pop-to-buffer or just set-buffer). Also, I'd prefer to use `rmail-buffer' for the multibyte buffer that's displayed, and rmail-data-buffer for the raw unibyte mbox. Stefan