Matthieu Moy, 2007-07-08:

> Indeed, if the file is open with unsaved modifications, you may even
> not want Emacs/DVC to edit is (I hate automatic tools mixing with my
> handwritten code). I'd do that like
> 
> (when (.mtn-ignore has unsaved modifications)
>    (prompt-for-save))
> (when (.mtn-ignore still has unsaved modifications)
>    (abort))
> 

The drawback of this method is that it makes it impossible to have xmtn 
make additions to the file while it has unsaved changes.

The current method, modified to skip the question if the file wasn't 
already modified, should work.  If the user was already modifying 
.mtn-ignore and doesn't like the way xmtn made its additions, he can 
simply undo.

Christian.

_______________________________________________
Dvc-dev mailing list
[email protected]
https://mail.gna.org/listinfo/dvc-dev

Reply via email to