From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: size of emacs executable after unicode merge Date: Sat, 8 Nov 2008 02:30:39 -0800 (PST) Message-ID: <200811081030.mA8AUd1x016020@mothra.ics.uci.edu> References: <200805140351.m4E3pQuE004549@sallyv1.ics.uci.edu> <200805141652.m4EGqikr018644@sallyv1.ics.uci.edu> <200805151529.m4FFTlF1004684@sallyv1.ics.uci.edu> <482D8435.6060407@gnu.org> <20081030101819.GA15223@orion.lan> <200810311507.m9VF7EAl022755@mothra.ics.uci.edu> <873ai7t7fx.fsf@cyd.mit.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1226140272 21503 80.91.229.12 (8 Nov 2008 10:31:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 8 Nov 2008 10:31:12 +0000 (UTC) Cc: rms@gnu.org, emanuele.giaquinta@gmail.com, Kenichi Handa , cyd@stupidchicken.com, emacs-devel@gnu.org, evilborisnet@netscape.net, jasonr@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 08 11:32:14 2008 connect(): Connection refused 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 1Kyl70-0002Dt-BI for ged-emacs-devel@m.gmane.org; Sat, 08 Nov 2008 11:32:14 +0100 Original-Received: from localhost ([127.0.0.1]:48626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kyl5s-0007pX-CY for ged-emacs-devel@m.gmane.org; Sat, 08 Nov 2008 05:31:04 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kyl5l-0007pR-74 for emacs-devel@gnu.org; Sat, 08 Nov 2008 05:30:57 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kyl5i-0007oX-UD for emacs-devel@gnu.org; Sat, 08 Nov 2008 05:30:55 -0500 Original-Received: from [199.232.76.173] (port=49949 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kyl5i-0007oI-H8 for emacs-devel@gnu.org; Sat, 08 Nov 2008 05:30:54 -0500 Original-Received: from sallyv2.ics.uci.edu ([128.195.1.120]:47938) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1Kyl5e-00008R-Oe; Sat, 08 Nov 2008 05:30:51 -0500 Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv2.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id mA8AUfib010346; Sat, 8 Nov 2008 02:30:41 -0800 (PST) Original-Received: (from dann@localhost) by mothra.ics.uci.edu (8.13.8+Sun/8.13.6/Submit) id mA8AUd1x016020; Sat, 8 Nov 2008 02:30:39 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Fri, 07 Nov 2008 21:42:08 -0500") Original-Lines: 26 X-ICS-MailScanner-Information: Please contact the ISP for more information X-ICS-MailScanner-ID: mA8AUfib010346 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) 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:105457 Archived-At: Stefan Monnier writes: > >> So couldn't we make sure all the files read during the dump are using > >> Utf-8 or utf-8-emacs? Isn't that already the case for all > >> *.elc files? > > > Not yet, but such a change of encoding is easy. The problem > > is that lisp/international/characters.el setups syntax-table > > and category-table for many characters by map-charset-chars. > > > Ex: (map-charset-chars #'modify-category-entry 'chinese-gb2312 ?c) > > > To know which (Unicode) characters belongs to > > chinese-gb2312, Emacs has to load a mapping table. > > I guess that means we need to precompute the category table and other > tables populated in that way, so we can just load them during the dump > without needing to populate the other maps. And precomputing should be easy: just prin1 the current value of Vchar_unify_table, put that value in a new file, check the new file in CVS and add code to load it a the right time. Then just disable the current code that computes Vchar_unify_table. Is there any reason that the above would not work?