[Top][All Lists]

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

Re: Using uniprop_table_lookup (was: idn.el and confusables.txt)

From: Kenichi Handa
Subject: Re: Using uniprop_table_lookup (was: idn.el and confusables.txt)
Date: Tue, 09 Aug 2011 09:55:17 +0900

In article <address@hidden>, Eli Zaretskii <address@hidden> writes:

> I'm getting ready to use this feature instead of src/biditype.h.  I
> understand that CHAR_TABLE_REF is usable for this job already, and the
> updated way of using uniprop_table in bidi.c is this:

>     Lisp_Object bidi_class_table = uniprop_table (intern ("bidi-class"));
>     ...
>     Lisp_Object bidi_class = CHAR_TABLE_REF (CH, bidi_class_table);

> If so, do I need to staticpro the bidi_class_table variable above?

No.  All returned tables by uniprop_table are stored in
Vchar_code_property_alist which is DEFVAR_LISPed in
chartab.c.  It means that the next call of uniprop_table
with the same PROP argument just returns the already loaded
one, and thus fast.

Kenichi Handa

reply via email to

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