From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65693 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel,gmane.emacs.gnus.general Subject: Re: [Unicode-2] `read' always returns multibyte symbol Date: Fri, 16 Nov 2007 10:24:06 +0900 Organization: Emacsen advocacy group 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 1195176289 19005 80.91.229.12 (16 Nov 2007 01:24:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Nov 2007 01:24:49 +0000 (UTC) Cc: ding@gnus.org, emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 16 02:24:53 2007 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 1Ispwu-00067Q-E2 for ged-emacs-devel@m.gmane.org; Fri, 16 Nov 2007 02:24:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ispwg-00072x-Jb for ged-emacs-devel@m.gmane.org; Thu, 15 Nov 2007 20:24:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ispwd-00070k-IJ for emacs-devel@gnu.org; Thu, 15 Nov 2007 20:24:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ispwb-0006wH-Eg for emacs-devel@gnu.org; Thu, 15 Nov 2007 20:24:30 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ispwb-0006vw-96 for emacs-devel@gnu.org; Thu, 15 Nov 2007 20:24:29 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ispwa-0004Ne-KP for emacs-devel@gnu.org; Thu, 15 Nov 2007 20:24:28 -0500 Original-Received: from [66.225.201.151] (port=47450 helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.68) (envelope-from ) id 1Ispwk-0008VX-6L; Thu, 15 Nov 2007 19:24:39 -0600 X-Hashcash: 1:20:071116:handa@ni.aist.go.jp::owqObvjKs3selK6Y:0000000000000000000000000000000000000000001cVK X-Hashcash: 1:20:071116:ding@gnus.org::9rLJW3ylP+PwzCgO:00000oon X-Hashcash: 1:20:071116:emacs-devel@gnu.org::5YeZ/vIUKGmPUUKM:0000000000000000000000000000000000000000000fd6 X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:+VHtlvL/sJmAyTKEIbPqQPPH53c= X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-detected-kernel: 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:83301 gmane.emacs.gnus.general:65693 Archived-At: >>>>> Kenichi Handa wrote: > In article , > Katsumi Yamaoka writes: >> (insert (prog1 >> (decode-coding-string (buffer-string) 'coding) >> (erase-buffer) >> (set-buffer-multibyte t))) > The best is to decide buffer's multibyteness just after it > is created, and don't change the multibyteness later. I see. In relation to this, I've been wanting to exterminate the `mm-with-unibyte-current-buffer' macro that Gnus uses here and there (if you have time, please look at how it is evil, in mm-util.el).