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: Using uniprop_table_lookup (was: idn.el and confusables.txt) Date: Tue, 09 Aug 2011 09:55:17 +0900 Message-ID: References: <838vr6wkh4.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312851335 611 80.91.229.12 (9 Aug 2011 00:55:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 9 Aug 2011 00:55:35 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 09 02:55:31 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QqabS-0005qr-W1 for ged-emacs-devel@m.gmane.org; Tue, 09 Aug 2011 02:55:31 +0200 Original-Received: from localhost ([::1]:58061 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqabS-0007aI-CV for ged-emacs-devel@m.gmane.org; Mon, 08 Aug 2011 20:55:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:58953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqabP-0007aC-8r for emacs-devel@gnu.org; Mon, 08 Aug 2011 20:55:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqabN-0007RT-BS for emacs-devel@gnu.org; Mon, 08 Aug 2011 20:55:27 -0400 Original-Received: from mx1.aist.go.jp ([150.29.246.133]:56040) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqabM-0007R6-RU; Mon, 08 Aug 2011 20:55:25 -0400 Original-Received: from rqsmtp2.aist.go.jp (rqsmtp2.aist.go.jp [150.29.254.123]) by mx1.aist.go.jp with ESMTP id p790tIH3005668; Tue, 9 Aug 2011 09:55:19 +0900 (JST) env-from (handa@m17n.org) Original-Received: from smtp2.aist.go.jp by rqsmtp2.aist.go.jp with ESMTP id p790tIwh023450; Tue, 9 Aug 2011 09:55:18 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp2.aist.go.jp with ESMTP id p790tI1w005202; Tue, 9 Aug 2011 09:55:18 +0900 (JST) env-from (handa@m17n.org) In-Reply-To: <838vr6wkh4.fsf@gnu.org> (message from Eli Zaretskii on Sat, 06 Aug 2011 19:52:39 +0300) X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 150.29.246.133 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:143036 Archived-At: In article <838vr6wkh4.fsf@gnu.org>, Eli Zaretskii 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 handa@m17n.org