Handle editing a new file.
backport from herring