Further improvements in `mail'.
* NEWS: Update. * mail/mail.h (MOPTF_UNSET): New constant. * mail/mailvar.c (MAILVAR_TYPEMASK): New define. (struct mailvar_symbol): Remove `type'. Add `handler'. The latter supplies special handling for certain variables. (mailvar_tab): Update accordingly. Implement "debug" variable. (mailvar_set): Enforce correct variable type in variable-strict mode. Handle MOPTF_UNSET flag. Remove kludgy special handling for some attributes, use sym->handler instead. (set_decode_fallback, set_replyregex) (set_screen, set_mailbox_debug_level, set_debug): New functions. (describe_symbol): Handle alternative symbol types. * mail/set.c: Use MOPTF_UNSET when unsetting the variable. * mail/source.c: Set correct locus. This allows to display locations along with error messages.
Showing
5 changed files
with
315 additions
and
120 deletions
-
Please register or sign in to post a comment