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: Mon, 02 Feb 2009 06:09:15 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1233547770 15035 80.91.229.12 (2 Feb 2009 04:09:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Feb 2009 04:09:30 +0000 (UTC) Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 02 05:10:44 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 1LTq8w-0002NN-2L for ged-emacs-devel@m.gmane.org; Mon, 02 Feb 2009 05:10:42 +0100 Original-Received: from localhost ([127.0.0.1]:40647 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTq7d-0000nc-8H for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2009 23:09:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LTq7Z-0000nW-7v for emacs-devel@gnu.org; Sun, 01 Feb 2009 23:09:17 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LTq7X-0000nK-BO for emacs-devel@gnu.org; Sun, 01 Feb 2009 23:09:15 -0500 Original-Received: from [199.232.76.173] (port=59723 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LTq7X-0000nH-6H for emacs-devel@gnu.org; Sun, 01 Feb 2009 23:09:15 -0500 Original-Received: from mtaout2.012.net.il ([84.95.2.4]:47275) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LTq7V-0004ab-56; Sun, 01 Feb 2009 23:09:13 -0500 Original-Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KEF00F007AT0O00@i_mtaout2.012.net.il>; Mon, 02 Feb 2009 06:09:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.158.130]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KEF000OY7JWDUO1@i_mtaout2.012.net.il>; Mon, 02 Feb 2009 06:09:33 +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:108558 Archived-At: > From: Richard M Stallman > CC: monnier@iro.umontreal.ca, emacs-devel@gnu.org > Date: Sun, 01 Feb 2009 17:49:09 -0500 > > Just imagine what it takes to implement rmail-edit with this > mind-swapping design (which is probably the main reason why it > currently seems to work only with plain-ASCII message bodies). > > I implemented support for editing non-ASCII messages. If it fails, > please send a bug report with a test case. I did (bugs 2015 and 2017). I was in the middle of working on them last weekend when I ran out of time; I intend to continue next weekend, which is why I didn't submit more test cases. Even after all the fixes I did in both rmail and unrmail, some non-ASCII messages are not displayed correctly after conversion from BABYL and/or rmail-edit. Strangely, it seems to depend on the encoding of the original message somehow. I suspect it has something to do with the fact that one of the two buffers being swapped is a unibyte buffer, while the other is multibyte, and that we set buffer-file-coding-system of the buffers according to the message that is being displayed.