(Fchar_attribute_list): When HAVE_LIBCHISE is defined and optional
authortomo <tomo>
Tue, 14 Oct 2003 09:53:04 +0000 (09:53 +0000)
committertomo <tomo>
Tue, 14 Oct 2003 09:53:04 +0000 (09:53 +0000)
argument `rehash' is specified, call `open_chise_data_source_maybe'
before `chise_ds_foreach_char_feature_name' is called.

src/chartab.c

index a219c9f..90eb96f 100644 (file)
@@ -3159,8 +3159,11 @@ Return the list of all existing character attributes except coded-charsets.
   
 #ifdef HAVE_LIBCHISE
   if (!NILP (rehash))
-    chise_ds_foreach_char_feature_name
-      (default_chise_data_source, &char_attribute_list_reset_map_func);
+    {
+      open_chise_data_source_maybe ();
+      chise_ds_foreach_char_feature_name
+       (default_chise_data_source, &char_attribute_list_reset_map_func);
+    }
 #endif
   GCPRO1 (char_attribute_list);
   char_attribute_list_closure.char_attribute_list = &char_attribute_list;