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: Need some help with Rmail/mbox Date: Sat, 20 Sep 2008 14:30:46 +0300 Message-ID: References: <87y71o4xw6.fsf@xemacs.org> <48D33A10.4040102@pajato.com> <871vzfi93y.fsf@xemacs.org> <03b276ff-e070-465e-9486-c02e4725a3e0@broken.deisui.org> <1bd9e4e5-9349-438b-92af-c2a6293491e7@broken.deisui.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1221910274 18836 80.91.229.12 (20 Sep 2008 11:31:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2008 11:31:14 +0000 (UTC) Cc: pmr@pajato.com, stephen@xemacs.org, emacs-devel@gnu.org To: Daiki Ueno Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 20 13:32:11 2008 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 1Kh0h8-0005mo-Lp for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2008 13:32:10 +0200 Original-Received: from localhost ([127.0.0.1]:54620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kh0g7-000527-5W for ged-emacs-devel@m.gmane.org; Sat, 20 Sep 2008 07:31:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kh0g2-000522-Ne for emacs-devel@gnu.org; Sat, 20 Sep 2008 07:31:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kh0g0-00051q-TX for emacs-devel@gnu.org; Sat, 20 Sep 2008 07:31:02 -0400 Original-Received: from [199.232.76.173] (port=59599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kh0g0-00051n-P0 for emacs-devel@gnu.org; Sat, 20 Sep 2008 07:31:00 -0400 Original-Received: from mtaout3.012.net.il ([84.95.2.7]:25327) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kh0g0-0000uR-9N for emacs-devel@gnu.org; Sat, 20 Sep 2008 07:31:00 -0400 Original-Received: from HOME-C4E4A596F7 ([77.127.116.246]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0K7H00DCES0XP5B1@i_mtaout3.012.net.il> for emacs-devel@gnu.org; Sat, 20 Sep 2008 14:31:55 +0300 (IDT) In-reply-to: <1bd9e4e5-9349-438b-92af-c2a6293491e7@broken.deisui.org> 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:103988 Archived-At: > From: Daiki Ueno > Cc: pmr@pajato.com, stephen@xemacs.org, emacs-devel@gnu.org > Date: Sat, 20 Sep 2008 19:46:42 +0900 > > >>>>> In > >>>>> Eli Zaretskii wrote: > > > I'd recommend to use `decode-coding-string' and `insert' instead of > > > `decode-coding-region', if unsure. > > > Why? you can always set-buffer-multibyte to the right mode, at least > > in Emacs. > > Yes, we can. But I'm anxious of that those who are not familiar with > Mule cannot decide which is the right mode. We were discussing Rmail/mbox. In that context, whenever you need to decode a message body, the buffer needs to be in unibyte mode. That's it. I think this is simple enough for anyone who writes related code. > > Again, operations on buffers are much more efficient in Emacs than on > > strings. > > Oh, I'll try to do profile later. Please do, but please profile memory, not only CPU.