all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: map-char-table, optimize-char-table and `equal' comparisons
Date: Fri, 16 May 2008 14:43:33 +0900	[thread overview]
Message-ID: <E1Jwsj7-0007tX-Uc@etlken.m17n.org> (raw)
In-Reply-To: <jwvzlqqn9jg.fsf-monnier+emacs@gnu.org> (message from Stefan Monnier on Fri, 16 May 2008 00:48:21 -0400)

In article <jwvzlqqn9jg.fsf-monnier+emacs@gnu.org>, Stefan Monnier <monnier@iro.umontreal.ca> 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




      reply	other threads:[~2008-05-16  5:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-10 20:21 map-char-table, optimize-char-table and `equal' comparisons Stefan Monnier
2008-05-14  7:59 ` Kenichi Handa
2008-05-16  4:48   ` Stefan Monnier
2008-05-16  5:43     ` Kenichi Handa [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1Jwsj7-0007tX-Uc@etlken.m17n.org \
    --to=handa@m17n.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.