Called to find the string that will complete the current buffer. If no
string will complete, return a zero length string. If multiple strings
will complete, return the common prefix of those strings.
Parameters: buf - the current buffer, ie. all the characters typed since thelast >EOL< the completing string