[uim-commit] r314 - trunk/uim

yamaken@freedesktop.org yamaken@freedesktop.org
Mon Jan 17 18:18:57 PST 2005


Author: yamaken
Date: 2005-01-17 18:18:54 -0800 (Mon, 17 Jan 2005)
New Revision: 314

Modified:
   trunk/uim/uim-custom.c
Log:
* uim/uim-custom.c
  - (uim_custom_key_get): Fix broken list acquisition. Thank you
    Takuro Ashie for reporting
  - (uim_custom_set): Add explanation about null list to the document


Modified: trunk/uim/uim-custom.c
===================================================================
--- trunk/uim/uim-custom.c	2005-01-17 14:38:49 UTC (rev 313)
+++ trunk/uim/uim-custom.c	2005-01-18 02:18:54 UTC (rev 314)
@@ -342,7 +342,7 @@
   int *key_type_list, editor_type, list_len, i;
   struct uim_custom_key *custom_key, **custom_key_list;
 
-  UIM_EVAL_FSTRING2(NULL, "(define %s (apply (if uim-custom-expand-key? custom-expand-key-references list) (custom-value '%s)))",
+  UIM_EVAL_FSTRING2(NULL, "(define %s ((if uim-custom-expand-key? custom-expand-key-references (lambda (l) l)) (custom-value '%s)))",
 		    str_list_arg, custom_sym);
   key_literal_list =
     (char **)uim_scm_c_list(str_list_arg,
@@ -937,6 +937,10 @@
  * uim-custom API can modify value of the @custom before passing to this
  * function.
  *
+ * If you want to set null list as value for ordered-list or key,
+ * allocate an array contains 1 NULL element and set it into
+ * custom->value->as_foo.
+ *
  * @see uim_custom_get()
  * @param custom custom variable symbol and value
  * @retval UIM_TRUE succeeded



More information about the Uim-commit mailing list