documentation, add test case for '.-' (edit and source tmp file)

The test is currently failing under ASan, but I haven't yet looked at the code.