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: Mon, 09 Feb 2009 09:11:22 -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 1234188990 29085 80.91.229.12 (9 Feb 2009 14:16:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 9 Feb 2009 14:16:30 +0000 (UTC) Cc: eliz@gnu.org, rms@gnu.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Feb 09 15:17: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 1LWWxC-000452-UE for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 15:17:43 +0100 Original-Received: from localhost ([127.0.0.1]:54281 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWWvt-0004fe-9G for ged-emacs-devel@m.gmane.org; Mon, 09 Feb 2009 09:16:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWWrE-0003QU-LP for emacs-devel@gnu.org; Mon, 09 Feb 2009 09:11:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWWrD-0003Q4-0L for emacs-devel@gnu.org; Mon, 09 Feb 2009 09:11:32 -0500 Original-Received: from [199.232.76.173] (port=51319 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWWrC-0003Py-TP for emacs-devel@gnu.org; Mon, 09 Feb 2009 09:11:30 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:6745 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWWr7-0000dn-7P; Mon, 09 Feb 2009 09:11:25 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EAMvHj0lFxIvi/2dsb2JhbACBbs01hBoGgx0 X-IronPort-AV: E=Sophos;i="4.37,405,1231131600"; d="scan'208";a="33577241" Original-Received: from 69-196-139-226.dsl.teksavvy.com (HELO pastel.home) ([69.196.139.226]) by ironport2-out.teksavvy.com with ESMTP; 09 Feb 2009 09:11:23 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id ACF98806C; Mon, 9 Feb 2009 09:11:22 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Mon, 09 Feb 2009 20:31:00 +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:108887 Archived-At: >> > Please edit this message after typing e >> > (rmail-edit-current-message) and type C-c C-c. The above >> > line is changed to \300 (byte #xC0). >> Have you tried the patch I sent (and which I re-appended below)? > I've just tried the latest CVS code that has you patch. It > seems it works well in a usual case. But, for instance, > one edits a mail of: > Content-type: text/plain; charset=iso-8859-1 > and inserts a non-latin-1 character, we must use the > different encoding (utf-8 or the one selected by > select-message-coding-system), and modify content-type: > header. Yes, the code doesn't try to handle these problems. In my poiunt of view, the way "edit" should work is that it should basically be put into `message-mode' and then "saving" would simply encode the whole message (as if preparing to send it). To do that, we could/should use the code we already have for Gnus. Stefan