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: Tue, 10 Feb 2009 10:49:38 +0200 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1234255824 6372 80.91.229.12 (10 Feb 2009 08:50:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Feb 2009 08:50:24 +0000 (UTC) Cc: emacs-devel@gnu.org, rms@gnu.org, handa@m17n.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 10 09:51:38 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 1LWoLA-000301-0q for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2009 09:51:36 +0100 Original-Received: from localhost ([127.0.0.1]:48257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWoJq-0005k6-IP for ged-emacs-devel@m.gmane.org; Tue, 10 Feb 2009 03:50:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LWoJl-0005jY-G8 for emacs-devel@gnu.org; Tue, 10 Feb 2009 03:50:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LWoJk-0005jL-1E for emacs-devel@gnu.org; Tue, 10 Feb 2009 03:50:08 -0500 Original-Received: from [199.232.76.173] (port=40653 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LWoJj-0005jI-RX for emacs-devel@gnu.org; Tue, 10 Feb 2009 03:50:07 -0500 Original-Received: from mtaout6.012.net.il ([84.95.2.16]:33281) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LWoJh-0006NP-VM; Tue, 10 Feb 2009 03:50:06 -0500 Original-Received: from conversion-daemon.i-mtaout6.012.net.il by i-mtaout6.012.net.il (HyperSendmail v2007.08) id <0KEU00M00D5CE200@i-mtaout6.012.net.il>; Tue, 10 Feb 2009 10:50:01 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.126.128.7]) by i-mtaout6.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KEU005RPDVCLAQ0@i-mtaout6.012.net.il>; Tue, 10 Feb 2009 10:50:01 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (1203?) 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:108938 Archived-At: > From: Stefan Monnier > Cc: handa@m17n.org, rms@gnu.org, emacs-devel@gnu.org > Date: Mon, 09 Feb 2009 21:03:41 -0500 > > >> 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). > > I'm not sure this isn't an overkill. > > Not sure why you'd think so. When did you last look at the code you were describing? It does a lot more then just encode the message and add/rewrite the Content-Type headers. > >> To do that, we could/should use the code we already have for Gnus. > > Similar code exists in sendmail.el and smtp-mail.el. > > Great. We probably don't need to another yet-another implementation, > then, do we? We don't, but IIRC the code each of these places has is tightly coupled with other package-specific processing. If we want a single general-purpose one, we need first to refactor it. Again, please take a look at each of these packages.