From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: Re: map-char-table, optimize-char-table and `equal' comparisons Date: Fri, 16 May 2008 14:43:33 +0900 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1210916642 21431 80.91.229.12 (16 May 2008 05:44:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 May 2008 05:44:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 16 07:44:37 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 1Jwsk8-0004Ne-2I for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 07:44:36 +0200 Original-Received: from localhost ([127.0.0.1]:44519 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwsjO-0003Ia-JI for ged-emacs-devel@m.gmane.org; Fri, 16 May 2008 01:43:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JwsjJ-0003IV-9y for emacs-devel@gnu.org; Fri, 16 May 2008 01:43:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JwsjH-0003IF-Qd for emacs-devel@gnu.org; Fri, 16 May 2008 01:43:44 -0400 Original-Received: from [199.232.76.173] (port=54309 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JwsjH-0003IC-Lq for emacs-devel@gnu.org; Fri, 16 May 2008 01:43:43 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:38580) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JwsjG-0004ua-Vm for emacs-devel@gnu.org; Fri, 16 May 2008 01:43:43 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id m4G5hbOR011169; Fri, 16 May 2008 14:43:37 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp4.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id m4G5haCd029540; Fri, 16 May 2008 14:43:36 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp4.aist.go.jp with ESMTP id m4G5hXiT025114; Fri, 16 May 2008 14:43:33 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken.m17n.org with local (Exim 4.69) (envelope-from ) id 1Jwsj7-0007tX-Uc; Fri, 16 May 2008 14:43:33 +0900 In-reply-to: (message from Stefan Monnier on Fri, 16 May 2008 00:48:21 -0400) User-Agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.60 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-detected-kernel: by monty-python.gnu.org: Solaris 8 (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:97239 Archived-At: In article , Stefan Monnier writes: > > How about adding the new property/attribute :test to > > char-table (like make-hash-table) and make the default to > > `equal'? > That's an option, but maybe a better one is to just add a `test' > argument to optimize-char-table (and then optimize-char-table could use > that argument to replace `equal' elements with `eq' ones, so that > subsequent `map-char-table' calls end up behaving as if a `test' > function was provided even tho it's actually using just `eq'). Hmmm, it sounds like a good idea. > Do you remember which call(s) to optimize-char-table needed the use of > `equal'? I don't remember well, perhaps a category table. --- Kenichi Handa handa@ni.aist.go.jp