> What I'd like to do is that if the user enters: > doc<TAB>
> is that it can be completed to > "Emmett Brown <gigaw...@delorean.com>" In a BBDB discussion, I suggested to complete the above to "Emmett Brown \"doc\" <gigaw...@delorean.com>", but it's true that you may prefer to keep the nickname private. In that case it's really not a completion (tho the completion code may help you complete "do" to "doc" as a first step). 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. Stefan