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: Removing set-unibyte-charset Date: Tue, 04 Mar 2008 21:04:28 -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 1204682734 1571 80.91.229.12 (5 Mar 2008 02:05:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Mar 2008 02:05:34 +0000 (UTC) Cc: emacs-devel@gnu.org To: Kenichi Handa Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 05 03:06:00 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 1JWj0I-0006cR-1C for ged-emacs-devel@m.gmane.org; Wed, 05 Mar 2008 03:05:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWizk-0000nx-Pg for ged-emacs-devel@m.gmane.org; Tue, 04 Mar 2008 21:04:36 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JWizg-0000nG-OV for emacs-devel@gnu.org; Tue, 04 Mar 2008 21:04:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JWize-0000mm-6L for emacs-devel@gnu.org; Tue, 04 Mar 2008 21:04:31 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JWize-0000mi-29 for emacs-devel@gnu.org; Tue, 04 Mar 2008 21:04:30 -0500 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JWizd-0006Qm-KJ for emacs-devel@gnu.org; Tue, 04 Mar 2008 21:04:29 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CANeOzUfO+LKX/2dsb2JhbACraoEC X-IronPort-AV: E=Sophos;i="4.25,444,1199682000"; d="scan'208";a="15593817" Original-Received: from smtp.pppoe.ca ([65.39.196.238]) by ironport2-out.pppoe.ca with ESMTP; 04 Mar 2008 21:04:29 -0500 Original-Received: from pastel.home ([206.248.178.151]) by smtp.pppoe.ca (Internet Mail Server v1.0) with ESMTP id LFJ08229; Tue, 04 Mar 2008 21:04:29 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id D8B9C8359; Tue, 4 Mar 2008 21:04:28 -0500 (EST) In-Reply-To: (Kenichi Handa's message of "Wed, 05 Mar 2008 10:20:07 +0900") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) 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:91346 Archived-At: >> After that, many more changes can be applied, but these are nothing more >> than optimizations (e.g. remove unibyte-charset since it's constant, >> ...). > I've thought that you are going to change all operations > that convert unibyte char/string/buffer-contents to > multibyte (insert, concat, search, re-search, etc). > Currently they do "make"-conversion; i.e. convert each > unibyte character to multibyte by using unibyte-charset. > Changing all of them to "to"-conversion is a big (but not > that difficult) work, I think. It's a tiny amount of work: just removing all calls to set-unibyte-charset does the trick. Admittedly, the subsequent optimizations that become possible represent a fairly large amount of changes, but as you say it's not difficult, and it can be done at a leisurely pace. Stefan