emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: map-char-table, optimize-char-table and `equal' comparisons


From: Kenichi Handa
Subject: Re: map-char-table, optimize-char-table and `equal' comparisons
Date: Fri, 16 May 2008 14:43:33 +0900
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)

In article <address@hidden>, Stefan Monnier <address@hidden> 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
address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]