+2007-04-20 Kenichi Handa <handa@m17n.org>
+
+ * input.c (config_command): Fix previous change again.
+ (config_variable): Likewise.
+ (minput_config_command): Fix for the case of setting back to
+ default.
+ (minput_config_variable): Likewise.
+
2007-04-05 Kenichi Handa <handa@m17n.org>
* input.c (config_command): Fix previous change.
}
else if (custom_cmds && (custom = mplist__assq (custom_cmds, name)))
{
- custom = MPLIST_NEXT (MPLIST_PLIST (custom));
+ custom = MPLIST_NEXT (MPLIST_NEXT (MPLIST_PLIST (custom)));
if (! MPLIST_TAIL_P (custom))
{
status = Mcustomized;
}
else if (custom_vars && (custom = mplist__assq (custom_vars, name)))
{
- custom = MPLIST_NEXT (MPLIST_PLIST (custom));
+ custom = MPLIST_NEXT (MPLIST_NEXT (MPLIST_PLIST (custom)));
if (! MPLIST_TAIL_P (custom))
{
value = custom;
}
else
{
- plist = MPLIST_PLIST (plist); /* (NAME nil VALUE) */
- plist = MPLIST_NEXT (plist); /* ([nil VALUE]) */
- if (! MPLIST_TAIL_P (plist))
- return 0;
- mplist_set (plist, Mnil ,NULL);
+ if (no_custom)
+ mplist__pop_unref (plist);
+ else
+ {
+ plist = MPLIST_PLIST (plist); /* (NAME nil VALUE) */
+ plist = MPLIST_NEXT (plist); /* ([nil VALUE]) */
+ mplist_set (plist, Mnil ,NULL);
+ }
}
}
else