def elideCompiles(words, line):
    """If the first word of line is in words then delete all but the first
       and last word in the line."""
    for word in words:
        if line.startswith(word):
            lwords = line.split()
            return '%s %s' % (lwords[0], lwords[-1])
    return line