From 7b87fb08d2cee58117b2fb8341256b69741f14b0 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 25 Jan 2008 08:05:44 +0000 Subject: [PATCH] (parse_action_list): Check M_candidates. (get_im_info): If key is Mnil, be sure to set im_info->states to a plist. --- src/input.c | 7 +++++++ 1 file changed, 7 insertions(+) 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)) -- 1.7.10.4