From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: buffer-swap-text and multibyteness Date: Tue, 03 Feb 2009 16:59:36 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233647990 12312 80.91.229.12 (3 Feb 2009 07:59:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Feb 2009 07:59:50 +0000 (UTC) Cc: eliz@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 03 09:01:04 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 1LUGDN-00053o-Oi for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 09:01:02 +0100 Original-Received: from localhost ([127.0.0.1]:49986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUGC5-0005ou-7Z for ged-emacs-devel@m.gmane.org; Tue, 03 Feb 2009 02:59:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LUGC0-0005oh-I2 for emacs-devel@gnu.org; Tue, 03 Feb 2009 02:59:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LUGC0-0005oK-3O for emacs-devel@gnu.org; Tue, 03 Feb 2009 02:59:36 -0500 Original-Received: from [199.232.76.173] (port=34588 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LUGBz-0005oH-2O for emacs-devel@gnu.org; Tue, 03 Feb 2009 02:59:35 -0500 Original-Received: from mx20.gnu.org ([199.232.41.8]:20275) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LUGBu-0005ob-VY; Tue, 03 Feb 2009 02:59:31 -0500 Original-Received: from mx1.aist.go.jp ([150.29.246.133]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LUGBr-0000mh-0T; Tue, 03 Feb 2009 02:59:27 -0500 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id n137xKfS016979; Tue, 3 Feb 2009 16:59:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id n137xKSk026130; Tue, 3 Feb 2009 16:59:20 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id n137xHeY021036; Tue, 3 Feb 2009 16:59:17 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 4.69) (envelope-from ) id 1LUGC0-0002Zy-Tv; Tue, 03 Feb 2009 16:59:36 +0900 In-reply-to: (message from Stefan Monnier on Sun, 01 Feb 2009 21:39:05 -0500) X-detected-kernel: by mx20.gnu.org: Solaris 9 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:108659 Archived-At: In article , Stefan Monnier writes: > > 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). Is above "Yes" also to this question? > > Is the conbination of set-buffer and switch-to-buffer > > heavier than two buffer-swap-text? By the way, > Also, I'd prefer to use `rmail-buffer' for the multibyte buffer that's > displayed, and rmail-data-buffer for the raw unibyte mbox. I don't have strong preference for those variable names as far as their setting doesn't change by swapping. --- Kenichi Handa handa@m17n.org