From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: buffer-swap-text and multibyteness Date: Sun, 01 Feb 2009 00:02:50 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233439390 6860 80.91.229.12 (31 Jan 2009 22:03:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 22:03:10 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 31 23:04:23 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 1LTNwn-0004k3-GQ for ged-emacs-devel@m.gmane.org; Sat, 31 Jan 2009 23:04:17 +0100 Original-Received: from localhost ([127.0.0.1]:39030 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTNvV-0003iV-DM for ged-emacs-devel@m.gmane.org; Sat, 31 Jan 2009 17:02:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTNvP-0003hr-G9 for emacs-devel@gnu.org; Sat, 31 Jan 2009 17:02:51 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTNvN-0003hf-Uf for emacs-devel@gnu.org; Sat, 31 Jan 2009 17:02:50 -0500 Original-Received: from [199.232.76.173] (port=56827 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTNvN-0003hc-PJ for emacs-devel@gnu.org; Sat, 31 Jan 2009 17:02:49 -0500 Original-Received: from mtaout1.012.net.il ([84.95.2.1]:34885) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTNvM-0008LF-Vg for emacs-devel@gnu.org; Sat, 31 Jan 2009 17:02:49 -0500 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KEC00C00VUCQK00@i-mtaout1.012.net.il> for emacs-devel@gnu.org; Sun, 01 Feb 2009 00:03:08 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.109.18]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KEC005JPVX6DT60@i-mtaout1.012.net.il>; Sun, 01 Feb 2009 00:03:08 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 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:108480 Archived-At: > X-Spam-Status: No, score=-1.3 required=5.0 tests=AWL,BAYES_00, > FORGED_RCVD_HELO,SPF_SOFTFAIL autolearn=no version=3.1.0 > From: Stefan Monnier > Cc: emacs-devel@gnu.org > Date: Sat, 31 Jan 2009 16:28:59 -0500 > > >> 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. > > > In Rmail, we do it each time a new message is being displayed. > > Why??? Because each message needs to be decoded before it is shown. The decoded text goes to the rmail-view-buffer, and we then call rmail-swap-buffers to show the decoded text in the rmail-buffer. See rmail-show-message for the gory details.