Introduce variables `edpath` and `edname` in edit()