If there is an open buffer for filename, then change that.

Otherwise open the file and do the changes non-interactively.

Ref #99