changeset 91193:f93f0b835e32

(Fdefine_charset_internal): Record a supplementary charset at the tail of Vcharset_order_list.
author Kenichi Handa <handa@m17n.org>
date Thu, 06 Dec 2007 07:26:59 +0000
parents bcad98389aeb
children 7866eec7f840
files src/charset.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/charset.c	Thu Dec 06 07:25:56 2007 +0000
+++ b/src/charset.c	Thu Dec 06 07:26:59 2007 +0000
@@ -1054,8 +1054,12 @@
   if (new_definition_p)
     {
       Vcharset_list = Fcons (args[charset_arg_name], Vcharset_list);
-      Vcharset_ordered_list = nconc2 (Vcharset_ordered_list,
-				      Fcons (make_number (id), Qnil));
+      if (charset.supplementary_p)
+	Vcharset_ordered_list = nconc2 (Vcharset_ordered_list,
+					Fcons (make_number (id), Qnil));
+      else
+	Vcharset_ordered_list = Fcons (make_number (id),
+				       Vcharset_ordered_list);
       charset_ordered_list_tick++;
     }