fixed broken autocomplete, also added tedium autocomplete
Accept TDDIUM_* for backwards compatibility.