From: handa Date: Fri, 25 Jan 2008 08:05:44 +0000 (+0000) Subject: (parse_action_list): Check M_candidates. X-Git-Tag: REL-1-5-1~12 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7b87fb08d2cee58117b2fb8341256b69741f14b0;p=m17n%2Fm17n-lib.git (parse_action_list): Check M_candidates. (get_im_info): If key is Mnil, be sure to set im_info->states to a plist. --- diff --git a/src/input.c b/src/input.c index 95cfff0..76f0261 100644 --- a/src/input.c +++ b/src/input.c @@ -818,6 +818,11 @@ parse_action_list (MPlist *plist, MPlist *macros) pl = MPLIST_NEXT (pl); + if (action_name == M_candidates) + { + /* This is an already regularised action. */ + continue; + } if (action_name == Minsert) { if (MPLIST_MTEXT_P (pl)) @@ -1567,6 +1572,8 @@ get_im_info (MSymbol language, MSymbol name, MSymbol extra, MSymbol key) im_info->cmds = mplist (); if (! im_info->vars) im_info->vars = mplist (); + if (! im_info->states) + im_info->states = mplist (); } if (! im_info->title && (key == Mnil || key == Mtitle))