Stefan Monnier <monn...@iro.umontreal.ca> writes: > As Tassilo mentions, maybe we could have a post-completion step that can > perform some kind of expansion/replacement/cleanup once a valid > completion is selected. I'm not sure what that would look like in terms > of code and API, but if someone wants to try it out a propose a patch to > start a discussion, maybe we could add such a thing.
That looks a lot like (info "(emacs) Mail Aliases"). In particular see mailabbrev.el and the functions mail-abbrev-insert-alias and mail-abbrev-complete-alias. Also (add-hook 'message-mode-hook 'mail-abbrevs-setup). Regards, -- dim